oasdiff external reference policy bypass in capture reader
- Exploited
- No known exploitation
- Fix
- Fixed in 1.34.1
- Who is exposed
- Specific setups only
Summary
oasdiff 1.24.0 before 1.34.1 fails to enforce --allow-external-refs=false when --open is used, because the recordingReader() capture reader in load/capture.go never applies the external-reference policy. Attackers supplying an untrusted OpenAPI spec can use external $ref values to read local files or trigger HTTP requests, with contents uploaded in the review bundle.
Who should check
Teams running the oasdiff CLI (Go module github.com/oasdiff/oasdiff) with --open on OpenAPI specs they do not control, such as CI jobs on untrusted pull requests.
“This affects the oasdiff CLI only when --open is passed.”
What to do
Check whether your setup matches what the bug needs.
The oasdiff CLI is run with --open. Affected versions are v1.24.0 through v1.34.0.Upgrade to a fixed version: 1.34.1.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-134818 (oasdiff 1.24.0 before 1.34.1 External Reference Policy Bypass via --open), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-134818 (entry last updated 2026-11-22):
Affected:
- Go package github.com/oasdiff/oasdiff: from 1.24.0, fixed in 1.34.1
Fixed versions: 1.34.1.
Conditions (all must be true for the bug to be hit):
- The oasdiff CLI is run with --open. (source: https://github.com/oasdiff/oasdiff/security/advisories/GHSA-6h5x-f3qr-cp23)
- Affected versions are v1.24.0 through v1.34.0. (source: https://github.com/oasdiff/oasdiff/security/advisories/GHSA-6h5x-f3qr-cp23)
Setup: the bug needs a feature or setting that is off by default or uncommon. Check whether each asset has it on.
Attacker needs: network access, no login, a user action.
CISA KEV: CVE-2026-134818 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-134818 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Packages (Go): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/oasdiff/oasdiff/security/advisories/GHSA-6h5x-f3qr-cp23
- https://github.com/oasdiff/oasdiff/commit/b762ae6335f6b22204b0f6c633604660464415a2
- https://github.com/oasdiff/oasdiff/commit/5331dec281a3dd687d1e9f093961098efd66b2f2
- https://github.com/oasdiff/oasdiff/releases/tag/v1.34.1
- https://github.com/oasdiff/oasdiff/blob/v1.34.0/load/capture.go#L46-L62
- https://www.vulncheck.com/advisories/oasdiff-1.24.0-before-1.34.1-external-reference-policy-bypass-via-open
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-134818
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-134818"}.Affected versions
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure12/25Specific setups only, reachable over the network without a login
- Reach10/20Affects Go packages
- Severity7.1/10CVSS 7.1
- No patch0/5No signal
What would change the score
- Would score about 79 if added to CISA KEV
- Would score about 74 if CISA's SSVC rates exploitation active
Timeline
- CVE published
- First seen by cve.now
Evidence 8
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · oasdiff/oasdiff · Advisory GHSA-6h5x-f3qr-cp23 |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-134818 |
| Record | NVD · CVE-2026-134818 |
| Other links 5 | |
| Patch | GitHub · oasdiff/oasdiff · Commit b762ae63 |
| Patch | GitHub · oasdiff/oasdiff · Commit 5331dec2 |
| Repository | GitHub · oasdiff/oasdiff · Release v1.34.1 |
| Repository | GitHub · oasdiff/oasdiff · load/capture.go · L46-L62 |
| Link | vulncheck.com · advisories/oasdiff-1.24.0-before-1.34.1-external-reference-policy-bypass-via-open |
Questions about CVE-2026-134818
Is CVE-2026-134818 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
A spec containing an external $ref can read any local file or make an arbitrary HTTP request, and the bytes read are included in the review bundle uploaded by --open. The attacker-supplied spec is the source of the bypass.
Source: github.com
Which versions are affected by CVE-2026-134818?
github.com/oasdiff/oasdiff (Go): from 1.24.0 before 1.34.1.
Source: cve.now feed data
Am I affected, and how do I check?
Affected versions are v1.24.0 through v1.34.0, and it only applies when the oasdiff CLI is run with --open. To check, run oasdiff with --open in your setup and compare the reported version against that range.
Source: github.com
How do I fix CVE-2026-134818?
The facts give no vendor patch or workaround beyond the fixed version range, which ends at 1.34.1. Upgrade to 1.34.1 or later.
Source: github.com
Related
No corrections so far. Something wrong on this page? Report an error.