{"id":"CVE-2026-82404","published":"2026-09-02T16:30:54Z","modified":"2026-09-02T18:59:07Z","title":"TOON: Prototype pollution when decoding untrusted TOON input","vendor":"toon-format","product":"toon","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00677,"percentile":0.47445,"provenance":"source"},"cwes":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes"}],"references":[{"url":"https://github.com/toon-format/toon/security/advisories/GHSA-p95v-992w-h6c3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/toon-format/toon/pull/316","tags":["x_refsource_MISC"]},{"url":"https://github.com/toon-format/toon/commit/94a2b7560b2b5ed903a4d466a3bce8b13daa2660","tags":["x_refsource_MISC"]},{"url":"https://github.com/toon-format/toon/releases/tag/v2.3.1","tags":["x_refsource_MISC"]}],"priority":{"score":15.3,"factors":[{"name":"EPSS percentile","points":9.49},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"toon-format","affectedVersions":[{"vendor":"toon-format","product":"toon","versions":["< 2.3.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-09-02T18:58:59.419694Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@toon-format/toon","vulnerableRanges":["<2.3.1"],"patched":["2.3.1"],"from":["GHSA-p95v-992w-h6c3"],"provenance":"source"}],"summary":{"text":"The prototype pollution flaw affects the TOON (toon-format) serialization library's decoder and, in the expandPaths 'safe' handling in packages/toon/src/decode/expand.ts, its encoder normalization. An attacker who can supply TOON input that a service decodes can cause writes through the object prototype chain via __proto__, constructor, or prototype keys, which may lead to denial of service or remote code execution when a suitable downstream gadget exists, and the attack needs only network access to the decoding service with no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:03:36Z"},"euvd":{"id":"EUVD-2026-70214","exploited":false,"provenance":"source"}}