CVE-2026-82404: TOON: Prototype pollution when decoding untrusted TOON input
Decoding attacker-controlled TOON containing a __proto__, constructor, or prototype key wrote through the object’s prototype chain instead of creating an own property, polluting Object.prototype for the whole runtime. The expandPaths: 'safe' path (dotted keys such as a.__proto__.x) was the strongest vector; plain nested objects, tabular rows, and quoted keys were all affected. The encoder had a matching defect: it silently dropped own __proto__ properties and could fire an inherited setter while normalizing.
References
- github.com/advisories/GHSA-p95v-992w-h6c3
- github.com/toon-format/toon/commit/94a2b7560b2b5ed903a4d466a3bce8b13daa2660
- github.com/toon-format/toon/pull/316
- github.com/toon-format/toon/releases/tag/v2.3.1
- github.com/toon-format/toon/security/advisories/GHSA-p95v-992w-h6c3
- nvd.nist.gov/vuln/detail/CVE-2026-82404
Code Behaviors & Features
Detect and mitigate CVE-2026-82404 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →