CVE-2022-46161

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

Configuration 1 (hide)

cpe:2.3:a:pdfmake:pdfmake:*:*:*:*:*:*:*:*

History

20 Oct 2025, 15:56

Type Values Removed Values Added
First Time Pdfmake pdfmake
Pdfmake
CPE cpe:2.3:a:pdfmake_project:pdfmake:*:*:*:*:*:*:*:* cpe:2.3:a:pdfmake:pdfmake:*:*:*:*:*:*:*:*

21 Nov 2024, 07:30

Type Values Removed Values Added
CVSS v2 : unknown
v3 : 9.8
v2 : unknown
v3 : 10.0
References () https://github.com/bpampuch/pdfmake/blob/802813970ac6de68a0bd0931b74150b33da0dd18/dev-playground/server.js#L32 - Exploit, Third Party Advisory () https://github.com/bpampuch/pdfmake/blob/802813970ac6de68a0bd0931b74150b33da0dd18/dev-playground/server.js#L32 - Exploit, Third Party Advisory
References () https://securitylab.github.com/advisories/GHSL-2022-068_pdfmake/ - Exploit, Third Party Advisory () https://securitylab.github.com/advisories/GHSL-2022-068_pdfmake/ - Exploit, Third Party Advisory
Summary
  • (es) pdfmake es una impresión de PDF del lado cliente/servidor de código abierto en JavaScript puro. En versiones hasta la 0.2.5 incluida, pdfmake contiene una evaluación insegura de la entrada controlada por el usuario. Por lo tanto, los usuarios de pdfmake están sujetos a la ejecución de código arbitrario en el contexto del proceso que ejecuta el código pdfmake. No se conocen soluciones para este problema. Se recomienda a los usuarios que restrinjan el acceso a las entradas de usuarios confiables.

Information

Published : 2022-12-06 19:15

Updated : 2026-06-17 05:11


NVD link : CVE-2022-46161

Mitre link : CVE-2022-46161

CVE.ORG link : CVE-2022-46161


JSON object : View

Products Affected

pdfmake

  • pdfmake
CWE
CWE-94

Improper Control of Generation of Code ('Code Injection')

NVD-CWE-Other