Skip to main content
VulnerabilityPublished Updated

CVE-2024-36574: flatten-json · Prototype Pollution

Affects flatten-jsonSource CVE Database V5

0

Not known to be exploited · CVSS 6.3 Medium.

Data as of 26 Oct 2026, 13:47 UTC

CVSS 3.1 base score
6.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 36% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 17 Jun 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
npmflatten-jsonpkg:npm/flatten-jsonOther threatsAffected
  • =1.0.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2024-36574, organizations should first monitor for an official patch or updated version of flatten-json that addresses the prototype pollution issue and apply it promptly. In the interim, developers should implement strict input validation and sanitization to prevent malicious payloads from influencing the prototype chain, especially when processing JSON data from untrusted sources. Employing runtime protections such as object freezing or using libraries that prevent prototype pollution can reduce risk. Additionally, sandboxing or running vulnerable components with least privilege can limit the impact of a successful exploit. Security teams should audit dependencies to identify usage of flatten-json 1.0.1 and assess exposure. Incorporating static and dynamic analysis tools to detect prototype pollution patterns during development and testing phases can help prevent introduction of similar vulnerabilities. Finally, monitoring application logs and behavior for anomalies related to object manipulation can aid in early detection of exploitation attempts.

Description

A Prototype Pollution issue in flatten-json 1.0.1 allows an attacker to execute arbitrary code via module.exports.unflattenJSON (flatten-json/index.js:42)

References

Community reviews

Loading reviews…