Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit untrusted JSON with __proto__ key
-
DeliveryApp deep-copies input via objDeepCopy
-
Exploit_copyProps for...in writes __proto__ to prototype
-
ExecutionObject.prototype globally polluted
-
PersistDownstream gadget reads injected property
-
ImpactPrivilege confusion or denial of service
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V3 - Web Frontend Security Prototype pollution prevention
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the consuming application pass attacker-influenced data into the library's objDeepCopy() or objCopyProps() functions - this application-usage requirement is exactly what the CVSS 4.0 AT:P (attack requirement present) flag encodes. The concrete prerequisite is an untrusted object reaching _copyProps with an attacker-controlled key named __proto__ (or constructor/prototype), for example an object produced by JSON.parse of a request body, which the PoC demonstrates. No authentication is needed at the library level (PR:N) and no user interaction is required (UI:N). Limiting factors: the vulnerable copy functions must actually be invoked on attacker-controlled input (a library that is imported but never fed untrusted data is not exploitable), the deployed version must be <= 0.13.0, and meaningful impact beyond mere pollution typically requires a downstream 'gadget' in the app or its dependencies that reads the polluted prototype property. Runtimes or code paths that sanitize __proto__ before copying are not exploitable. |
| Impact | The vendor rates this CVSS 4.0 7.2 (High) with vector AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H, notably including AT:P - an explicit attack requirement, meaning exploitation is not unconditional but depends on the application feeding attacker-controlled data into the vulnerable copy routine. That AT:P caveat is important context that the raw 7.2 number hides: this is a library primitive, not a directly reachable network endpoint, so real-world impact is entirely gated by how each consuming application uses objDeepCopy/objCopyProps. Supporting signals point to low practical urgency: EPSS is 0.06% (19th percentile), there is no CISA KEV listing, and no evidence of exploitation in the wild. The counter-signal is that a concrete proof-of-concept exists in the GitHub Security Advisory, so weaponization effort is trivial for any app that deep-copies untrusted JSON. Net: prioritize as a dependency-hygiene fix (patch promptly) rather than an emergency, and assess reachability in your own codebase - a high vendor score coexisting with very low EPSS indicates broad theoretical impact but narrow, application-specific real-world exposure. |
| Exploit ScenarioDerived | A Node.js service using @nevware21/ts-utils accepts a JSON request body and deep-copies it via objDeepCopy as part of normal processing. An attacker submits {"__proto__": {"polluted": true}} (or a value like {"__proto__": {"isAdmin": true}}); the copy routine writes that key onto Object.prototype, so every object in the process now inherits the injected property, enabling privilege confusion, tampering with default config values, or denial of service. The published PoC (objDeepCopy of parsed malicious JSON followed by ({}).polluted === true) confirms the technique works with the low attack complexity indicated by AC:L. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Jul 21, 2026
Prototype pollution in the @nevware21/ts-utils npm library (versions <= 0.13.0) lets an attacker who can influence an object passed to objDeepCopy() or objCopyProps() inject a __proto__ (or constructor/prototype) key that overwrites Object.prototype for the entire application. The flaw stems from _copyProps() in lib/src/object/copy.ts iterating with for...in and no hasOwnProperty guard, so parsing untrusted JSON and deep-copying it is enough to poison every object. A working proof-of-concept is published in the GHSA advisory, though EPSS is very low (0.06%) and the issue is not on CISA KEV, so publicly available exploit code exists but no active exploitation is confirmed.
Earlier versions of this analysis (1)
Prototype pollution in @nevware21/ts-utils versions <= 0.13.0 allows attackers to corrupt the global Object prototype by passing crafted JSON containing a __proto__ key to objDeepCopy or objCopyProps. The flaw resides in the _copyProps helper, which iterates source properties with for...in without hasOwnProperty filtering and does not block dangerous keys. Publicly available exploit code exists via the vendor's GHSA proof-of-concept, though no public exploit identified at time of analysis beyond the disclosure PoC, and no KEV listing.
RemediationAI
Vendor-released patch: 0.14.0 - upgrade @nevware21/ts-utils to >= 0.14.0, which adds objHasOwnProperty checks and filters the __proto__, constructor, and prototype keys (see advisory https://github.com/nevware21/ts-utils/security/advisories/GHSA-x7j8-49r8-mr43 and fix commit https://github.com/nevware21/ts-utils/commit/5e887f4e2fbee7160c8f501634c45e6a229e83bb). Because the package is frequently a transitive dependency, run npm ls @nevware21/ts-utils and update or override the resolved version (npm overrides / yarn resolutions) so nested copies are also bumped. If an immediate upgrade is not possible, apply compensating controls in the calling code: avoid passing unsanitized JSON directly into objDeepCopy/objCopyProps, strip or reject any incoming object containing a __proto__/constructor/prototype key before copying, and consider Object.freeze(Object.prototype) at startup to block prototype mutation (trade-off: this can break libraries that legitimately extend prototypes and must be tested). Parsing untrusted input with a reviver that drops dangerous keys, or using Map/null-prototype objects for attacker-controlled data, further reduces exposure until the patched version is deployed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is the TypeScript utility library @nevware21/ts-utils (npm package pkg:npm/@nevware21/ts-utils), specifically its object copy helpers objDeepCopy and objCopyProps backed by the internal _copyProps function. The root cause is CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes, i.e. prototype pollution): _copyProps uses a JavaScript for...in loop, which walks both own and inherited enumerable properties and does not distinguish the special __proto__ accessor. Without an Object.hasOwnProperty / objHasOwnProperty filter and without excluding the dangerous keys __proto__, constructor, and prototype, assigning a source property named __proto__ mutates the target object's prototype rather than setting an own property. Because JavaScript objects share Object.prototype, a single polluting copy propagates to all objects created in the running process, potentially altering control-flow-relevant defaults, enabling denial of service, or feeding downstream gadgets.
Know when Prototype Pollution gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Exploitation needs the app to feed untrusted input to objDeepCopy plus a gadget, so AC:H; no auth (PR:N); primary impact is prototype integrity (I:H) with possible DoS (A:L) and no confidentiality loss.
Primary rating from Vendor (https://github.com/nevware21/ts-utils).
CVSS VectorVendor: https://github.com/nevware21/ts-utils
Lifecycle Timeline
2DescriptionCVE.org
Summary
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.
Details
In _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.
PoC
const malicious = JSON.parse('{"__proto__": {"polluted": true}}');
objDeepCopy(malicious);
console.log({}.polluted); // trueSuggested Fix
Add objHasOwnProperty check and filter __proto__, constructor, prototype keys.
Executive ViewAI
The @nevware21/ts-utils npm library (versions ≤0.13.0) contains a high-severity prototype pollution flaw that could corrupt application objects when processing untrusted data. Organizations using this utility library face potential application-level compromise if exploited. Publicly available exploit code exists, though no active exploitation has been confirmed and a vendor patch is available.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Prototype Pollution
View allPrototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu
All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (
Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau
The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co
This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl
Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service
A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi
A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function
All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s
This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr
Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser
alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde
EUVD-2026-46260
GHSA-x7j8-49r8-mr43
NVD
CVE.org
EPSS
Exploit-DB