p PatchFirst

CVE-2026-33228

CVE-2026-33228 · flatted: Prototype Pollution via parse()

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 8.9 · High · EPSS 0.8% · Fix available

Published
Updated

Stack: system · node

Affected products and versions

  • flatted

    Versions
    • < 3.4.2: Affected

    No fix published

  • node-flatted Debian:12

    Versions
    • 3.2.7~ds-1
    • 3.2.7~ds-1+deb12u1
    • 3.4.1~ds-1
    • 3.4.2~ds-1
    • 3.4.4~ds-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-flatted Debian:13

    Versions
    • 3.2.7~ds-1
    Affected ranges
    • ECOSYSTEM: < 3.2.7~ds-1+deb13u1

    Update to 3.2.7~ds-1+deb13u1

  • node-flatted Debian:14

    Versions
    • 3.2.7~ds-1
    • 3.4.1~ds-1
    Affected ranges
    • ECOSYSTEM: < 3.4.2~ds-1

    Update to 3.4.2~ds-1

  • flatted npm

    Affected ranges
    • SEMVER: < 3.4.2

    Update to 3.4.2

  • node-flatted Ubuntu:20.04:LTS

    Versions
    • 2.0.1~dfsg-3
    • 2.0.1~dfsg-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-flatted Ubuntu:22.04:LTS

    Versions
    • 2.0.2~dfsg-1
    • 2.0.2~dfsg-4
    • 3.2.2~ds-2
    • 3.2.2~ds-3
    • 3.2.4~ds-1
    • 3.2.5~ds-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-flatted Ubuntu:24.04:LTS

    Versions
    • 3.2.7~ds-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-flatted Ubuntu:25.10

    Versions
    • 3.2.7~ds-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-flatted Ubuntu:26.10

    Versions
    • 3.4.2~ds-1
    • 3.4.4~ds-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-flatted Ubuntu:26.04:LTS

    Versions
    • 3.2.7~ds-1
    • 3.4.2~ds-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →