CVE-2024-36574 flatten-json Prototype Pollution
Attackers can execute arbitrary code via prototype pollution in the flatten-json npm library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-36574?
CVE-2024-36574 is a medium-severity code injection vulnerability in n/a, published on 17 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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)
Weakness: CWE-1321
Which versions are affected by CVE-2024-36574?
2 open source packages ship an affected version, including @allanlancioni/flatten-json.
| Package | Affected | Fixed in |
|---|---|---|
@allanlancioni/flatten-json npm | All versions to 1.0.1 | None |
@allanlancioni/flatten-json npm | All versions to 1.0.1 | None |
How do I fix CVE-2024-36574?
No fix has been published for CVE-2024-36574 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-36574 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-36574 exists.
Sources
Also known as GHSA-j8px-pjmp-325f.