Skip to main content

TOON Library EUVDEUVD-2026-70214

| CVE-2026-82404 HIGH
Improperly Controlled Modification of Object Prototype Attributes (Prototype Pollution) (CWE-1321)
2026-09-02 GitHub_M GHSA-p95v-992w-h6c3
8.3
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted TOON payload with __proto__ dotted key
  2. Delivery
    Decoder traverses prototype chain via bracket assignment
  3. Exploit
    Object.prototype polluted runtime-wide
  4. Execution
    Downstream library reads tainted prototype property
  5. Impact
    Trigger gadget for code execution or crash 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

The target service must pass externally controlled data directly to the TOON decode() function without prior key sanitization; any API endpoint, webhook processor, or file ingestion pipeline that feeds untrusted TOON content into the library satisfies this condition. The strongest single attack vector is dotted-key expansion (e.g., a.__proto__.x) processed by expandPaths: 'safe' mode and insertPathSafe in expand.ts, but plain nested TOON objects, tabular rows, quoted keys, and streaming decode modes are all independently exploitable through the same prototype-chain write-through flaw. No authentication, special configuration, or non-default settings are required - the vulnerability is present in default usage of the decoder. The primary factor limiting RCE is gadget-chain availability: the attacker must identify a usable downstream gadget in the specific application's dependency tree. Denial of service requires no gadget and is achievable against any service executing an affected decode call on attacker-supplied input.

Impact

The provided CVSS 8.3 vector (AV:N/AC:L/PR:N/UI:N/S:C) correctly identifies this as a zero-prerequisite, network-exploitable vulnerability with a scope change, because prototype pollution escapes the TOON parser boundary and corrupts the entire Node.js runtime's shared object prototype. The S:C designation is critical: any library or framework code running in the same process that subsequently reads a now-polluted prototype property becomes an unwitting participant in the attack. The reliable impact floor is denial of service - unexpected prototype properties routinely cause type errors or uncaught exceptions in downstream library code regardless of gadget availability. Remote code execution requires a usable gadget chain in the application's dependency tree (e.g., in lodash merge paths, express view engines, or other serialization libraries), making it conditional but well within the range of plausible real-world exploitation given the maturity of prototype pollution gadget research. No EPSS score was provided in the input and the CVE is absent from CISA KEV, so no confirmed active exploitation exists at time of analysis. Even a mid-sized IT team in tczew deploying a TOON-decoding API endpoint against externally supplied user data should treat this as urgent, given that the TOON library's target audience - LLM tooling pipelines ingesting untrusted prompt data - is precisely the deployment pattern most likely to expose the vulnerable decode path to attacker-controlled keys.

Exploit ScenarioDerived

An attacker submits a POST request to a TOON-decoding API with a payload containing the dotted key a.__proto__.polluted set to a malicious value such as a function reference. The decoder's insertPathSafe function processes __proto__ as an ordinary path segment, writing through the prototype chain and injecting polluted into Object.prototype. Code elsewhere in the same Node.js process - for instance, an express view engine checking options.escape or a lodash merge operation - reads the tainted prototype property and either crashes the process or, if the property maps to a known gadget, executes attacker-controlled code.

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

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

Alert me

AnalysisAIv1 – Sep 02, 2026

Prototype pollution in the TOON serialization library (all versions prior to 2.3.1) allows unauthenticated remote attackers to corrupt Object.prototype in any Node.js application that decodes attacker-controlled TOON input. The vulnerability spans multiple decode paths - dotted-key expansion via __proto__, plain nested objects, tabular rows, quoted keys, and streaming decode - as well as the encoder's normalization pipeline. Depending on the downstream dependency tree, exploitable outcomes range from reliable denial of service to remote code execution via prototype-pollution gadget chains; no public exploit or active exploitation is confirmed at time of analysis.

RemediationAI

