# ZX Allows Environment Variable Injection for dotenv API

Advisory record · `GHSA-qwp8-x4ff-5h87`

- **Identifiers:** `GHSA-qwp8-x4ff-5h87` · `CVE-2025-24959`
- **State:** Confirmed
- **Severity:** CVSS 1.0 Low
- **Critical:** No
- **Weakness (CWE):** [CWE-74](https://cwe.mitre.org/data/definitions/74.html) · [CWE-94](https://cwe.mitre.org/data/definitions/94.html)
- **Tags:** [Other injection](https://agentprime.io/advisories/tag/injection.md) · [Code injection](https://agentprime.io/advisories/tag/code-injection.md)
- **Published:** 3 Feb 2025
- **Updated:** 4 Feb 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 3 Feb 2025, 22:34 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `zx` (npm): affected `>=8.3.1, <8.3.2`; fixed in `8.3.2`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 1.0 Low, CVSS 4.0: `CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0018, the 7th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 3 Feb 2025. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-qwp8-x4ff-5h87](https://github.com/advisories/GHSA-qwp8-x4ff-5h87)
- [OSV: GHSA-qwp8-x4ff-5h87](https://osv.dev/vulnerability/GHSA-qwp8-x4ff-5h87)
- <https://github.com/google/zx/security/advisories/GHSA-qwp8-x4ff-5h87>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-24959>
- <https://github.com/google/zx/pull/1094>
- <https://github.com/google/zx/commit/5ba714d14ecf0555a74d4db96622840ac19839c5>
- <https://github.com/google/zx>
- <https://github.com/webpod/envapi/blob/v0.2.1/src/main/ts/envapi.ts#L74-L77>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-qwp8-x4ff-5h87>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-qwp8-x4ff-5h87/>. Everything for agents: <https://agentprime.io/llms.txt>.
