CVE-2026-110642
xhtml2pdf before 0.2.19 contains an OS command injection vulnerability in pisa.startViewer() that…
- Risk score
- 60/100
- CVSS
- 7.8 v3.1
- Exploit chance (30 days)
- 1.1%
- Published
- 14 Oct 2026
Open in the live forecast Today's forecast
What to know
- What it is
- 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 invo…
- Affected
- See advisory
- Fix
- Upgrade the product to 0.2.19 or later.
- Exploitation
- No known exploitation
Why it is Amber
- CVSS 7.8 high
References
- https://github.com/xhtml2pdf/xhtml2pdf/blob/v0.2.18/xhtml2pdf/pisa.py#L393-L400
- https://github.com/xhtml2pdf/xhtml2pdf/commit/f86380dad15b3a6810201d08755a3ee6b19d5063
- https://github.com/xhtml2pdf/xhtml2pdf/pull/835
- https://github.com/xhtml2pdf/xhtml2pdf/releases/tag/v0.2.19
- https://www.vulncheck.com/advisories/xhtml2pdf-before-0.2.19-os-command-injection-via-startviewer-file-name
Original 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.
Last activity 14 Oct 2026. Patch Forecast updates every hour.