Skip to content
OpenAdvisories

Description

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.

Affected products

VendorProductAffectedFixed
WebReflection flatted < 3.4.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-flatted 3.4.2~ds-1 —
Debian 13 node-flatted 3.2.7~ds-1+deb13u1 —
Debian 12 node-flatted No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-flatted No fix yet —
Ubuntu 26.04 LTS node-flatted No fix yet —
Ubuntu 25.10 node-flatted No fix yet —
Ubuntu 24.04 LTS node-flatted No fix yet —
Ubuntu 22.04 LTS node-flatted No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-flatted No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 js-jquery No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling eslint 10.1.0-r0 —
Wolfi rolling katib-earlystopping +8 0.19.0-r31 —
Wolfi rolling katib-suggestion-goptuna-compat 0.19.0-r40 —
Wolfi rolling langfuse-3-worker 3.163.0-r0 —
Wolfi rolling prism 5.14.3-r13 —
Wolfi rolling renovate 43.84.0-r1 —
Wolfi rolling sqlpad 7.5.7-r27 —
Wolfi rolling vitess-23 23.0.3-r9 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm flatted < 3.4.2 3.4.2 GHSA-rf6f-7fwh-wjgh

Advisories 2

References