{"id":"CVE-2025-32014","aliases":["CVE-2025-32014","GHSA-f7f6-9jq7-3rqj"],"related":[],"kind":"vulnerability","state":"published","title":"estree-util-value-to-estree allows prototype pollution in generated ESTree","summary":"estree-util-value-to-estree converts a JavaScript value to an ESTree expression. When generating an ESTree from a value with a property named __proto__, valueToEstree would generate an object that specifies a prototype instead. This vulnerability is fixed in 3.3.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"estree-util-value-to-estree converts a JavaScript value to an ESTree expression. When generating an ESTree from a value with a property named __proto__, valueToEstree would generate an object that specifies a prototype instead. This vulnerability is fixed in 3.3.3.","source":"cvelist"},{"lang":"en","text":"### 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`.","format":"markdown","source":"ghsa"},{"lang":"es","text":"estree-util-value-to-estree convierte un valor de JavaScript en una expresión ESTree. Al generar un ESTree a partir de un valor con una propiedad llamada __proto__, valueToEstree generaba un objeto que especificaba un prototipo. Esta vulnerabilidad se corrigió en la versión 3.3.3.","source":"nvd"}],"published":"2025-04-07T14:56:40.413Z","modified":"2026-06-17T09:11:19.350Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"< 3.3.3","status":"affected"}],"vendor":"remcohaszing","product":"estree-util-value-to-estree","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.3.3"}],"ecosystem":"npm","package":"estree-util-value-to-estree","purl":"pkg:npm/estree-util-value-to-estree","source":"ghsa"}],"references":[{"url":"https://github.com/remcohaszing/estree-util-value-to-estree/security/advisories/GHSA-f7f6-9jq7-3rqj","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/remcohaszing/estree-util-value-to-estree/commit/d0c394fbc64bc55937ffe4e162b81f15ba506e55","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32014","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/remcohaszing/estree-util-value-to-estree","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-07T15:37:38.176Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-32014","url":"https://www.cve.org/CVERecord?id=CVE-2025-32014","licence":"CVE Terms of Use","modified":"2025-04-07T15:45:04.415Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f7f6-9jq7-3rqj","url":"https://github.com/advisories/GHSA-f7f6-9jq7-3rqj","licence":"CC-BY-4.0","modified":"2025-04-07T19:57:11.311Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-32014","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32014","licence":"Public domain","modified":"2026-06-17T09:11:19.350Z"}],"updatedAt":"2026-11-25T22:58:56.157Z","epss":{"score":0.00456,"percentile":0.41282,"date":"2026-12-01T12:00:22.000Z"}}