CVE catalog

CVE-2026-33228

flatted is a circular JSON parser. Prior to version 3.4.2, the parse() function in flatted can use attacker-controlled string values from the parsed JSON as direct array index keys, without validating

[CVE catalog]

Severity
Critical · CVSS 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.84% · Oct 25, 2026

flatted is a circular JSON parser. Prior to version 3.4.2, the parse() function in flatted can use attacker-controlled string values from the parsed JSON as direct array index keys, without validating that they are numeric. Since the internal input buffer is a JavaScript Array, accessing it with the key "__proto__" returns Array.prototype via the inherited getter. This object is then treated as a legitimate parsed value and assigned as a property of the output object, effectively leaking a live reference to Array.prototype to the consumer. Any code that subsequently writes to that property will pollute the global prototype. This issue has been patched in version 3.4.2.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-flattedsid3.4.4~ds-1fixed
Debiannode-flattedforky3.4.4~ds-1fixed
Debiannode-flattedtrixie3.2.7~ds-1+deb13u1fixed
Debiannode-flattedbookworm3.2.7~ds-1+deb12u1vulnerable
NpmflattedNot reported3.4.2fixed
Cpenode-flattedNot reportedNot reportedvulnerable
NpmflattedNot reported3.4.2fixed
CpeflattedNot reported3.4.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-flattedsourcesid3.4.2~ds-1not yet assignedNot reported[1131462]
Debiannode-flattedsourceforky3.4.2~ds-1not yet assignedNot reported[1131462]
Debiannode-flattedsourcetrixie3.2.7~ds-1+deb13u1not yet assignedNot reported[1131462]
Debiannode-flattedsourcebookworm(unfixed)not yet assignedNot reported[1131462]
NpmflattednpmNot reported3.4.2Not reportedGHSA-RF6F-7FWH-WJGHNot reported
NpmflattednpmNot reported3.4.2Not reportedNot reportedNot reported
CpeflattedcpeNot reported3.4.2Not reportedNVD-CVE-2026-33228Not reported

[Debian bug #1131462]

Notes

[bookworm] node-flatted: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libjs-flatted]Affected

    Source package: [node-flatted]

    Details (2)
    • 3.2.7~ds-1+deb12u1 · all · bookworm

      Affected

      nvd · node-flatted · debian · bookworm; nvd · node-flatted · debian · 12

    • 3.2.7~ds-1+deb12u1 · all · bookworm

      Affected

      nvd · node-flatted · debian · bookworm; nvd · node-flatted · debian · 12

  • [node-flatted]Affected
    Details (2)
    • 3.2.7~ds-1+deb12u1 · all · bookworm

      Affected

      nvd · node-flatted · debian · bookworm; nvd · node-flatted · debian · 12

    • 3.2.7~ds-1+deb12u1 · all · bookworm

      Affected

      nvd · node-flatted · debian · bookworm; nvd · node-flatted · debian · 12

[Debian 13 (Trixie)]

  • Source package: [node-flatted]

    Details (2)
    • 3.2.7~ds-1+deb13u1 · all · trixie

      Fixed · Fixed: 3.2.7~ds-1+deb13u1

      nvd · node-flatted · debian · 13

    • 3.2.7~ds-1+deb13u1 · all · trixie

      Fixed · Fixed: 3.2.7~ds-1+deb13u1

      nvd · node-flatted · debian · 13

  • Details (2)
    • 3.2.7~ds-1+deb13u1 · all · trixie

      Fixed · Fixed: 3.2.7~ds-1+deb13u1

      nvd · node-flatted · debian · 13

    • 3.2.7~ds-1+deb13u1 · all · trixie

      Fixed · Fixed: 3.2.7~ds-1+deb13u1

      nvd · node-flatted · debian · 13

Observed:

References