Intel

AIKIDO-2026-963222

doclang is vulnerable to XML External Entity (XXE)

XML External Entity (XXE) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Today

65

Medium Risk

This Affects:

PYTHONdoclang
0.0.1 - 0.7.2
Fixed in 0.7.3
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

doclang is vulnerable to XML External Entity (XXE) in versions 0.0.1 - 0.7.2.

How to fix this

Upgrade the doclang library to the patch version.