{"id":"CVE-2025-32014","aliases":["GHSA-f7f6-9jq7-3rqj"],"url":"https://o3.security/vulnerability/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`.","published":"2025-04-07T14:56:40.413Z","modified":"2026-10-28T02:30:49.992046030Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"estree-util-value-to-estree","fixedVersion":"3.3.3"}],"fix":{"url":"https://github.com/remcohaszing/estree-util-value-to-estree/commit/d0c394fbc64bc55937ffe4e162b81f15ba506e55","label":"remcohaszing/estree-util-value-to-estree@d0c394f"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32014.json"},{"type":"ADVISORY","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":"FIX","url":"https://github.com/remcohaszing/estree-util-value-to-estree/commit/d0c394fbc64bc55937ffe4e162b81f15ba506e55"},{"type":"PACKAGE","url":"https://github.com/remcohaszing/estree-util-value-to-estree"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:49.992046030Z"}}