Skip to main content

PDF::WebKit CVE-2026-16770

| EUVDEUVD-2026-57695 CRITICAL
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-08-12 CPANSec GHSA-6f7m-6567-58mj
9.8
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit malicious HTML with pdf-webkit meta tags
  2. Delivery
    App passes HTML to PDF::WebKit constructor
  3. Exploit
    Meta tags override renderer options (--enable-local-file-access)
  4. Execution
    wkhtmltopdf reads local files or writes chosen path
  5. Impact
    Sensitive data returned in generated PDF

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
Exploitation Conditions

Exploitation requires that the target application renders attacker-controlled HTML content (an HTML string or file source, NOT a URL source) through PDF::WebKit, and that the meta-tag scan runs - which it does when the recommended dependency XML::LibXML is installed. The concrete injection vector is a <meta name="pdf-webkit-KEY" content="VALUE"> element in the document head, which becomes an arbitrary --KEY VALUE wkhtmltopdf switch (or a bare flag when VALUE is "yes"); reachable high-impact switches explicitly named are --enable-local-file-access and --cookie-jar. Limiting factors that reduce real-world risk: the app must actually feed untrusted HTML to the constructor (trusted-only or URL-only pipelines are not affected), the meta scan is skipped when XML::LibXML is absent, and impact is confined to wkhtmltopdf's option surface (file read/write) rather than arbitrary shell command execution because the renderer runs with an argument list, not a shell.

Impact

NVD rates this CVSS 9.8 (AV:N/AC:L/PR:N/UI:N/C:H/I:H/A:H), but that headline number should be read against the actual precondition: the flaw is only reachable when an application renders attacker-controlled HTML through PDF::WebKit - a design decision of the consuming app, not a default of the library, so exposure is conditional rather than universal. The realistic worst case is high-value but bounded: local file disclosure into the generated PDF (via --enable-local-file-access) and file writes to chosen paths (via --cookie-jar and similar), rather than direct code execution, since the subprocess is run with an argument list and not a shell. There is a vendor patch and a public CVE/advisory trail, but no CISA KEV listing and no EPSS score in the provided data, and no public exploit was identified - signals that point to a serious latent issue rather than confirmed mass exploitation. Any operator running a service that turns user-submitted HTML into PDFs should treat this as urgent and patch promptly, while operators whose sources are exclusively trusted or URL-based face materially lower risk. Note the conflict to verify: CVSS marks A:H, yet the described impact is primarily confidentiality/integrity (file read/write) with no clear availability effect.

Exploit ScenarioDerived

An application lets users upload or submit HTML (for example an invoice or report template) that it converts to PDF with PDF::WebKit. The attacker embeds <meta name="pdf-webkit-enable-local-file-access" content="yes"> plus tags that reference server-local files, causing wkhtmltopdf to read sensitive files (config, secrets) into the returned PDF, or uses a meta tag mapped to --cookie-jar to write to an attacker-chosen path. No public exploit is identified, but the technique is straightforward given the documented meta-tag-to-flag mapping.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 13, 2026

Argument injection in PDF::WebKit through version 1.2 (Perl module, CPE mithaldu:pdf::webkit) lets an attacker who controls the source HTML dictate the wkhtmltopdf command-line options used for rendering. Because meta tags of the form <meta name="pdf-webkit-KEY" content="VALUE"> are converted into renderer switches without an allow-list and are merged last, a malicious document can enable options like --enable-local-file-access or --cookie-jar to read local files into the output PDF or write to attacker-chosen paths. No public exploit identified at time of analysis; a vendor patch is available. NVD scores this CVSS 9.8, though real-world exposure depends on the application feeding untrusted HTML to the module.

RemediationAI

