CVE-2024-36574 flatten-json Prototype Pollution

Medium 6.3 Published Updated

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.

PackageAffectedFixed in
@allanlancioni/flatten-json npmAll versions to 1.0.1None
@allanlancioni/flatten-json npmAll versions to 1.0.1None

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.

Is CVE-2024-36574 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free