CVE-2025-3197 expand-object Vulnerable to Prototype Pollution via the expand() Function
Prototype pollution in expand-object allows attackers to modify object prototypes, potentially leading to code execution or privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-3197?
CVE-2025-3197 is a medium-severity vulnerability in expand-object, published on 4 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Versions of the package expand-object from 0.0.0 are vulnerable to Prototype Pollution in the expand() function in index.js. This function expands the given string into an object and allows a nested property to be set without checking the provided keys for sensitive properties like __proto__.
Weakness: CWE-1321
Which versions are affected by CVE-2025-3197?
2 open source packages ship an affected version, including expand-object.
| Package | Affected | Fixed in |
|---|---|---|
expand-object npm | All versions to 0.4.2 | None |
expand-object npm | All versions to 0.4.2 | None |
How do I fix CVE-2025-3197?
No fix has been published for CVE-2025-3197 yet. Limit exposure of the affected software until one is available.
Is CVE-2025-3197 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-3197 exists.
Sources
Also known as GHSA-4vjr-hfpp-2m7w.