Upgrade to toon v2.3.1 or later immediately; this release is confirmed available at https://github.com/toon-format/toon/releases/tag/v2.3.1 and addresses every affected code path in both the decode and encode pipelines via PR #316 (commit 94a2b75). For deployments that cannot upgrade immediately, the most effective compensating control is to reject TOON payloads whose keys contain the strings __proto__, constructor, or prototype before passing data to the decoder - this blocks the known attack vectors but requires careful implementation to catch dotted-path representations such as a.__proto__.x. As an additional defense-in-depth measure, freezing the object prototype at process startup via Object.freeze(Object.prototype) prevents writes to the prototype chain entirely; however, this may break third-party libraries that legitimately extend built-in prototypes, so testing in a staging environment before applying to production is essential. Neither compensating control is a substitute for patching.

Affected VersionsENISA

toon < 2.3.1

Affected Packages

npm @toon-format/toon fix: 2.3.1
euvd toon fix: 2.3.1

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

TOON (toon-format/toon) is a TypeScript/JavaScript library that serializes and deserializes JSON data into a compact human-readable format targeting LLM prompt construction. The vulnerability is CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes) and arises from direct bracket-notation property assignment (obj[key] = value) in the decode pipeline, particularly in packages/toon/src/decode/expand.ts (functions expandPathsSafe and insertPathSafe) and event-builder.ts. When a TOON document contains the keys __proto__, constructor, or prototype, bracket assignment traverses the JavaScript prototype chain rather than creating an own property, injecting attacker-controlled values into Object.prototype for the entire Node.js runtime. The encoder's normalize.ts and replacer.ts paths also contain the same flaw, dropping own __proto__ properties and potentially invoking inherited setters. The fix in v2.3.1 (PR #316, commit 94a2b75) introduces a shared setOwnProperty utility using Object.defineProperty and getOwnProperty that bypass the prototype chain throughout both decode and encode pipelines, and replaces key in obj checks with Object.hasOwn() to prevent prototype-chain reads. CPE: cpe:2.3:a:toon-format:toon:*:*:*:*:*:*:*:*.

Know when Toon 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 (GitHub_M) PRIMARY 8.3 HIGH
AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
vuln.today AI 9.9 CRITICAL

S:C reflects runtime-wide prototype pollution; A:H because DoS is reliably achievable without gadgets; C:L/I:L because RCE and data access require an additional downstream gadget chain.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:L/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

2
Patch available
Sep 02, 2026 - 18:17 EUVD
CVE Published
Sep 02, 2026 - 16:30 cve.org
HIGH 8.3

DescriptionCVE.org

TOON is a compact, human-readable serialization of JSON data for LLM prompts. Prior to 2.3.1, decoding attacker-controlled TOON with a __proto__, constructor, or prototype key wrote through the object prototype chain instead of creating an own property, polluting Object.prototype for the runtime. In packages/toon/src/decode/expand.ts, the expandPaths: 'safe' path and insertPathSafe function made dotted keys such as a.__proto__.x the strongest vector, while plain nested objects, tabular rows, quoted keys, and streaming decode were also affected. The encoder also dropped own __proto__ properties and could invoke an inherited setter during normalization. Services that decode untrusted TOON could experience denial of service or, when a suitable downstream gadget is present, remote code execution. This issue is fixed in version 2.3.1.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 2,386 npm packages depend on @toon-format/toon (488 direct, 1,923 indirect)

Ecosystem-wide dependent count for version 2.3.1.

Technical POC Analysis

CWE-1321 - prototype pollution.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

TOON, a serialization library used across Node.js applications, has a critical vulnerability allowing unauthenticated external attackers to corrupt application objects through malicious serialized input. While no public exploit has been identified to date, affected systems could experience denial of service or, depending on their dependency chain, potential code execution. The absence of a vendor patch means organizations must implement immediate protective measures.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Implement input validation and serialization filters to reject TOON payloads containing __proto__, constructor, or prototype-related keys; enable runtime monitoring and alerting for Object.prototype mutations and suspicious object property assignments; apply network-level access controls restricting TOON deserialization to trusted internal sources only; implement application-level logging and alerts for serialization anomalies and failed validation attempts.

Threat Intelligence Overview

EPSS Score
0.4%
Top 67% exploitable
Prevalence
Rare
niche LLM prompt serialization library, small ecosystem footprint
Threat Intel
1
1 source
Social Media
1
Sightings
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.4%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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