Intel

AIKIDO-2026-456232

jsonschema-rs is vulnerable to Uncontrolled Recursion

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 8, 2026
July 8, 2026

59

CVE Score

Medium

Uncontrolled Recursion

Are you affected? Scan for Free

TL;DR

The unevaluatedProperties and unevaluatedItems keywords are compiled into a recursive validator structure that eagerly follows $ref and $dynamicRef references to collect evaluated locations. When a schema contains a self-referential $dynamicRef combined with unevaluatedProperties or unevaluatedItems, the dynamic reference is followed back into itself with no cycle guard and recurses until the call stack is exhausted. A crafted schema therefore aborts the whole process with a stack overflow while the validator is being built instead of returning a result. The fix caches pending validators and adds a marking stack with cycle detection that break the recursive $dynamicRef cycle.

How do I fix this?

Upgrade the jsonschema-rs 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 your application compiles or validates JSON schemas that can be influenced by untrusted input.

Versions

0.24.0 - 0.46.9

Fixed in 0.46.10

Background info

jsonschema-rs is vulnerable to Uncontrolled Recursion in versions 0.24.0 - 0.46.9.

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