# CVE-2026-54753: Nx: \`nx graph\` dev server permissive CORS policy

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **CVSS:** 5.9 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.44% (percentile 73, 2026-11-26)
- **CWE:** CWE-749, CWE-942
- **Aliases:** GHSA-g2r8-wvmj-jf5w
- **Published:** 2026-06-26T18:13:34.371Z
- **Modified:** 2026-10-25T17:10:00.197Z

## Who should check

- Projects that depend on npm package nx (\>= 17.0.4, \< 22.7.2)
- Anyone running nrwl nx \>= 17.0.4, \< 22.7.2; \>= 23.0.0-beta.0, \< 23.0.0-beta.2

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

## Affected and fixed versions

- npm `nx`: affected \>= 17.0.4, \< 22.7.2; fixed 22.7.2, 23.0.0-beta.2 (osv)
- nrwl nx: \>= 17.0.4, \< 22.7.2; \>= 23.0.0-beta.0, \< 23.0.0-beta.2 (cvelist)

## Mitigation

- Upgrade nx to one of 22.7.2, 23.0.0-beta.2 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-54753. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-54753.md
Affected: nx >= 17.0.4, < 22.7.2
Fixed in: 22.7.2, 23.0.0-beta.2

Steps:
1. Search this machine and project for nx (npm), nrwl nx: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-54753 being exploited?

There is no confirmed exploitation: CVE-2026-54753 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.44% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-54753?

Medium: CVSS 5.9 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

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

nx \>= 17.0.4, \< 22.7.2.

### Is there a fix for CVE-2026-54753?

Yes. Fixed in 22.7.2, 23.0.0-beta.2. Upgrade nx to one of 22.7.2, 23.0.0-beta.2 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-54753?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/nrwl/nx/security/advisories/GHSA-g2r8-wvmj-jf5w>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-54753>
- patch: <https://github.com/nrwl/nx/pull/35494>
- patch: <https://github.com/nrwl/nx/commit/7620c1ffe598086ce5e66457c7e6e38799bb499d>
- patch: <https://github.com/nrwl/nx/commit/e59122c5569cf201561b9995ce4e34a304f4fb03>
- other: <https://github.com/nrwl/nx>
- other: <https://github.com/nrwl/nx/releases/tag/22.7.2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-54753>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-g2r8-wvmj-jf5w> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-54753> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-54753>
