camel-xpath is vulnerable to Improper Restriction of XML External Entity Reference
75
CVE Score
High
Improper Restriction of XML External Entity Reference
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.
Upgrade the org.apache.camel:camel-xpath package to a fixed release on your branch: 4.18.5, 4.22.1.
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.
4.0.0 - 4.18.4
Fixed in 4.18.54.19.0 - 4.22.0
Fixed in 4.22.1camel-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.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.