{
  "id": "CVE-2026-82404",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-82404",
  "published_at": "2026-09-02T16:30:54.876Z",
  "title": "TOON: Prototype pollution when decoding untrusted TOON input",
  "vendor": "toon-format",
  "product": "toon",
  "cvss": {
    "score": 8.3,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-1321",
  "cvss_by_source": {
    "cna": 8.3
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "toon-format",
        "product": "toon",
        "ranges": [
          "\u003c 2.3.1"
        ],
        "fixed_in": [
          "2.3.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade toon to 2.3.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/toon-format/toon/security/advisories/GHSA-p95v-992w-h6c3"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/toon-format/toon/pull/316"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/toon-format/toon/commit/94a2b7560b2b5ed903a4d466a3bce8b13daa2660"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/toon-format/toon/releases/tag/v2.3.1"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
