What’s Vulnerable › Vulnerabilities

CVE-2026-110642: xhtml2pdf before 0.2.19 OS Command Injection via startViewer File Name

Description

xhtml2pdf before 0.2.19 contains an OS command injection vulnerability in pisa.startViewer() that allows attackers to execute commands by interpolating unescaped file names into os.system. Attackers can supply an input file whose name contains a double quote and shell metacharacters, which runs OS commands as the invoking user when the pisa tool is used with -s/--start-viewer.

Affected products

How to fix

Upgrade to a fixed version: xhtml2pdf 0.2.19. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-110642 or the next vulnerability affects your stack