Skip to main content

oasdiff CVE-2026-53508

| EUVDEUVD-2026-68727 MEDIUM
External Control of File Name or Path (CWE-73)
2026-07-07 https://github.com/oasdiff/oasdiff GHSA-2jcc-mxv7-p3f9
6.0
CVSS 4.0 · Vendor: https://github.com/oasdiff/oasdiff
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft OpenAPI spec with malicious $refs
  2. Delivery
    Submit spec to target git repository
  3. Exploit
    CI/CD invokes oasdiff via git-revision input form
  4. Execution
    External ref policy bypass silently resolves $refs
  5. Persist
    SSRF reaches internal host or local file is read
  6. Impact
    Attacker exfiltrates credentials or sensitive data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

Exploitation requires three concurrent conditions on the victim side: (1) the caller must explicitly set --allow-external-refs=false at the CLI or IsExternalRefsAllowed = false in the Go library - callers using the permissive default (true) are explicitly out of scope for this advisory; (2) the caller must load at least one spec using the git-revision input form, e.g., main:openapi.yaml or HEAD:openapi.yaml; and (3) the spec content being processed must include at least one external $ref URI - an HTTP/HTTPS URL for SSRF, or a bare filesystem path or file:// URI for local file reads. The file-path loading form and URL loading form correctly enforced the policy and are not exploitable. Installations on oasdiff < v1.13.2 (before git-revision $ref-chain resolution was introduced) are not affected. Further limits on exploitability include the process's actual network egress rules and filesystem permissions, which determine whether SSRF reaches useful internal endpoints and whether file reads access sensitive paths.

Impact

No CVSS vector or EPSS score is provided in the available data, limiting quantitative risk comparison; all metric assessments below are independently derived from the vulnerability description. The vulnerability is narrow in scope but high in impact for the targeted population: it specifically affects callers who explicitly opted into the safer --allow-external-refs=false mode precisely because they intended to process untrusted input - the population most exposed to SSRF and file-disclosure consequences. From an attacker's perspective, exploitation is straightforward once the preconditions are met: craft a spec with malicious $ref entries and cause the victim's oasdiff invocation to process it via the git-revision input form. The key limiting factors are deployment conditions on the victim side (non-default flag plus git-revision form), not attacker-side complexity. In cloud-hosted CI/CD environments, SSRF may expose instance metadata services, IAM credentials, or internal APIs, substantially elevating real-world impact. Local file reads could expose secrets, private keys, or environment files accessible to the CI runner process. The absence of a KEV listing and any public exploit code suggests no widespread exploitation at this time, but the scenario (malicious PR triggering CI processing of a crafted spec) is a realistic and well-understood attack pattern against CI/CD pipelines. This is a real priority for teams using oasdiff to process untrusted specs, and a lower priority for teams operating in fully trusted environments.

Exploit ScenarioDerived

An attacker submits a pull request to a repository where CI/CD runs oasdiff diff main:openapi.yaml HEAD:openapi.yaml --allow-external-refs=false, embedding $ref: 'http://169.254.169.254/latest/meta-data/iam/security-credentials/' inside the submitted spec. Despite the flag, oasdiff resolves the reference on the git-revision load path, triggering an outbound HTTP request from the CI runner to the AWS instance metadata service. The attacker, by observing runner logs or via an attacker-controlled external endpoint substituted for the internal target in a simpler variant, retrieves temporary IAM credentials or other sensitive metadata. No public proof-of-concept code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 08, 2026

Security-control bypass in oasdiff v1.13.2-v1.18.0 silently negates the --allow-external-refs=false safety flag when loading OpenAPI specifications via the git-revision input form (rev:path, e.g. main:openapi.yaml), leaving callers exposed to SSRF and local file disclosure despite explicitly intending to sandbox untrusted spec processing. Malicious $ref URIs embedded in a spec - pointing to internal HTTP endpoints or local filesystem paths - are resolved on the git-revision load path even when the policy is set, while the file-path and URL load paths correctly enforce the restriction. No public exploit code has been identified at time of analysis and the vulnerability is not in CISA KEV; vendor-released patch v1.18.1 is available.

RemediationAI

Upgrade to oasdiff v1.18.1, which enforces the --allow-external-refs=false policy on the git-revision loading path and returns a dedicated exit code (123) when an external $ref is refused; the fix is implemented in PRs #974 and #975 (https://github.com/oasdiff/oasdiff/pull/974, https://github.com/oasdiff/oasdiff/pull/975). If upgrading immediately is not possible, the primary workaround is to avoid the git-revision input form (rev:path syntax, e.g. main:openapi.yaml) when processing untrusted OpenAPI specs with external refs disabled; instead, export each revision to a temporary file and pass the file path to oasdiff - the file-path loading form correctly enforced the policy in all affected versions. This workaround adds a pipeline step (git show > tmpfile) and sacrifices the convenience of the native git-revision syntax. Callers operating entirely within a trusted content environment (no untrusted spec input) face materially lower risk but should still upgrade to eliminate the latent exposure. The GitHub Security Advisory at https://github.com/oasdiff/oasdiff/security/advisories/GHSA-2jcc-mxv7-p3f9 is the authoritative reference.

Affected VersionsENISA

oasdiff 1.13.2, < 1.18.1

Affected Packages

go github.com/oasdiff/oasdiff fix: 1.18.1
euvd oasdiff_1_13_2 fix: 1.18.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

oasdiff is a Go library and CLI tool (pkg:go/github.com_oasdiff_oasdiff) for diffing OpenAPI 3.x specification files, commonly deployed in CI/CD pipelines to detect breaking API changes. The root cause is CWE-73 (External Control of File Name or Path): user-controlled data - specifically, external $ref strings embedded in an OpenAPI spec - can direct the loader to resolve arbitrary file-system paths or network URLs. The git-revision loading path (load.NewSpecInfo with rev:path syntax), introduced in v1.13.2 via PR #832 to support $ref-chain resolution when diffing git revisions, omitted the IsExternalRefsAllowed check that the file-path and URL loading paths correctly applied. This created a silent gap: calling code that set openapi3.Loader.IsExternalRefsAllowed = false to block external $ref resolution received no error and no warning, while the loader continued resolving external references on the git-revision code path. SSRF payloads can target internal HTTP endpoints (including cloud metadata services such as AWS IMDSv1), and file-scheme or bare-path references can read files accessible to the oasdiff process.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/oasdiff/oasdiff) PRIMARY 6.0 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 8.6 HIGH

Network-reachable via untrusted spec content; no privileges required to craft payload; scope changes because SSRF can compromise systems beyond the oasdiff process; no integrity or availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (https://github.com/oasdiff/oasdiff).

CVSS VectorVendor: https://github.com/oasdiff/oasdiff

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Aug 31, 2026 - 19:22 NVD
6.0 (MEDIUM)

DescriptionCVE.org

Summary

From v1.13.2 through v1.18.0, oasdiff did not enforce --allow-external-refs=false (library: openapi3.Loader.IsExternalRefsAllowed = false) when loading a spec from a git revision (the rev:path form, e.g. main:openapi.yaml). External $refs were resolved on that load path even when external refs were explicitly disabled, so the mitigation silently did not apply there.

Impact

A caller who set --allow-external-refs=false *specifically to safely process untrusted specs* remained exposed - on the git-revision load path only - to:

  • SSRF via $ref: "http://<internal-host>/…", and
  • Local file reads via $ref: "/path" or file://.

Affected callers:

  • CLI: oasdiff diff main:openapi.yaml HEAD:openapi.yaml --allow-external-refs=false (and breaking / changelog / summary, and the git-diff-driver) run over untrusted spec content.
  • Go library consumers of github.com/oasdiff/oasdiff/load that set IsExternalRefsAllowed = false and load from a git-revision source via load.NewSpecInfo.

The file and URL load paths correctly enforced the setting; only the git-revision path was affected. Callers that left external refs at the default (true) are not in scope for *this* advisory.

Patches

v1.18.1 enforces the external-refs policy on the git-revision path (so --allow-external-refs=false now blocks external $refs there) and returns a dedicated exit code (123) when an external $ref is refused.

Workarounds

  • Upgrade to v1.18.1, or
  • Avoid the git-revision input form when processing untrusted specs with external refs disabled.

Notes

  • Introduced in v1.13.2 (#832, which added $ref-chain resolution on the git-revision path); fixed in v1.18.1 (#974, #975).
  • The permissive default (allow-external-refs: true) and its zero-interaction exposure in CI via the GitHub Action is tracked separately in GHSA-fhj3-7267-7vv5 (oasdiff-action).

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Low
specialized Go CLI/library for OpenAPI spec diffing in CI pipelines
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Vendor StatusVendor

SUSE

Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy