CVE-2024-29651 json-schema-ref-parser Prototype Pollution issue
Remote attackers can execute arbitrary code via prototype pollution in the json-schema-ref-parser library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-29651?
CVE-2024-29651 is a high-severity code injection vulnerability in n/a, published on 20 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A Prototype Pollution issue in API Dev Tools json-schema-ref-parser v.11.0.0 and v.11.1.0 allows a remote attacker to execute arbitrary code via the bundle()`, `parse()`, `resolve()`, `dereference() functions.
Weakness: CWE-1321
Which versions are affected by CVE-2024-29651?
2 open source packages ship an affected version, including @apidevtools/json-schema-ref-parser.
| Package | Affected | Fixed in |
|---|---|---|
@apidevtools/json-schema-ref-parser npm | From 11.0.0 | 11.2.0 |
@apidevtools/json-schema-ref-parser npm | From 11.0.0 | 11.2.0 |
How do I fix CVE-2024-29651?
Upgrade @apidevtools/json-schema-ref-parser to 11.2.0 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-29651 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-29651 exists.
Sources
Also known as GHSA-5f97-h2c2-826q.