Loading advisory.
Loading advisory.
Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion
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.
Published 2026-10-30 21:49 UTC · Modified 2026-11-20 14:45 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| Refitter | NuGet | < 2.1.1 versions 0.1.2-alpha, 0.1.3-alpha, 0.1.4-alpha, 0.1.5-alpha, 0.2.0-alpha, 0.2.1-alpha, 0.2.2-alpha, 0.2.3-alpha, 0.2.4-alpha, 0.3.0, 0.3.1, 0.3.16, 0.3.17, 0.3.2, 0.3.3, 0.3.4, 0.4.0, 0.4.1, 0.4.2, 0.5.0 and 91 more | 2.1.1 | dotnet add package Refitter --version 2.1.1 |
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.
$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.
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.
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).
Don't resolve remote $refs 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
advisory.md
reproduce.sh
maintainer-report.txt
advisory.md
listener.py
make_spec.py
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
EPSS went from 0.006 on 2026-11-24 to 0.007 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.006 | first score | v2026.06.15 |
| 2026-11-26 | 0.007 | 0.006 | v2026.06.15 |