Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-63184: high-severity vulnerability (CVSS 7.1) in Refitter.
What happened
Original description from the source: ### Summary Refitter (the `refitter` dotnet tool, built on NJsonSchema for `$ref` resolution) fetches remote `http(s)` URLs and reads local files (including absolute paths and `../` traversal outside the input directory), inlining the referenced schema into the generated Refit interface/contracts. Running `refitter <spec> --output Out.cs` on a spec whose `$ref` points at an attacker/internal URL or an arbitrary local file yields SSRF, remote file inclusion, and local file inclusion. Verified on Refitter 2.0.0. ### Details - `$ref: http://attacker-or-internal/evil.json#/...` -> build host fetches (SSRF) and inlines the remote schema (RFI); confirmed property `REMOTE_REFIT_PROP`. - `$ref: /abs/path.json#/...` or `../../secret.json#/...` -> out-of-tree local file read + inlined (LFI); confirmed property `REFIT_LFI_MARKER`. Both absolute and relative traversal work. No RCE: Refitter emits Refit interfaces with no baseUrl string literal (Refit sets the base address at runtime), enum values use C# verbatim-string doubling, and string defaults are escaped. The chain stops at SSRF + RFI + LFI. The `$ref` resolution is performed by Refitter's NJsonSchema dependency, which Refitter ships and invokes with these unsafe defaults. ### PoC `reproduce.sh` (+ `make_spec.py`, `listener.py`) attached: installs the .NET SDK + Refitter if needed, confirms LFI (out-of-tree read), SSRF (listener hit during generation), and RFI (remote schema inlined). Verified on 2.0.0. ### Impact Build-time SSRF (CWE-918) from the developer or CI host, disclosure of arbitrary local files (CWE-22), and inclusion of untrusted remote content (CWE-829), from running Refitter on an attacker-controlled or attacker-…
Why it matters
High severity, CVSS 7.1.
Affected products and versions
Refitter < 2.1.1 (fixed in 2.1.1)
| Product | Versions | Fixed in |
|---|---|---|
| Refitter | < 2.1.1 | 2.1.1 |
Action recommended by the source
Upgrade to a fixed version: 2.1.1.
Fixed in: 2.1.1
Sources and references
- https://github.com/advisories/GHSA-x6w4-f264-3vvr — GHSA
- https://github.com/christianhelle/refitter/security/advisories/GHSA-x6w4-f264-3vvr — GHSA
- https://nvd.nist.gov/vuln/detail/CVE-2026-63184 — GHSA
- https://github.com/christianhelle/refitter/pull/1173 — GHSA
- https://github.com/christianhelle/refitter/commit/6ad20a3803561225100b0a4bb6b12f947d23db7b — GHSA
- https://github.com/christianhelle/refitter/releases/tag/2.1.1 — GHSA
- https://github.com/user-attachments/files/29395269/reproduce.sh — GHSA
- https://github.com/user-attachments/files/29395271/maintainer-report.txt — GHSA
- https://github.com/user-attachments/files/29395272/advisory.md — GHSA
- https://github.com/user-attachments/files/29395283/reproduce.sh — GHSA
- https://github.com/user-attachments/files/29395284/maintainer-report.txt — GHSA
- https://github.com/user-attachments/files/29395285/advisory.md — GHSA
- https://github.com/user-attachments/files/29395286/listener.py — GHSA
- https://github.com/user-attachments/files/29395288/make_spec.py — GHSA
Weaknesses (CWE): CWE-829, CWE-918
Relevant change history
Published
Preliminary advisory published.