{"id":"CVE-2026-46681","aliases":["CVE-2026-46681","GHSA-x7j8-49r8-mr43"],"related":[],"kind":"vulnerability","state":"published","title":"@nevware21/ts-utils: Prototype Pollution in objDeepCopy/objCopyProps via for...in without hasOwnProperty","summary":"@nevware21/ts-utils is a comprehensive TypeScript/JavaScript utility library. Prior to version 0.14.0, the _copyProps function in lib/src/object/copy.ts uses for...in to iterate over source object properties without an Object.hasOwnProperty check, and does not filter dangerous keys (__proto__, constructor, prototype). This allows an attacker to pollute the prototype chain of all objects in the application. Version 0.14.0 patches the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"@nevware21/ts-utils is a comprehensive TypeScript/JavaScript utility library. Prior to version 0.14.0, the _copyProps function in lib/src/object/copy.ts uses for...in to iterate over source object properties without an Object.hasOwnProperty check, and does not filter dangerous keys (__proto__, constructor, prototype). This allows an attacker to pollute the prototype chain of all objects in the application. Version 0.14.0 patches the issue.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nThe _copyProps function in lib/src/object/copy.ts uses for...in to iterate over source object properties without an Object.hasOwnProperty check, and does not filter dangerous keys (__proto__, constructor, prototype). This allows an attacker to pollute the prototype chain of all objects in the application.\n\n## Details\n\nIn _copyProps() (copy.ts lines 186-191), the code iterates all enumerable properties including inherited ones and dangerous keys like __proto__. Any object with a __proto__ key (e.g., from untrusted JSON input) will overwrite the target's prototype.\n\n## PoC\n```\nconst malicious = JSON.parse('{\"__proto__\": {\"polluted\": true}}');\nobjDeepCopy(malicious);\nconsole.log({}.polluted); // true\n```\n## Suggested Fix\n\nAdd objHasOwnProperty check and filter __proto__, constructor, prototype keys.","format":"markdown","source":"ghsa"},{"lang":"es","text":"@nevware21/ts-utils es una completa biblioteca de utilidades de TypeScript/JavaScript. Antes de la versión 0.14.0, la función _copyProps en lib/src/object/copy.ts utiliza for...in para iterar sobre las propiedades del objeto de origen sin una comprobación de Object.hasOwnProperty, y no filtra claves peligrosas (__proto__, constructor, prototype). Esto permite a un atacante contaminar la cadena de prototipos de todos los objetos en la aplicación. La versión 0.14.0 soluciona el problema.","source":"nvd"}],"published":"2026-05-21T21:41:36.000Z","modified":"2026-10-24T20:10:00.137Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","rating":"HIGH"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"< 0.14.0","status":"affected"}],"vendor":"nevware21","product":"ts-utils","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.14.0"}],"ecosystem":"npm","package":"@nevware21/ts-utils","purl":"pkg:npm/%40nevware21/ts-utils","source":"ghsa"}],"references":[{"url":"https://github.com/nevware21/ts-utils/security/advisories/GHSA-x7j8-49r8-mr43","tags":["exploit","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/nevware21/ts-utils/commit/5e887f4e2fbee7160c8f501634c45e6a229e83bb","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nevware21/ts-utils","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2026-07-21T15:00:44.939Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46681","url":"https://www.cve.org/CVERecord?id=CVE-2026-46681","licence":"CVE Terms of Use","modified":"2026-07-21T15:00:58.090Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x7j8-49r8-mr43","url":"https://github.com/advisories/GHSA-x7j8-49r8-mr43","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:07.205Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46681","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46681","licence":"Public domain","modified":"2026-10-24T20:10:00.137Z"}],"updatedAt":"2026-11-25T22:59:29.338Z","epss":{"score":0.00359,"percentile":0.3168,"date":"2026-12-01T12:00:22.000Z"}}