WS-2026-0046
Published:July 21, 2026
Updated:September 01, 2026
Server-side request forgery via $ref HTTP resolution in github.com/go-openapi/spec. The default document loader fetches any URL found in a $ref field with no restriction, so expanding a specification from an untrusted source can reach internal cloud metadata endpoints, private network addresses and localhost services. This is inherent to the default configuration and is not fixed by a code change; the mitigation is to inject a confined loader via ExpandOptions.PathLoaderWithOptions (loading.WithHTTPClient) or to use the restricted loaders in github.com/go-openapi/loads.
Affected Packages
https://github.com/go-openapi/validate.git (GITHUB):
Affected version(s) >=v0.17.0 <v0.26.1Fix Suggestion:
Update to version v0.26.1https://github.com/go-openapi/spec.git (GITHUB):
Affected version(s) >=v0.17.0 <v0.22.9Fix Suggestion:
Update to version v0.22.9github.com/go-openapi/validate (GO):
Affected version(s) >=fix-schema-options <v0.26.1Fix Suggestion:
Update to version v0.26.1github.com/go-openapi/spec (GO):
Affected version(s) >=d1008324672f1909000e2bdad2a1296007ef3b7d <v0.22.9Fix Suggestion:
Update to version v0.22.9Related Resources (2)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.2
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
LOW
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Server-Side Request Forgery (SSRF)