# CVE-2026-63184: Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; 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:** 0.72% (percentile 50, 2026-11-28)
- **CWE:** CWE-829, CWE-918
- **Aliases:** GHSA-x6w4-f264-3vvr
- **Published:** 2026-11-20T14:35:29.000Z
- **Modified:** 2026-11-20T14:35:31.000Z

## Who should check

- Projects that depend on NuGet package Refitter (\< 2.1.1)

## Description

\#\#\# 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-influenced OpenAPI description. No code execution. Estimated
Medium-High, e.g. \`\[reproduce.sh\](https://github.com/user-attachments/files/29395269/reproduce.sh)\` (the CNA sets the final score).

\#\#\# Suggested fix

Don't resolve remote \`$ref\`s by default (opt-in + host allowlist); confine local \`$ref\` resolution to
the input directory tree (reject absolute paths and \`../\` escapes). Apply at all nesting levels.
Coordinate with NJsonSchema, where the resolver lives.
\[maintainer-report.txt\](https://github.com/user-attachments/files/29395271/maintainer-report.txt)
\[advisory.md\](https://github.com/user-attachments/files/29395272/advisory.md)
\[reproduce.sh\](https://github.com/user-attachments/files/29395283/reproduce.sh)
\[maintainer-report.txt\](https://github.com/user-attachments/files/29395284/maintainer-report.txt)
\[advisory.md\](https://github.com/user-attachments/files/29395285/advisory.md)
\[listener.py\](https://github.com/user-attachments/files/29395286/listener.py)
\[make\_spec.py\](https://github.com/user-attachments/files/29395288/make\_spec.py)

## Affected and fixed versions

- NuGet `Refitter`: affected \< 2.1.1; fixed 2.1.1 (ghsa)

## Technologies

NuGet packages

## Mitigation

- Upgrade Refitter to 2.1.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-63184.md
Affected: Refitter < 2.1.1
Fixed in: 2.1.1

Steps:
1. Search this machine and project for Refitter (NuGet): 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-63184 being exploited?

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

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

High: CVSS 7.1 (v3.1, scored by GitHub). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

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

Refitter \< 2.1.1.

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

Yes. Fixed in 2.1.1. Upgrade Refitter to 2.1.1 or later.

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

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/christianhelle/refitter/security/advisories/GHSA-x6w4-f264-3vvr>
- patch: <https://github.com/christianhelle/refitter/pull/1173>
- patch: <https://github.com/christianhelle/refitter/commit/6ad20a3803561225100b0a4bb6b12f947d23db7b>
- other: <https://nvd.nist.gov/vuln/detail/CVE-2026-63184>
- other: <https://github.com/christianhelle/refitter/releases/tag/2.1.1>
- other: <https://github.com/user-attachments/files/29395269/reproduce.sh>
- other: <https://github.com/user-attachments/files/29395271/maintainer-report.txt>
- other: <https://github.com/user-attachments/files/29395272/advisory.md>
- other: <https://github.com/user-attachments/files/29395283/reproduce.sh>
- other: <https://github.com/user-attachments/files/29395284/maintainer-report.txt>
- other: <https://github.com/user-attachments/files/29395285/advisory.md>
- other: <https://github.com/user-attachments/files/29395286/listener.py>
- other: <https://github.com/user-attachments/files/29395288/make_spec.py>
- other: <https://github.com/advisories/GHSA-x6w4-f264-3vvr>

## 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>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-x6w4-f264-3vvr> (license: <https://creativecommons.org/licenses/by/4.0/>)
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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