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

- **Severity:** Medium 5.9 (`CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N`)
- **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:** Yes
- **Published:** 26 Jun 2026
- **Updated:** 26 Jun 2026
- **Also known as:** GHSA-g2r8-wvmj-jf5w

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

Weakness: CWE-942 (Permissive Cross-domain Security Policy with Untrusted Domains), CWE-749 (Exposed Dangerous Method or Function)

## Which versions are affected by CVE-2026-54753?

4 open source packages ship an affected version, including nx.


| Package | Ecosystem | 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.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-54753 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2026-54753 in the wild and no public exploit code.

Affected packages and fixed versions:
- nx (npm): affected from 17.0.4; fixed in 22.7.2
- nx (npm): affected from 17.0.4; fixed in 22.7.2
- nx (npm): affected from 23.0.0-beta.0; fixed in 23.0.0-beta.2
- nx (npm): affected from 23.0.0-beta.0; fixed in 23.0.0-beta.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-54753/ (Markdown: https://insights.sbomify.com/CVE-2026-54753/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-54753
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-54753
- OSV: https://osv.dev/vulnerability/CVE-2026-54753

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-54753/
Summaries are generated and may contain mistakes; the official description above is the record.
