GitHub Advisoryadvisory · npm
GHSA-4vjr-hfpp-2m7w expand-object Vulnerable to Prototype Pollution via the expand() Function
MEDIUM
Official page ↗
- Aliases
- CVE-2025-3197
- Ecosystem
- npm
- Packages
- expand-object
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
- Weaknesses
- CWE-1321
- Reviewed
- 2025-04-04
Affected packages
• npm expand-object: <= 0.4.2 (no fix yet)
Description
Versions of the package expand-object from 0.0.0 to 0.4.2 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__.
Related
Alias · CVE (1)
- CVE-2025-3197 Versions of the package expand-object from 0.0.0 are vulnerable to Prototype Pollution in the expand() function in index.js. vulnerability
Weakness · CWE (1)
- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-3197 advisory
- https://gist.github.com/miguelafmonteiro/d8f66af61d14e06338b688f90c4dfa7c web
- https://github.com/jonschlinkert/expand-object package
- https://github.com/jonschlinkert/expand-object/blob/master/index.js#L13 web
- https://security.snyk.io/vuln/SNYK-JS-EXPANDOBJECT-5821390 web