Skip to main content
EPSS 0.7%top 49%

CVE-2026-82404: CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in toon-format toon

0
High
Published: 09/02/2026 (09/02/2026, 16:30:54 UTC)
Source: CVE Database V5
Vendor/Project: toon-format
Product: toon

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.

CVSS v3.1

Score 8.3high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L

Affected software

toon-format

toon

Affected versions
<2.3.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 13:27:25 UTC

Technical Analysis

TOON is a compact serialization format for JSON data used in LLM prompts. Versions of toon prior to 2.3.1 improperly handle keys such as __proto__, constructor, or prototype during decoding, writing through the object prototype chain instead of creating own properties. This prototype pollution occurs in the decode/expand.ts module, particularly via the expandPaths: 'safe' path and insertPathSafe function, which allow dotted keys like a.__proto__.x to modify Object.prototype. The encoder also mishandles own __proto__ properties, potentially invoking inherited setters. Exploiting this vulnerability can lead to denial of service or remote code execution if a downstream gadget is available. The issue is resolved in version 2.3.1.

Potential Impact

Exploitation of this vulnerability can result in modification of the Object prototype, which may cause denial of service or remote code execution in environments decoding untrusted TOON data. The impact depends on the presence of suitable downstream gadgets to leverage the prototype pollution for code execution. Confidentiality, integrity, and availability are all potentially affected.

Mitigation Recommendations

This vulnerability is fixed in toon version 2.3.1. Users should upgrade to version 2.3.1 or later to remediate the issue. No official patch links or advisories were provided, but upgrading to the fixed version is the recommended action.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-08-28T22:00:43.513Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a9857eeacd9273b497f3caf

Added to database: 09/02/2026, 17:07:58 UTC

Last enriched: 09/07/2026, 13:27:25 UTC

Last updated: 10/15/2026, 18:48:24 UTC

Views: 108

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses