doclang is vulnerable to XML External Entity (XXE)
65
CVE Score
Medium
XML External Entity (XXE)
DocLang XML validation parses input with lxml's default parser, which resolves entities and honors inline DTD declarations, so an attacker-supplied document can read local files or exhaust memory through external or nested entities; the Schematron backend can also re-serialize a retained DOCTYPE and expand entities downstream. Separately, the pack command copies pages and assets with helpers that follow symbolic links, so a planted symlink (including nested ones) can pull sensitive host files into the archive. The fix parses with a hardened parser that disables DTD loading and entity resolution, rejects DOCTYPE and entity nodes, strips the DOCTYPE from temporary Schematron XML, and refuses symbolic links during pack by routing copies through guarded helpers.
Upgrade the doclang library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you validate untrusted DocLang documents or pack pages and assets that an attacker can influence.
0.0.1 - 0.7.2
Fixed in 0.7.3doclang is vulnerable to XML External Entity (XXE) in versions 0.0.1 - 0.7.2.
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.