


Perceptive Security
SOC/SIEM Consultancy

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, o…
Published:
2 september 2026 om 00:00:00
Alert date:
2 september 2026 om 20:06:16
Source:
nvd.nist.gov
Supply Chain & Dependencies, Web Technologies, Emerging Technologies
CVE-2026-82404 is a prototype pollution vulnerability in the TOON serialization library, used for compact JSON encoding in LLM prompts. Prior to version 2.3.1, decoding attacker-controlled TOON data containing keys like __proto__, constructor, or prototype would write through the object prototype chain, polluting Object.prototype at runtime. The vulnerability affects multiple decode paths including expandPaths: 'safe', plain nested objects, tabular rows, quoted keys, and streaming decode. The encoder also had issues dropping own __proto__ properties and invoking inherited setters during normalization. Exploitation could lead to denial of service or, with a suitable downstream gadget, remote code execution. The fix was released in TOON version 2.3.1 with the patch available on GitHub.
Technical details
Mitigation steps:
Affected products:
TOON serialization library (prior to 2.3.1)
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-82404
https://github.com/toon-format/toon/commit/94a2b7560b2b5ed903a4d466a3bce8b13daa2660
https://github.com/toon-format/toon/pull/316
https://github.com/toon-format/toon/releases/tag/v2.3.1
https://github.com/toon-format/toon/security/advisories/GHSA-p95v-992w-h6c3
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
