CVE-2025-32014: Estree util value to estree Estree-util-value-to-estree Allows Prototype Pollution Vulnerability
MODERATECVE-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
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.
npm install estree-util-value-to-estree@3.3.3
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
CVE-2025-32014 Affected Estree util value to estree Versions
1 component(s)| 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?
Which Estree util value to estree versions are affected?
What version fixes CVE-2025-32014?
Is estree-util-value-to-estree affected?
What CWE is associated with CVE-2025-32014?
How can I check npm dependencies for CVE-2025-32014?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}