# CVE-2022-46161: Code injection in pdfmake

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.76%, higher than 78% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-12-06T18:47:00.669Z
- Modified: 2026-06-17T05:11:20.070Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- bpampuch pdfmake: <= 0.2.5
- pdfmake pdfmake: up to 0.2.5

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://securitylab.github.com/advisories/GHSL-2022-068_pdfmake/> (exploit, third-party-advisory)
- <https://github.com/bpampuch/pdfmake/blob/802813970ac6de68a0bd0931b74150b33da0dd18/dev-playground/server.js#L32> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2022-46161](https://www.cve.org/CVERecord?id=CVE-2022-46161), CVE Terms of Use, modified 2025-04-22
- NVD: [CVE-2022-46161](https://nvd.nist.gov/vuln/detail/CVE-2022-46161), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-46161 · Whole record: https://cve.day/CVE-2022-46161.json · Rebuilt by cve.day 2026-11-25T22:58:17.270Z
