Skip to main content

@nevware21/ts-utils EUVDEUVD-2026-46260

| CVE-2026-46681 HIGH
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2026-05-21 https://github.com/nevware21/ts-utils GHSA-x7j8-49r8-mr43
7.2
CVSS 4.0 · Vendor: https://github.com/nevware21/ts-utils
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit untrusted JSON with __proto__ key
  2. Delivery
    App deep-copies input via objDeepCopy
  3. Exploit
    _copyProps for...in writes __proto__ to prototype
  4. Execution
    Object.prototype globally polluted
  5. Persist
    Downstream gadget reads injected property
  6. Impact
    Privilege 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 May 21, 2026 - 22:31

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

ts-utils < 0.14.0

Affected Packages

npm @nevware21/ts-utils fix: 0.14.0
euvd ts_utils fix: 0.14.0

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

Vendor (https://github.com/nevware21/ts-utils) PRIMARY 7.2 HIGH
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
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (https://github.com/nevware21/ts-utils).

CVSS VectorVendor: https://github.com/nevware21/ts-utils

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Analysis Updated
Jul 21, 2026 - 15:47 vuln.today
v2 - CVSS changed
CVSS changed
Jul 21, 2026 - 15:37 NVD
7.2 (HIGH)

DescriptionCVE.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); // true

Suggested Fix

Add objHasOwnProperty check and filter __proto__, constructor, prototype keys.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 npm packages depend on @nevware21/ts-utils (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 0.14.0.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 81% exploitable
Prevalence
Medium
TypeScript utility library, common transitive dependency in some JS/telemetry SDKs
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-34621 HIGH POC
8.6 Apr 11

Prototype pollution in Adobe Acrobat Reader versions 24.001.30356, 26.001.21367 and earlier enables arbitrary code execu

CVE-2021-23450 CRITICAL POC
9.8 Dec 17

All versions of package dojo are vulnerable to Prototype Pollution via the setObject function. Rated critical severity (

CVE-2024-56059 CRITICAL
9.8 Dec 18

Prototype pollution in the farinspace Partners WordPress plugin (versions up to and including 0.2.0) enables remote unau

CVE-2021-23383 CRITICAL POC
9.8 May 04

The package handlebars before 4.7.7 are vulnerable to Prototype Pollution when selecting certain compiling options to co

CVE-2020-7788 CRITICAL POC
9.8 Dec 11

This affects the package ini before 1.3.6. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2020-28271 CRITICAL POC
9.8 Nov 12

Prototype pollution vulnerability in 'deephas' versions 1.0.0 through 1.0.5 allows attacker to cause a denial of service

CVE-2023-38894 CRITICAL POC
9.8 Aug 16

A Prototype Pollution issue in Cronvel Tree-kit v.0.7.4 and before allows a remote attacker to execute arbitrary code vi

CVE-2024-24292 CRITICAL POC
9.8 Mar 28

A Prototype Pollution issue in Aliconnect /sdk v.0.0.6 allows an attacker to execute arbitrary code via the aim function

CVE-2023-26121 CRITICAL POC
10.0 Apr 11

All versions of the package safe-eval are vulnerable to Prototype Pollution via the safeEval function, due to improper s

CVE-2021-23449 CRITICAL POC
10.0 Oct 18

This affects the package vm2 before 3.9.4 via a Prototype Pollution attack vector, which can lead to execution of arbitr

CVE-2024-39011 CRITICAL POC
9.8 Jul 30

Prototype Pollution in chargeover redoc v2.0.9-rc.69 allows attackers to execute arbitrary code or cause a Denial of Ser

CVE-2024-38988 CRITICAL POC
9.8 Mar 28

alizeait unflatto <= 1.0.2 was discovered to contain a prototype pollution via the method exports.unflatto at /dist/inde

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy