# Nx: OS command injection via git revisions and remote refs

Advisory record · `GHSA-w2vw-w76x-qr89`

- **Identifiers:** `GHSA-w2vw-w76x-qr89`
- **State:** Confirmed
- **Severity:** CVSS 4.0, no score published
- **Critical:** No
- **Weakness (CWE):** [CWE-78](https://cwe.mitre.org/data/definitions/78.html) · [CWE-88](https://cwe.mitre.org/data/definitions/88.html)
- **Tags:** [Command injection](https://agentprime.io/advisories/tag/command-injection.md)
- **Published:** 5 Oct 2026
- **Updated:** 5 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 5 Oct 2026, 23:29 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `nx` (npm): affected `>=14.0.0, <22.7.8 || >=23.0.0, <23.1.1`; fixed in `22.7.8`, `23.1.1`

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

- Score not published, CVSS 4.0: `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** No score.

## Timeline

- 31 Oct 2026, 13:34 UTC: First seen by agentprime
- 31 Oct 2026, 13:34 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-w2vw-w76x-qr89)

## Sources

- [GitHub Advisory Database: GHSA-w2vw-w76x-qr89](https://github.com/advisories/GHSA-w2vw-w76x-qr89)
- [OSV: GHSA-w2vw-w76x-qr89](https://osv.dev/vulnerability/GHSA-w2vw-w76x-qr89)
- <https://github.com/nrwl/nx/security/advisories/GHSA-w2vw-w76x-qr89>
- <https://github.com/nrwl/nx/pull/36348>
- <https://github.com/nrwl/nx/pull/36379>
- <https://github.com/nrwl/nx/commit/11ab38573478172109bb5306cb30ca4af246caf0>
- <https://github.com/nrwl/nx/commit/4159295a037fdbd8e7f44a33a19d85ab3792415b>
- <https://github.com/nrwl/nx/commit/9ce184a04d2098a4797c8b0d6877ee079b751abf>
- <https://github.com/nrwl/nx/commit/c12850ce7b364db08e325c13541641d754db7123>
- <https://github.com/nrwl/nx/commit/cd9b3c068e17adc9c1722b35b9ca962b98542c20>
- <https://github.com/nrwl/nx/commit/cf996496bbad727362d48292b50fafc8c3665847>
- <https://github.com/nrwl/nx>
- <https://github.com/nrwl/nx/releases/tag/22.7.8>
- <https://github.com/nrwl/nx/releases/tag/23.1.1>

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-w2vw-w76x-qr89>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-w2vw-w76x-qr89/>. Everything for agents: <https://agentprime.io/llms.txt>.
