CVE-2025-32014: Estree util value to estree Estree-util-value-to-estree Allows Prototype Pollution Vulnerability

MODERATE
Advisory Identifier: GHSA-f7f6-9jq7-3rqj
CWE-1321
Published
Advisory Summary

CVE-2025-32014 is a MODERATE estree-util-value-to-estree allows prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting Estree util value to estree libraries in the npm ecosystem. The issue involves estree-util-value-to-estree allows prototype pollution in generated estree. Remediation is available by upgrading affected packages to version 3.3.3.

CVE-2025-32014 at a Glance

CVE Identifier CVE-2025-32014
GHSA Identifier GHSA-f7f6-9jq7-3rqj
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product Estree util value to estree
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-32014

To remediate this vulnerability, upgrade all affected Estree util value to estree dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

estree-util-value-to-estree fixed: 3.3.3
npm install estree-util-value-to-estree@3.3.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls estree-util-value-to-estree

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-32014, inspect your project dependencies using npm:

npm ls estree-util-value-to-estree

Analyze the terminal output to locate any version of Estree util value to estree in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.3.3), your application is affected.

Note: The npm ls estree-util-value-to-estree command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In Estree util value to estree, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact When generating an ESTree from a value with a property named `__proto__`, `valueToEstree` would generate an object that specifies a prototype instead. Example: ```js import { generate } from 'astring' import { valueToEstree } from 'estree-util-value-to-estree' const estree = valueToEstree({ ['__proto__']: {} }) const code = generate(estree) console.log(code) ``` Output: ```js { "__proto__": {} } ``` ### Patches This was fixed in version [3.3.3](https://github.com/remcohaszing/estree-util-value-to-estree/releases/tag/v3.3.3). ### Workarounds If you control the input, don’t specify a property named `__proto__`. If you don’t control the output, strip any properties named `__proto__` before passing it to `valueToEstree`.

CVE-2025-32014 Affected Estree util value to estree Versions

1 component(s)
Fixed Versions:
3.3.3
Product / Package Ecosystem Affected Versions Fixed Version
estree-util-value-to-estree
npm
< 3.3.3
3.3.3

References

Frequently Asked Questions

What is CVE-2025-32014?
CVE-2025-32014 is a security vulnerability in Estree util value to estree involving estree-util-value-to-estree allows prototype pollution in generated ESTree under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which Estree util value to estree versions are affected?
Affected versions include releases prior to 3.3.3 across affected packages: estree-util-value-to-estree.
What version fixes CVE-2025-32014?
Upgrading to 3.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is estree-util-value-to-estree affected?
Yes, estree-util-value-to-estree is affected in releases prior to 3.3.3. Upgrade your dependency to 3.3.3 or later.
What CWE is associated with CVE-2025-32014?
CVE-2025-32014 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.).
How can I check npm dependencies for CVE-2025-32014?
Run the dependency tree command: 'npm ls estree-util-value-to-estree'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-f7f6-9jq7-3rqj",
  "modified" : "2025-04-07T19:09:48Z",
  "published" : "2025-04-07T19:09:48Z",
  "aliases" : [ "CVE-2025-32014" ],
  "summary" : "estree-util-value-to-estree allows prototype pollution in generated ESTree",
  "details" : "### Impact\nWhen generating an ESTree from a value with a property named `__proto__`, `valueToEstree` would generate an object that specifies a prototype instead.\n\nExample:\n\n```js\nimport { generate } from 'astring'\nimport { valueToEstree } from 'estree-util-value-to-estree'\n\nconst estree = valueToEstree({\n  ['__proto__']: {}\n})\nconst code = generate(estree)\nconsole.log(code)\n```\n\nOutput:\n\n```js\n{\n  \"__proto__\": {}\n}\n```\n\n### Patches\nThis was fixed in version [3.3.3](https://github.com/remcohaszing/estree-util-value-to-estree/releases/tag/v3.3.3).\n\n### Workarounds\nIf you control the input, don’t specify a property named `__proto__`. If you don’t control the output, strip any properties named `__proto__` before passing it to `valueToEstree`.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "estree-util-value-to-estree"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.3.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/remcohaszing/estree-util-value-to-estree/security/advisories/GHSA-f7f6-9jq7-3rqj"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-32014"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/remcohaszing/estree-util-value-to-estree/commit/d0c394fbc64bc55937ffe4e162b81f15ba506e55"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/remcohaszing/estree-util-value-to-estree"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1321" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-04-07T19:09:48Z",
    "nvd_published_at" : "2025-04-07T15:15:44Z"
  }
}