CVE-2022-46161: bpampuch pdfmake Code Injection
Vulnerability summary
CVE-2022-46161 is a critical (CVSS 10.0) Code Injection vulnerability in bpampuch pdfmake. EPSS estimates a 1.73% chance of exploitation in the next 30 days, higher than 77.2% of scored vulnerabilities. 2 public exploits are recorded.
Timeline
- 06-12-2022PublishedVulnerability first disclosed.
- 22-04-2025Last modifiedVulnerability information updated.
Description
pdfmake is an open source client/server side PDF printing in pure JavaScript. In versions up to and including 0.2.5 pdfmake contains an unsafe evaluation of user controlled input. Users of pdfmake are thus subject to arbitrary code execution in the context of the process running the pdfmake code. There are no known fixes for this issue. Users are advised to restrict access to trusted user input.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
1.73%
Chance of exploitation in the next 30 days
Percentile
77%
Versus all other CVEs
30-day change
+0.08 pp
From 1.65% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 foundGhsl 2022 068 Pdfmake
Maturity: poc
Pdfmake
Maturity: poc
Weaknesses
CWE · root causeAffected systems
2 vendors · 2 products
References
2 links- securitylab.github.com/advisories/GHSL-2022-068_pdfmake/X Refsource CONFIRMExploitThird Party Advisory
- github.com/bpampuch/pdfmake/blob/802813970ac6de68a0bd0931b74150b33da0dd18/dev-playground/server.jsX Refsource MISCExploitThird Party Advisory