CVE-2026-54753 Nx: `nx graph` dev server permissive CORS policy
Permissive CORS policy in Nx graph dev server allows cross-origin data theft and potential command injection via help endpoints.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-54753?
CVE-2026-54753 is a medium-severity vulnerability in nrwl nx, published on 26 Jun 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Nx is a monorepo solution for TypeScript and polyglot codebases. From 17.0.4 until 22.7.2 and 23.0.0-beta.2, the local HTTP server started by nx graph sent Access-Control-Allow-Origin: * on every response, letting any website a developer visited read the server's responses cross-origin — including the full project graph and the output of the /help endpoint, which runs a target's configured help command. The practical impact is typically cross-origin information disclosure, but can be arbitrary command injection in rare cases. This vulnerability is fixed in 22.7.2 and 23.0.0-beta.2.
Which versions are affected by CVE-2026-54753?
4 open source packages ship an affected version, including nx.
| Package | Affected | Fixed in |
|---|---|---|
nx npm | From 17.0.4 | 22.7.2 |
nx npm | From 17.0.4 | 22.7.2 |
nx npm | From 23.0.0-beta.0 | 23.0.0-beta.2 |
nx npm | From 23.0.0-beta.0 | 23.0.0-beta.2 |
How do I fix CVE-2026-54753?
Upgrade nx to a fixed version for your release line: 22.7.2 or 23.0.0-beta.2.
Is CVE-2026-54753 being exploited?
There is no known exploitation of CVE-2026-54753 in the wild and no public exploit code.
Sources
Also known as GHSA-g2r8-wvmj-jf5w.