camel-saxon is vulnerable to Improper Restriction of XML External Entity Reference
75
CVE Score
High
Improper Restriction of XML External Entity Reference
XQueryBuilder handed a message body that already arrived as a javax.xml.transform.Source to Saxon and parsed it with a default Configuration whose parse options set only a whitespace stripping rule, so a DOCTYPE was accepted and external entities resolved. Anyone able to send XML into a route that evaluates xquery on such a body, for example after convertBodyTo(Source.class), could make it read local files or fetch remote resources. The fix disallows DOCTYPE declarations and disables external general and parameter entities and external DTD loading in the default Configuration.
Upgrade the camel-saxon package to a patch version.
You are affected if you are using a version that falls within the vulnerable range and evaluate xquery on message bodies that arrive as a javax.xml.transform.Source.
4.0.0 - 4.18.4
Fixed in 4.18.54.19.0 - 4.22.1
Fixed in 4.22.2camel-saxon is vulnerable to Improper Restriction of XML External Entity Reference in versions 4.0.0 - 4.18.4 and 4.19.0 - 4.22.1.
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.