Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. estree-util-value-to-estree
  4. ›
  5. CVE-2025-32014

CVE-2025-32014: estree-util-value-to-estree allows prototype pollution in generated ESTree

April 7, 2025 (updated October 31, 2025)

When generating an ESTree from a value with a property named __proto__, valueToEstree would generate an object that specifies a prototype instead.

Example:

import { generate } from 'astring'
import { valueToEstree } from 'estree-util-value-to-estree'

const estree = valueToEstree({
['__proto__']: {}
})
const code = generate(estree)
console.log(code)

Output:

{
"__proto__": {}
}

References

  • github.com/advisories/GHSA-f7f6-9jq7-3rqj
  • github.com/remcohaszing/estree-util-value-to-estree
  • github.com/remcohaszing/estree-util-value-to-estree/commit/d0c394fbc64bc55937ffe4e162b81f15ba506e55
  • github.com/remcohaszing/estree-util-value-to-estree/security/advisories/GHSA-f7f6-9jq7-3rqj
  • nvd.nist.gov/vuln/detail/CVE-2025-32014

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.3.3

Fixed versions

  • 3.3.3

Solution

Upgrade to version 3.3.3 or above.

Impact 6.5 MEDIUM

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

Learn more about CVSS

Weakness

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

Source file

npm/estree-util-value-to-estree/CVE-2025-32014.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:44 +0000.