CPANSA-PDF-WebKit-2026-16770: PDF-WebKit vulnerability
| Publisher | giterlizzi | Document category | csaf_security_advisory |
|---|---|---|---|
| Initial release date | 2026-08-13T00:00:00 | Engine | CSAF Perl Toolkit 0.26 |
| Current release date | 2026-08-13T00:00:00 | Build Date | |
| Current version | 1 | Status | final |
| CVSS v3.1 Base Score | 9.8 | Severity | Critical |
| Original language | Language | en | |
| Also referred to | |||
Vulnerability Description
PDF::WebKit versions through 1.2 for Perl allow argument injection into wkhtmltopdf via meta tags in the source document.
For an HTML string or file source, the constructor collects every element in the document head through _pdf_webkit_meta_tags and turns each one into a wkhtmltopdf command line option. KEY is normalized to an option name matching --[a-z0-9-]+ but is not checked against an allow list, VALUE is passed through unchanged as the argument that follows it, and a VALUE of "yes" emits the option as a bare flag. BUILD merges the meta derived options last, so they also override the module defaults and the options passed to new. Switches such as --enable-local-file-access and --cookie-jar are reachable this way. The renderer is executed with an argument list rather than a shell command, so this is argument injection and not shell injection.
Any caller that renders untrusted HTML lets the document choose the renderer's options and override those set by the application, including options that read local files into the resulting PDF or write to a chosen path. A URL source is not scanned, and the scan is skipped when XML::LibXML, a recommended dependency, is not installed.
Vulnerabilities
CVE-2026-16770
Vulnerability DescriptionPDF::WebKit versions through 1.2 for Perl allow argument injection into wkhtmltopdf via meta tags in the source document.
For an HTML string or file source, the constructor collects every element in the document head through _pdf_webkit_meta_tags and turns each one into a wkhtmltopdf command line option. KEY is normalized to an option name matching --[a-z0-9-]+ but is not checked against an allow list, VALUE is passed through unchanged as the argument that follows it, and a VALUE of "yes" emits the option as a bare flag. BUILD merges the meta derived options last, so they also override the module defaults and the options passed to new. Switches such as --enable-local-file-access and --cookie-jar are reachable this way. The renderer is executed with an argument list rather than a shell command, so this is argument injection and not shell injection.
Any caller that renders untrusted HTML lets the document choose the renderer's options and override those set by the application, including options that read local files into the resulting PDF or write to a chosen path. A URL source is not scanned, and the scan is skipped when XML::LibXML, a recommended dependency, is not installed.
| Weakness | CWE-88 : Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') |
|---|
Product status
Known affected
| Product | Score | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| PDF-WebKit greater than 0 |
|
giterlizzi
Namespace: https://github.com/giterlizzi/
gdt@cpan.org
References
- CPANSA-PDF-WebKit-2026-16770 JSON self
https://raw.githubusercontent.com/giterlizzi/perl-CPANSA-CSAF/develop/csaf/white/2026/cpansa-pdf-webkit-2026-16770.json - https://github.com/kingpong/perl-PDF-WebKit/issues/9 external
https://github.com/kingpong/perl-PDF-WebKit/issues/9 - https://security.metacpan.org/patches/P/PDF-WebKit/1.2/CVE-2026-16770-r1.patch external
https://security.metacpan.org/patches/P/PDF-WebKit/1.2/CVE-2026-16770-r1.patch - https://wkhtmltopdf.org/status.html external
https://wkhtmltopdf.org/status.html - http://www.openwall.com/lists/oss-security/2026/08/13/2 external
http://www.openwall.com/lists/oss-security/2026/08/13/2 - CVE-2026-16770 (NVD) external
https://nvd.nist.gov/vuln/detail/CVE-2026-16770
Revision history
| Version | Date of the revision | Summary of the revision |
|---|---|---|
| 1 | Thu Aug 13 00:00:00 2026 | First release |
Sharing rules
TLP:WHITE
For the TLP version see: https://www.first.org/tlp/