Intel

AIKIDO-2026-659930

camel-xpath is vulnerable to Improper Restriction of XML External Entity Reference

CVE-2026-85250Published 5 days ago
November 4, 2026

75

CVE Score

High

Improper Restriction of XML External Entity Reference

Are you affected? Scan for Free

TL;DR

When XPathBuilder evaluates an XPath expression with documentType set to InputSource, it passes message XML supplied as untrusted input directly to javax.xml.xpath, whose default parser accepts a DOCTYPE and resolves external entities, enabling XXE file reads and outbound requests from the Camel process. This option is opt-in; the default document type already parses with Camel's hardened DocumentBuilderFactory. The fix routes the InputSource through that same hardened factory before evaluation.

How do I fix this?

Upgrade the org.apache.camel:camel-xpath package to a fixed release on your branch: 4.18.5, 4.22.1.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and evaluate XPath expressions with documentType set to InputSource on message XML.

Versions

4.0.0 - 4.18.4

Fixed in 4.18.5

4.19.0 - 4.22.0

Fixed in 4.22.1

Background info

camel-xpath is vulnerable to Improper Restriction of XML External Entity Reference in versions 4.0.0 - 4.18.4 and 4.19.0 - 4.22.0.

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