CVE-2026-110642
xhtml2pdf before 0.2.19 OS Command Injection via startViewer File Name
CVSS Score
7.8
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-78 |
| Vendor | xhtml2pdf |
| Product | xhtml2pdf |
| Published | Oct 14, 2026 |
| Last Updated | Oct 14, 2026 |
Stay Ahead of the Next One
Get instant alerts for xhtml2pdf xhtml2pdf
Be the first to know when new high vulnerabilities affecting xhtml2pdf xhtml2pdf are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Affected Versions
xhtml2pdf / xhtml2pdf
0 < 0.2.19
References
github.com: https://github.com/xhtml2pdf/xhtml2pdf/pull/835 github.com: https://github.com/xhtml2pdf/xhtml2pdf/commit/f86380dad15b3a6810201d08755a3ee6b19d5063 github.com: https://github.com/xhtml2pdf/xhtml2pdf/releases/tag/v0.2.19 github.com: https://github.com/xhtml2pdf/xhtml2pdf/blob/v0.2.18/xhtml2pdf/pisa.py#L393-L400 vulncheck.com: https://www.vulncheck.com/advisories/xhtml2pdf-before-0.2.19-os-command-injection-via-startviewer-file-name
Credits
Zachariah Mithani