What’s Vulnerable › Vulnerabilities
CVE-2026-93450: go-openapi/swag jsonutils before 0.27.1 Uncontrolled Recursion in Ordered JSON Marshal and Unmarshal
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-09-18 · updated 2026-09-22
- Weakness: CWE-674
Description
go-openapi/swag jsonutils before 0.27.1 contains a stack overflow vulnerability in ordered JSON parsing and serialization due to unbounded recursion with no depth limit. Remote unauthenticated attackers can submit deeply nested JSON documents to services accepting OpenAPI specifications, causing fatal stack overflow that terminates the process and all in-flight requests.
Affected products
- go-openapi swag: before 0.27.1 — fixed in 0.27.1
How to fix
Upgrade to a fixed version: go-openapi swag 0.27.1. Check the vendor advisory for mitigations.
References
- https://github.com/go-openapi/swag
- https://github.com/go-openapi/swag/blob/v0.27.0/jsonutils/adapters/stdlib/json/adapter.go#L68
- https://github.com/go-openapi/swag/blob/v0.27.0/jsonutils/adapters/stdlib/json/ordered_map.go#L214
- https://github.com/go-openapi/swag/commit/0c24346ced59a25811e8694a915e7131d25ccb0e
- https://github.com/go-openapi/swag/security/advisories/GHSA-xh24-9qpg-8w28
- https://www.vulncheck.com/advisories/go-openapi-swag-jsonutils-before-0.27.1-uncontrolled-recursion-in-ordered-json-marshal-and-unmarshal
- https://github.com/go-openapi/swag/security/advisories/GHSA-xh24-9qpg-8w28
Get alerted when CVE-2026-93450 or the next vulnerability affects your stack