CVE-2026-110642
xhtml2pdf before 0.2.19 contains an OS command injection …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/xhtml2pdf/xhtml2pdf/blob/v0.2.18/xhtml2pdf/pisa.py#L393-L400
- github.com/xhtml2pdf/xhtml2pdf/commit/f86380dad15b3a6810201d08755a3ee6b19d5063
- github.com/xhtml2pdf/xhtml2pdf/pull/835
- github.com/xhtml2pdf/xhtml2pdf/releases/tag/v0.2.19
- www.vulncheck.com/advisories/xhtml2pdf-before-0.2.19-os-command-injection-via-startviewer-
- nvd.nist.gov/vuln/detail/CVE-2026-110642
- cve.org/CVERecord?id=CVE-2026-110642
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.