Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted TOON payload with __proto__ dotted key
-
DeliveryDecoder traverses prototype chain via bracket assignment
-
ExploitObject.prototype polluted runtime-wide
-
ExecutionDownstream library reads tainted prototype property
-
ImpactTrigger 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
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.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.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.
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
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.
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
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
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.
EUVD-2026-70214
GHSA-p95v-992w-h6c3
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB