Skip to main content
VulnerabilityPublished

CVE-2026-85250: Apache Camel · XML External Entity (XXE)

Affects Apache CamelSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.5 High : upgrade to 4.22.1 or 4.18.5 soon.

Data as of 2 Dec 2026, 18:37 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.7% chance of exploitation in 30 days – higher than 56% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 4.22.1, 4.18.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 19 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    Public exploit code: GitHub proofs of concept

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.

What to do

Upgrade Apache to 4.22.1 or 4.18.5.

Affected software

ProductAffectedFixed in
Apache Camelorg.apache.camel:camel-xpathAffected
  • >=4.19.0 <4.22.1
Fixed in
  • 4.22.1
Apache Camelorg.apache.camel:camel-xpathAffected
  • >=4.0.0 <4.18.5
Fixed in
  • 4.18.5
MavenApache Software Foundation/org.apache.camel:camel-xpathpkg:maven/Apache Software Foundation/org.apache.camel:camel-xpathOther threatsAffected
  • >=4.0.0 <4.18.5
  • >=4.19.0 <4.22.1
Fixed in
  • 4.18.5
  • 4.22.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fix is available and users should upgrade to Apache Camel 4.23.0, or to 4.18.5 or 4.22.1 if using the respective LTS streams. These versions harden the InputSource document type parser to refuse DOCTYPE declarations, mitigating the vulnerability. For deployments unable to upgrade immediately, avoid using documentType=InputSource on expressions evaluated over untrusted XML. Note that if system properties are set to relax the DocumentBuilderFactory configuration, the protection may be intentionally disabled by design.

Description

Improper Restriction of XML External Entity Reference vulnerability in Apache Camel XPath component. This issue affects Apache Camel: from 4.0.0 before 4.18.5, from 4.19.0 before 4.22.1. With documentType set to InputSource, XPathBuilder handed the payload straight to javax.xml.xpath, which builds a DocumentBuilder of its own using the JDK defaults. The hardening applied to Camel's default document type was therefore bypassed: a DOCTYPE declaration that is refused on the default type was accepted here, and the external entity it declared was resolved and expanded into the evaluated document. An external sender whose XML reaches such an expression could read files readable by the Camel process and cause the process to issue requests to hosts it names. The two document types disagreeing on parser configuration is what made this reachable, since a deployment choosing InputSource for streaming reasons had no indication it was also choosing a weaker parser. Upgrade to Apache Camel 4.23.0, which fixes the issue. Users on the 4.18.x LTS releases stream should upgrade to 4.18.5. Users on the 4.22.x LTS releases stream should upgrade to 4.22.1. The InputSource document type now goes through the same hardened parser as the default type, so a DOCTYPE is refused. Note that it also shares that type's documented escape hatch: the same DocumentBuilderFactory system properties that relax the default type relax this one, so a deployment that has set them remains unprotected by design. For deployments that cannot upgrade immediately, do not use documentType=InputSource on expressions evaluated over untrusted XML; the default document type already refuses a DOCTYPE.

References

Community reviews

Loading reviews…