Intel

AIKIDO-2026-963222

doclang is vulnerable to XML External Entity (XXE)

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Jul 21, 2026
July 21, 2026

65

CVE Score

Medium

XML External Entity (XXE)

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.

How do I fix this?

Upgrade the doclang library to the patch version.

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.

Package

Versions

0.0.1 - 0.7.2

Fixed in 0.7.3

Background info

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

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea