Nx: `nx graph` dev server permissive CORS policy (nrwl nx)
At a glance
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.
Weaknesses (CWE)
- CWE-749 — Exposed Dangerous Method or Function
- CWE-942 — Permissive Cross-domain Security Policy with Untrusted Domains
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N | NVD · security-advisories@github.com (Secondary) |
Advisories
- GHSA-g2r8-wvmj-jf5w — `nx graph` dev server permissive CORS policy
European references
- ENISA EUVD · EUVD-2026-39831
- GCVE · GCVE-0-2026-54753
Affected products
| Product | Affected versions |
|---|---|
| nrwl · nx | affected : >= 17.0.4, < 22.7.2 affected : >= 23.0.0-beta.0, < 23.0.0-beta.2 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |