Description
oasdiff is a command-line and Go package that compares and detects breaking changes in OpenAPI specs. From version 1.13.2 through version 1.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. This issue has been patched in version 1.18.1.
Published: 2026-08-31
Score: 6 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability stems from oasdiff’s failure to honor the --allow-external-refs=false flag when a specification is loaded from a git revision. Consequently, external $ref URLs are resolved even when the option is explicitly disabled, exposing the host to outbound requests, arbitrary file reads, or injection of untrusted content into the parsed document.

Affected Systems

The issue affects oasdiff versions 1.13.2 through 1.18.0. Any user running these releases via the command line or as a Go library is susceptible until the software is updated beyond 1.18.0.

Risk and Exploitability

With a CVSS score of 6.0 the flaw is considered moderate and is listed as not in the CISA KEV catalog. Although EPSS data is unavailable, the attack requires an attacker to control the repository or the git revision reference supplied to oasdiff. By hosting a malicious git repository containing $ref entries that point to external services or local file paths, an attacker can induce the tool to perform SSRF or read sensitive files from the machine executing oasdiff.

Generated by OpenCVE AI on August 31, 2026 at 21:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to oasdiff version 1.18.1 or newer, which enforces the external‑reference restriction when loading from git revisions.
  • If an upgrade cannot be performed immediately, validate the contents of any Git repository used as a source for specifications before passing them to oasdiff to mitigate the risk of untrusted references.
  • Avoid using external $ref URLs in OpenAPI specifications that will be processed by oasdiff until the restriction is enforced, or remove them as a precautionary measure.

Generated by OpenCVE AI on August 31, 2026 at 21:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-2jcc-mxv7-p3f9 oasdiff does not enforce --allow-external-refs=false on the git-revision load path (SSRF / local file read)
History

Mon, 31 Aug 2026 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Oasdiff
Oasdiff oasdiff
Vendors & Products Oasdiff
Oasdiff oasdiff

Mon, 31 Aug 2026 19:00:00 +0000

Type Values Removed Values Added
Description oasdiff is a command-line and Go package that compares and detects breaking changes in OpenAPI specs. From version 1.13.2 through version 1.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. This issue has been patched in version 1.18.1.
Title oasdiff does not enforce --allow-external-refs=false on the git-revision load path (SSRF / local file read)
Weaknesses CWE-693
CWE-73
CWE-918
References
Metrics cvssV4_0

{'score': 6, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-31T18:58:08.849Z

Reserved: 2026-06-09T17:05:25.059Z

Link: CVE-2026-53508

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-31T19:16:50.030

Modified: 2026-08-31T19:16:50.030

Link: CVE-2026-53508

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-31T21:20:23Z

Weaknesses
  • CWE-693

    Protection Mechanism Failure

  • CWE-73

    External Control of File Name or Path

  • CWE-918

    Server-Side Request Forgery (SSRF)