CVE-2021-32830
HIGH 7.0CVSS 3.1Command injection in @diez/generation
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.
- Published
- 17 Aug 2021
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-77CWE-78
- Also known as
- GHSA-8c3f-x5f9-6h62
- Sources
- NVDJSONOSV GHSA-8c3f-x5f9-6h62JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.0 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.9 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.9 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | haikuforteams | diezcpe:2.3:a:haikuforteams:diez:-:*:*:*:*:node.js:*:* |
(no version) | |
| OSV | npm | @diez/generation | <= 10.6.0 |
References
- https://github.com/diez/diez · Third Party Advisory, PACKAGE
- https://securitylab.github.com/advisories/GHSL-2021-061-diez-generation-cmd-injection/ · Exploit, Third Party Advisory, ADVISORY
- https://www.npmjs.com/package/%40diez/generation
- https://nvd.nist.gov/vuln/detail/CVE-2021-32830 · ADVISORY
- https://www.npmjs.com/package/@diez/generation · WEB
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 17 Aug 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 2 Sep 2021)