# CVE-2026-82404: TOON: Prototype pollution when decoding untrusted TOON input

- Severity: High 8.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-09-02T16:30:54.876Z
- Modified: 2026-09-09T21:04:42.813Z
- Also known as: GHSA-p95v-992w-h6c3
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- toon-format toon: < 2.3.1
- @toon-format/toon (npm): before 2.3.1

## Every score

- GitHub_M: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L`

## References

- <https://github.com/toon-format/toon/security/advisories/GHSA-p95v-992w-h6c3> (web)
- <https://github.com/toon-format/toon/pull/316> (web)
- <https://github.com/toon-format/toon/commit/94a2b7560b2b5ed903a4d466a3bce8b13daa2660> (web)
- <https://github.com/toon-format/toon/releases/tag/v2.3.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-82404> (advisory)
- <https://github.com/toon-format/toon> (package)

## Sources

- CVE List: [CVE-2026-82404](https://www.cve.org/CVERecord?id=CVE-2026-82404), CVE Terms of Use, modified 2026-09-02
- GitHub Advisory Database: [GHSA-p95v-992w-h6c3](https://github.com/advisories/GHSA-p95v-992w-h6c3), CC-BY-4.0, modified 2026-09-03
- NVD: [CVE-2026-82404](https://nvd.nist.gov/vuln/detail/CVE-2026-82404), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-82404 · Whole record: https://cve.day/CVE-2026-82404.json · Rebuilt by cve.day 2026-11-25T22:59:36.130Z
