{"vuln_id":"CVE-2026-63184","aliases":["GHSA-x6w4-f264-3vvr"],"description":"Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion","published_at":"2026-11-20T14:35:29Z","modified_at":"2026-11-20T14:35:31Z","first_seen_at":"2026-11-21T19:15:19.296899Z","severity":"high","severity_source":"ghsa","cvss_score":7.1,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N","cwe":["CWE-829","CWE-918"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00411,"epss_percentile":0.36162,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-63184"},"matched_alias":null,"items":[{"id":2314,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-x6w4-f264-3vvr / CVE-2026-63184: Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion","summary":"Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion\n\n### Summary\n\nRefitter (the `refitter` dotnet tool, built on NJsonSchema for `$ref` resolution) fetches remote\n`http(s)` URLs and reads local files (including absolute paths and `../` traversal outside the input\ndirectory), inlining the referenced schema into the generated Refit interface/contracts. Running\n`refitter\n--output Out.cs` on a spec whose `$ref` points at an attacker/internal URL or an\narbitrary local file yields SSRF, remote file inclusion, and local file inclusion. Verified on\nRefitter 2.0.0.\n\n### Details\n\n- `$ref: http://attacker-or-internal/evil.json#/...` -> build host fetches (SSRF) and inlines the\nremote schema (RFI); confirmed property `REMOTE_REFIT_PROP`.\n- `$ref: /abs/path.json#/...` or `../../secret.json#/...` -> out-of-tree local file read + inlined\n(LFI); confirmed property `REFIT_LFI_MARKER`. Both absolute and relative traversal work.\n\nNo RCE: Refitter emits Refit interfaces with no baseUrl string literal (Refit sets the base address at\nruntime), enum values use C# verbatim-string doubling, and string defaults are escaped. The chain\nstops at SSRF + RFI + LFI.\n\nThe `$ref` resolution is performed by Refitter's NJsonSchema dependency, which Refitter ships and\ninvokes with these unsafe defaults.\n\n### PoC\n\n`reproduce.sh` (+ `make_spec.py`, `listener.py`) attached: installs the .NET SDK + Refitter if needed,\nconfirms LFI (out-of-tree read), SSRF (listener hit during generation), and RFI (remote schema\ninlined). Verified on 2.0.0.\n\n### Impact\n\nBuild-time SSRF (CWE-918) from the developer or CI host, disclosure of arbitrary local files\n(CWE-22), and inclusion of untrusted remote content (CWE-829), from running Refitter on an\nattacker-controlled or attacker-influenced OpenAPI description. No code execution. Estimated\nMedium-High, e.g. `[reproduce.sh](https://github.com/user-attachments/files/29395269/reproduce.sh)` (the CNA sets the final score).\n\n### Suggested fix\n\nDon't resolve remote `$ref`s by default (opt-in + host allowlist); confine local `$ref` resolution to\nthe input directory tree (reject absolute paths and `../` escapes). Apply at all nesting levels.\nCoordinate with NJsonSchema, where the resolver lives.\n[maintainer-report.txt](https://github.com/user-attachments/files/29395271/maintainer-report.txt)\n[advisory.md](https://github.com/user-attachments/files/29395272/advisory.md)\n[reproduce.sh](https://github.com/user-attachments/files/29395283/reproduce.sh)\n[maintainer-report.txt](https://github.com/user-attachments/files/29395284/maintainer-report.txt)\n[advisory.md](https://github.com/user-attachments/files/29395285/advisory.md)\n[listener.py](https://github.com/user-attachments/files/29395286/listener.py)\n[make_spec.py](https://github.com/user-attachments/files/29395288/make_spec.py)\n\nAffected packages: nuget:Refitter\nPatched: Refitter 2.1.1","url":"https://github.com/advisories/GHSA-x6w4-f264-3vvr","published_at":"2026-11-20T14:35:29Z","updated_at":"2026-11-20T14:35:31Z","fetched_at":"2026-11-21T19:15:18.416743Z","severity":"high","cvss_score":7.1,"epss":0.00411,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"Refitter","vuln_id":"CVE-2026-63184","vuln_ids":["CVE-2026-63184","GHSA-X6W4-F264-3VVR"],"tags":["ghsa","nuget","CWE-829","CWE-918"],"cluster_id":2050,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2314","html":"https://vulnwatch.ve1ve2.com/item/2314"}}]}