What’s Vulnerable › Vulnerabilities
CVE-2022-46161: Code injection in pdfmake
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-12-06 · updated 2026-06-17
- Weakness: CWE-94
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.
Affected products
- bpampuch pdfmake: through 0.2.5
References
- https://github.com/bpampuch/pdfmake/blob/802813970ac6de68a0bd0931b74150b33da0dd18/dev-playground/server.js#L32
- https://securitylab.github.com/advisories/GHSL-2022-068_pdfmake/
- https://github.com/bpampuch/pdfmake/blob/802813970ac6de68a0bd0931b74150b33da0dd18/dev-playground/server.js#L32
- https://securitylab.github.com/advisories/GHSL-2022-068_pdfmake/
Get alerted when CVE-2022-46161 or the next vulnerability affects your stack