doclang is vulnerable to XML External Entity (XXE)
65
Medium Risk
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.
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.
doclang is vulnerable to XML External Entity (XXE) in versions 0.0.1 - 0.7.2.
Upgrade the doclang library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant