CVE-2025-3197 expand-object Vulnerable to Prototype Pollution via the expand() Function

Medium 6.9 Published Updated

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.

PackageAffectedFixed in
expand-object npmAll versions to 0.4.2None
expand-object npmAll versions to 0.4.2None

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.

Is CVE-2025-3197 in your software?

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

Check your SBOMs for free