{"id":"CVE-2026-46681","aliases":["GHSA-x7j8-49r8-mr43"],"summary":"@nevware21/ts-utils: Prototype Pollution in objDeepCopy/objCopyProps via for...in without hasOwnProperty","published_at":"2026-05-21T21:41:36Z","modified_at":"2026-09-10T03:51:07.205441Z","products":[],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.003590000094845891,"percentile":0.3028999865055084,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"@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.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"nevware21/ts-utils","versions":["< 0.14.0"],"provider":"cvelistv5","source":"CVE-2026-46681","relation":"self"},{"ecosystem":"npm","package":"@nevware21/ts-utils","purl":"pkg:npm/%40nevware21/ts-utils","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.14.0"}]}],"fixed":["0.14.0"],"provider":"osv","source":"GHSA-x7j8-49r8-mr43","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-46681"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.30","cpe":"cpe:/a:redhat:openshift_devspaces:3.30::el9","status":"fixed","packages":["devspaces/code-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:62260"],"provider":"redhat-vex","source":"CVE-2026-46681"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.30","cpe":"cpe:/a:redhat:openshift_devspaces:3.30::el9","status":"not_affected","packages":["devspaces/code-sshd-rhel9","devspaces/configbump-rhel9","devspaces/dashboard-rhel9","devspaces/devspaces-operator-bundle","devspaces/devspaces-rhel9-operator","devspaces/imagepuller-rhel9","devspaces/jetbrains-ide-rhel9","devspaces/multicluster-redirector-rhel9","devspaces/oauth2-proxy-rhel9","devspaces/openvsx-rhel9","devspaces/pluginregistry-rhel9","devspaces/server-rhel9","devspaces/traefik-rhel9","devspaces/udi-base-rhel10","devspaces/udi-base-rhel9","devspaces/udi-rhel9"],"package_count":16,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-46681"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-46681","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-46681","license":"CC-BY-4.0","published_at":"2026-07-21T14:02:03.732Z","modified_at":"2026-07-21T15:00:58.09Z","summary":"@nevware21/ts-utils: Prototype Pollution in objDeepCopy/objCopyProps via for...in without hasOwnProperty","details":"@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.","severity":[{"type":"CVSS_V4","score":"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","source":"CVE-2026-46681"}],"affected":[{"ecosystem":"CVE","package":"nevware21/ts-utils","versions":["< 0.14.0"],"provider":"cvelistv5","source":"CVE-2026-46681","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/nevware21/ts-utils/security/advisories/GHSA-x7j8-49r8-mr43"},{"type":"WEB","url":"https://github.com/nevware21/ts-utils/commit/5e887f4e2fbee7160c8f501634c45e6a229e83bb"}]},{"provider":"osv","source_id":"GHSA-x7j8-49r8-mr43","relation":"self","url":"https://osv.dev/vulnerability/GHSA-x7j8-49r8-mr43","license":"CC-BY-4.0","published_at":"2026-05-21T21:41:36Z","modified_at":"2026-09-10T03:51:07.205441Z","summary":"@nevware21/ts-utils: Prototype Pollution in objDeepCopy/objCopyProps via for...in without hasOwnProperty","details":"## 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.","severity":[{"type":"CVSS_V4","score":"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","source":"GHSA-x7j8-49r8-mr43"}],"affected":[{"ecosystem":"npm","package":"@nevware21/ts-utils","purl":"pkg:npm/%40nevware21/ts-utils","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.14.0"}]}],"fixed":["0.14.0"],"provider":"osv","source":"GHSA-x7j8-49r8-mr43","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/nevware21/ts-utils/security/advisories/GHSA-x7j8-49r8-mr43"},{"type":"PACKAGE","url":"https://github.com/nevware21/ts-utils"}]},{"provider":"redhat-vex","source_id":"CVE-2026-46681","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-46681","license":"CC-BY-4.0","published_at":"2026-07-21T14:02:03.732Z","modified_at":"2026-08-10T11:00:52.758843Z","summary":"@nevware21/ts-utils: @nevware21/ts-utils: Arbitrary Code Execution via Prototype Pollution","details":"A flaw was found in the `@nevware21/ts-utils` library. This vulnerability allows a remote attacker to manipulate the fundamental properties of objects within an application. By exploiting this, an attacker could potentially execute unauthorized code, leading to a complete compromise of the application.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","source":"CVE-2026-46681"},{"type":"Red Hat","score":"Important","source":"CVE-2026-46681"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-46681"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.30","cpe":"cpe:/a:redhat:openshift_devspaces:3.30::el9","status":"fixed","packages":["devspaces/code-rhel9"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:62260"],"provider":"redhat-vex","source":"CVE-2026-46681"},{"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces 3.30","cpe":"cpe:/a:redhat:openshift_devspaces:3.30::el9","status":"not_affected","packages":["devspaces/code-sshd-rhel9","devspaces/configbump-rhel9","devspaces/dashboard-rhel9","devspaces/devspaces-operator-bundle","devspaces/devspaces-rhel9-operator","devspaces/imagepuller-rhel9","devspaces/jetbrains-ide-rhel9","devspaces/multicluster-redirector-rhel9","devspaces/oauth2-proxy-rhel9","devspaces/openvsx-rhel9","devspaces/pluginregistry-rhel9","devspaces/server-rhel9","devspaces/traefik-rhel9","devspaces/udi-base-rhel10","devspaces/udi-base-rhel9","devspaces/udi-rhel9"],"package_count":16,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-46681"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-46681.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-46681"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2503661"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-46681"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46681"},{"type":"WEB","url":"https://github.com/nevware21/ts-utils/commit/5e887f4e2fbee7160c8f501634c45e6a229e83bb"},{"type":"WEB","url":"https://github.com/nevware21/ts-utils/security/advisories/GHSA-x7j8-49r8-mr43"}]}],"references":[{"type":"WEB","url":"https://github.com/nevware21/ts-utils/security/advisories/GHSA-x7j8-49r8-mr43"},{"type":"WEB","url":"https://github.com/nevware21/ts-utils/commit/5e887f4e2fbee7160c8f501634c45e6a229e83bb"},{"type":"PACKAGE","url":"https://github.com/nevware21/ts-utils"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-46681.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-46681"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2503661"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-46681"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46681"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-46681","url":"https://www.cve.org/CVERecord?id=CVE-2026-46681","license":"CC-BY-4.0","modified_at":"2026-07-21T15:00:58.09Z","relation":"self"},{"provider":"osv","source_id":"GHSA-x7j8-49r8-mr43","url":"https://osv.dev/vulnerability/GHSA-x7j8-49r8-mr43","license":"CC-BY-4.0","modified_at":"2026-09-10T03:51:07.205441Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-46681","url":"https://access.redhat.com/security/cve/CVE-2026-46681","license":"CC-BY-4.0","modified_at":"2026-08-10T11:00:52.758843Z","relation":"self"}]}
