Description
The @diez/generation npm package is a client for Diez. The locateFont method of @diez/generation has a command injection vulnerability. Clients of the @diez/generation library are unlikely to be aware of this, so they might unwittingly write code that contains a vulnerability. This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input. All versions of this package are vulnerable as of the writing of this CVE.
References (3)
Core 3
Core References
Exploit, Third Party Advisory x_refsource_confirm
https://securitylab.github.com/advisories/GHSL-2021-061-diez-generation-cmd-injection/
Third Party Advisory x_refsource_misc
https://github.com/diez/diez
Various Sources x_refsource_misc
https://www.npmjs.com/package/%40diez/generation
Scores
CVSS v3
3.9
EPSS
0.0192
EPSS Percentile
77.4%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
Details
CWE
CWE-77
CWE-78
Status
published
Products (2)
diez/generation
0npm
haikuforteams/diez
Published
Aug 17, 2021
Tracked Since
Feb 18, 2026