{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-82404","id":"CVE-2026-82404","title":"TOON: Prototype pollution when decoding untrusted TOON input","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 d","descriptionLong":"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.","published":"2026-09-02T16:30:54.876Z","updated":"2026-10-28T02:31:02.061546613Z","reserved":"2026-08-28T22:00:43.513Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"github.com"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"OSV"},{"version":"3.1","score":8.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","rating":"high","source":"GitHub"}],"rating":"high","products":["toon-format toon"],"affectedProducts":[{"vendor":"toon-format","product":"toon","defaultStatus":null,"versions":[{"version":"< 2.3.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@toon-format/toon","purl":"pkg:npm/%40toon-format/toon","ranges":["<2.3.1"],"fixed":["2.3.1"],"advisory":"GHSA-p95v-992w-h6c3"}],"cwes":["CWE-1321"],"aliases":["GHSA-p95v-992w-h6c3"],"references":[{"url":"https://github.com/toon-format/toon/security/advisories/GHSA-p95v-992w-h6c3","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/toon-format/toon/pull/316","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/toon-format/toon/commit/94a2b7560b2b5ed903a4d466a3bce8b13daa2660","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/toon-format/toon/releases/tag/v2.3.1","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/82xxx/CVE-2026-82404.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-82404","tags":["advisory"]},{"url":"https://github.com/toon-format/toon","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00677,"epssPercentile":0.53231,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-82404","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-82404","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-82404","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-p95v-992w-h6c3","ok":true,"note":"GHSA-p95v-992w-h6c3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-82404","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}