CVE-2026-82404: About Token-Oriented Object Notation (TOON)


This article was published on September 7, 2026.

Preface: To this day, cyber security in AI/LLM environments still relies on traditional client applications, software (especially Linux libraries), and code. Artificial intelligence has not replaced humans. In fact, humans have long understood the capabilities of AI. But it seems that humanity’s insatiable desires and ambitions have inadvertently made AI more powerful than humans!

Background: Because OpenAI charges per token, developers manually implement TOON into their data pipeline before the payload hits the OpenAI server.

What These Keys Do in Java?

Script__proto__: A special getter/setter property accessor on objects that points directly to the object’s parent prototype.

constructor: A property pointing to the function (like Object or Array) that created the instance. Through object.constructor.prototype, it provides an alternate path to modify the prototype.

prototype: A property found on constructor functions used to define shared methods and properties for all instances created by that function.

When integrated with OpenAI (or other LLMs) to reduce token usage, TOON (Token-Oriented Object Notation) does not natively use special property keys like __proto__, constructor, or prototype for any functional goal. According to the official TOON specification, no key has a special meaning, and they must always be parsed strictly as ordinary, standalone properties.

Vulnerability details: A prototype pollution flaw designated as CVE-2026-82404 impacts the TOON data serialization format for LLM prompts prior to version 2.3.1.

  • Affected Package: toon-format toon (used for compact serialization of JSON data in LLM prompts).
  • Vulnerable Versions: Prior to version 2.3.1.
  • The Issue: Decoding untrusted TOON input containing special keys like __proto__, constructor, or prototype writes through the object prototype chain instead of creating a standard property. Dotted keys (such as a.__proto__.x) act as strong vectors.
  • Impact: Applications processing untrusted TOON inputs may suffer from a denial of service (DoS) or remote code execution (RCE) if downstream gadgets are present in the runtime environment.

Solution: Upgrade the TOON package to version 2.3.1 or later, which properly sanitizes and restricts prototype path expansion.

Official announcement: Please refer to link for details –

https://www.tenable.com/cve/CVE-2026-82404

,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.