home / blog
2026-11-23 · medium
CVE-2026-134818 in oasdiff allows local file access
oasdiff <1.34.1 fails to enforce --allow-external-refs=false, allowing local file reads.

The CVE-2026-134818 vulnerability concerns a failure in oasdiff to properly enforce the --allow-external-refs=false parameter when the --open option is used. The issue is in the recordingReader() function in the load/capture.go file, which never applies the external-reference policy. Attackers providing untrusted OpenAPI specs can use external $ref values to read local files or trigger HTTP requests, with contents uploaded in the review bundle.
The vulnerability is classified as medium with a CVSS score of 6.5 and was published on November 22, 2026. A public exploit has been identified on GitHub, confirming the possibility of reading local files with external references. No active exploits in use have been reported.
To protect against this vulnerability, it is necessary to update oasdiff to version 1.34.1 or later. Alternatively, avoid using the --open option with untrusted OpenAPI specs. Organizations should also review their API management policies to prevent exposure of sensitive files.
At a glance
- What
- CVE-2026-134818 affects oasdiff, which fails to properly enforce the --allow-external-refs=false parameter when the --open option is used. This allows attackers to specify untrusted OpenAPI specs with external $ref values to read local files or trigger HTTP requests.
- Severity
- CVSS 6.5 (medium)
- Affected versions
- oasdiff 1.24.0 before 1.34.1
- Fix
- Update to oasdiff 1.34.1 or later
- Status
- Published on 2026-11-22
- Action
- Apply the update to version 1.34.1 or later
Sources: NVD, CVE-2026-134818