CVE-2022-46161
Severity CVSS v4.0:
Pending analysis
Type:
CWE-94
Code Injection
Publication date:
06/12/2022
Last modified:
20/10/2025
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.
Impact
Base Score 3.x
10.00
Severity 3.x
CRITICAL
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:pdfmake:pdfmake:*:*:*:*:*:*:*:* | 0.2.5 (including) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- 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/



