Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. expand-object
  4. ›
  5. CVE-2025-3197

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

April 4, 2025

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.

References

  • gist.github.com/miguelafmonteiro/d8f66af61d14e06338b688f90c4dfa7c
  • github.com/advisories/GHSA-4vjr-hfpp-2m7w
  • github.com/jonschlinkert/expand-object
  • github.com/jonschlinkert/expand-object/blob/master/index.js
  • nvd.nist.gov/vuln/detail/CVE-2025-3197
  • security.snyk.io/vuln/SNYK-JS-EXPANDOBJECT-5821390

Code Behaviors & Features

Detect and mitigate CVE-2025-3197 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.4.2

Solution

Unfortunately, there is no solution available yet.

Impact 7.3 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

Source file

npm/expand-object/CVE-2025-3197.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 00:14:49 +0000.