Vulnerability  ·  2026-11-01

Stirling-PDF AI agent endpoint passes unsanitized HTML to WeasyPrint (create-pdf-from-html-agent)

VulnerabilityMedium impactGlobalCVE-2026-119343
The AI agent tool that converts HTML to PDF accepts arbitrary htmlContent and feeds it to WeasyPrint without the HTML sanitizer used by the non-agent conversion endpoint, so crafted HTML/scripts reach the renderer untrusted.
For a locally hosted document tool this narrows to HTML-injection into a PDF renderer (markup/script injection into generated documents). It is a real but low-blast-radius AI-surface flaw with no known exploit, set at Tier C.
POST /api/v1/ai/tools/create-pdf-from-html-agent copies attacker-controlled htmlContent straight into WeasyPrint, bypassing the CustomHtmlSanitizer that the equivalent /api/v1/convert/html path applies.
Stirling-PDF prior to 3.0.0
Upgrade to Stirling-PDF 3.0.0+. Fix commit: https://github.com/Stirling-Tools/Stirling-PDF/commit/0570c4c4d9e7bf4786a02ab770ef75f116ac3719
NVD CVE-2026-119343Fix commit (Stirling-Tools/Stirling-PDF)
See this in the live feed Explore related AI security and governance findings — updated every morning.
Open the feed →