Intel

AIKIDO-2026-97320

json is vulnerable to Out-of-bounds Write

GHSA-cjpr-jw2g-fw99Published 4 days ago
November 16, 2026

65

CVE Score

Medium

Out-of-bounds Write

Are you affected? Scan for Free

TL;DR

The JSON parser mishandles an escaped ASCII control character when allow_control_characters: true is enabled. A backslash followed by a control character can defeat the bounds checks and cause an out-of-bounds write, usually crashing the VM. The issue is exposed when parsing untrusted JSON with that option. The fix moves invalid-escape rejection outside the conditional branch so the malformed input is rejected.

How do I fix this?

Upgrade the json library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and parse untrusted input with allow_control_characters: true.

Package

Versions

2.18.0 - 2.18.1

Fixed in 2.18.2

2.19.0 - 2.19.2

Fixed in 2.19.3

Background info

json is vulnerable to Out-of-bounds Write in versions 2.18.0 - 2.18.1 and 2.19.0 - 2.19.2.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea