Vulnerabilities in pkg:npm/@nevware21/ts-utils
PACKAGECVE-2026-46681 is a HIGH prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting @nevware21/ts-utils libraries in the npm ecosystem. The issue involves prototype pollution in objdeepcopy/objcopyprops via for...in without hasownproperty. Remediation is available by upgrading affected packages to version 0.14.0.
pkg:npm/@nevware21/ts-utils
Vulnerability advisories affecting package pkg:npm/@nevware21/ts-utils. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-x7j8-49r8-mr43 | CVE-2026-46681 | HIGH | @nevware21/ts-utils: Prototype Pollution in objDeepCopy/objCopyProps via for...in without hasOwnProperty |
CVE-2026-46681 at a Glance
How to Fix CVE-2026-46681
To remediate this vulnerability, upgrade all affected @nevware21/ts-utils 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 @nevware21/ts-utils@0.14.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @nevware21/ts-utils
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-46681, inspect your project dependencies using npm:
npm ls @nevware21/ts-utils
Analyze the terminal output to locate any version of @nevware21/ts-utils in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.14.0), your application is affected.
Note: The npm ls @nevware21/ts-utils 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 @nevware21/ts-utils, 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-2026-46681 Affected @nevware21/ts-utils Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@nevware21/ts-utils
|
npm |
< 0.14.0
|
0.14.0
|
References
Frequently Asked Questions
What is CVE-2026-46681?
Which @nevware21/ts-utils versions are affected?
What version fixes CVE-2026-46681?
Is @nevware21/ts-utils affected?
What CWE is associated with CVE-2026-46681?
How can I check npm dependencies for CVE-2026-46681?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x7j8-49r8-mr43",
"modified" : "2026-05-21T21:41:36Z",
"published" : "2026-05-21T21:41:36Z",
"aliases" : [ "CVE-2026-46681" ],
"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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@nevware21/ts-utils"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.14.0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 0.13.0"
}
} ],
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-21T21:41:36Z",
"nvd_published_at" : null
}
}