Intel

AIKIDO-2026-435802

ox is vulnerable to Uncontrolled Recursion

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jun 23, 2026
June 23, 2026

50

CVE Score

Medium

Uncontrolled Recursion

Are you affected? Scan for Free

TL;DR

The ox XML parser recursively reads nested elements with read_element and applies no depth limit, so a deeply nested document drives the native C call stack until it overflows and the host process crashes. The parser also mishandles the end-of-buffer boundary when decoding special character (entity) sequences in read_coded_chars, so an unterminated & sequence at the 31-byte scan limit is treated as a valid entity and read past the intended boundary. An attacker who can supply XML to be parsed can crash the process with a small nested payload, causing denial of service. The fix caps element nesting at a maximum depth of 1000, threads a depth counter through the recursive parsing, and corrects the coded-character boundary check.

How do I fix this?

Upgrade the ox 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 if you parse untrusted XML with ox (e.g. public XML/SOAP endpoints, webhooks, uploaded files).

Package

Versions

1.0.0 - 2.14.26

Fixed in 2.14.27

Background info

ox is vulnerable to Uncontrolled Recursion in versions 1.0.0 - 2.14.26.

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