Upgrade PDF::WebKit beyond 1.2 to the fixed release and apply the vendor patch published at https://security.metacpan.org/patches/P/PDF-WebKit/1.2/CVE-2026-16770-r1.patch (Patch available per vendor advisory; an exact fixed version tag beyond 1.2 is not stated in the provided data, so confirm the released version on CPAN before deploying). Until patched, the most effective compensating control is to stop passing untrusted HTML directly to the constructor: sanitize or strip <meta name="pdf-webkit-*"> tags from user-supplied documents before rendering, which neutralizes the injection at the cost of a preprocessing step. Alternatively, render only from URL sources where feasible, since URL sources are not scanned for meta tags, or explicitly disallow dangerous switches such as --enable-local-file-access and --cookie-jar at the wrapper level; be aware that disabling local-file access will break any legitimate documents that intentionally embed local assets. Do NOT rely on the absence of XML::LibXML as a control - while its absence skips the scan, it is a recommended dependency and its presence is the more secure-looking but actually vulnerable configuration. Track the upstream discussion at https://github.com/kingpong/perl-PDF-WebKit/issues/9.

Affected VersionsENISA

PDF::WebKit 0 ≤1.2

Affected Packages

euvd pdf_webkit no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PDF::WebKit is a Perl wrapper around the wkhtmltopdf binary, which uses a WebKit engine to render HTML into PDF. During construction for an HTML string or file source, _pdf_webkit_meta_tags scans the document head and turns each pdf-webkit-* meta tag into a wkhtmltopdf option: the KEY is normalized to match --[a-z0-9-]+ and the CONTENT becomes the following argument (a value of "yes" emits a bare flag). This is a classic CWE-88 (argument/parameter injection) issue: untrusted input crosses into a subprocess argument vector. Notably the renderer is invoked with an explicit argument list, so this is argument injection, NOT shell injection - the attacker controls wkhtmltopdf flags but cannot directly run arbitrary shell commands. The BUILD step merges meta-derived options last, so document-supplied switches override both module defaults and options passed to new(). URL sources are not scanned, and the meta-tag scan is skipped entirely when the recommended dependency XML::LibXML is absent.

Know when Pdf gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.1 CRITICAL

Reachable remotely when an app renders untrusted HTML (AV:N/AC:L/PR:N/UI:N); impact is local file read and file write (C:H/I:H) with no clear availability effect (A:N), lowering it below NVD's 9.8.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
Aug 13, 2026 - 13:22 NVD
9.8 (CRITICAL)
CVE Published
Aug 12, 2026 - 23:12 cve.org
UNKNOWN (no severity yet)
CVE Published
Aug 12, 2026 - 23:12 cve.org
CRITICAL 9.8

DescriptionCVE.org

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 <meta name="pdf-webkit-KEY" content="VALUE"> 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.

Executive ViewAI

Why It Matters

PDF::WebKit (Perl module) versions through 1.2 contain a critical argument injection vulnerability allowing attackers controlling HTML input to execute arbitrary document-rendering commands, exposing local files and system paths. No public exploit identified at time of analysis, but the technical severity (CVSS 9.8) creates substantial risk to any system processing untrusted documents. Organizations using this module must prioritize patching to protect document processing pipelines and prevent unauthorized data access.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
niche Perl CPAN module wrapping wkhtmltopdf, limited deployment
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

More in Pdf

View all
CVE-2017-15257 HIGH
7.8 Oct 11

IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial

CVE-2017-15253 HIGH
7.8 Oct 11

IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial

CVE-2017-15252 HIGH
7.8 Oct 11

IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial

CVE-2017-15251 HIGH
7.8 Oct 11

IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial

CVE-2017-15249 HIGH
7.8 Oct 11

IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial

CVE-2017-15248 HIGH
7.8 Oct 11

IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial

CVE-2017-15246 HIGH
7.8 Oct 11

IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial

CVE-2017-15242 HIGH
7.8 Oct 11

IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial

CVE-2017-15262 HIGH
7.8 Oct 11

IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to execute arbitrary code or cause a denial

CVE-2017-15260 HIGH
7.8 Oct 11

IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to cause a denial of service or possibly ha

CVE-2017-15259 HIGH
7.8 Oct 11

IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to cause a denial of service or possibly ha

CVE-2017-15258 HIGH
7.8 Oct 11

IrfanView version 4.44 (32bit) with PDF plugin version 4.43 allows attackers to cause a denial of service or possibly ha

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy