CVE-2026-85280
Published:July 19, 2026
Updated:September 08, 2026
Uncontrolled resource consumption via YAML anchor and alias expansion in "yamlutils.YAMLToJSON" in github.com/go-openapi/swag/yamlutils. YAMLToJSON walks the low-level yaml.Node tree itself to preserve key order and resolves anchor and alias references in the AliasNode case by re-walking and re-expanding the aliased subtree on every reference, with no bound. go.yaml.in/yaml/v3 guards against this, but its guard only runs when decoding into Go values; decoding into a *yaml.Node short-circuits that walk, so the guard never engages. A sub-kilobyte document with a chain of anchors each referencing the previous one therefore expands exponentially and exhausts memory. Fixed in v0.27.1, which reproduces the library excessive-aliasing guard and adds alias cycle detection. The same unbounded expansion is present in the pre-split root module github.com/go-openapi/swag from v0.22.0, where the code lived in yaml.go until v0.24.0.
Affected Packages
https://github.com/go-openapi/swag.git (GITHUB):
Affected version(s) >=yamlutils/v0.24.0 <yamlutils/v0.27.1Fix Suggestion:
Update to version yamlutils/v0.27.1github.com/go-openapi/swag/yamlutils (GO):
Affected version(s) >=v0.24.0 <v0.27.1Fix Suggestion:
Update to version v0.27.1Related Resources (3)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Improper Restriction of Recursive Entity References in DTDs ('XML Entity Expansion')