CVE-2026-116586 (GHSA-vvm8-gf78-28g4) is a denial-of-service vulnerability in go-jose's vendored JSON parser. The root cause is uncontrolled recursion (CWE-674): the JSON scanner in json/scanner.go maintained a parse-state stack (parseState) that grew without any depth limit as it encountered nested '{' and '[' characters. Deeply nested JSON input would cause the parseState slice to grow until Go's stack limit was hit, crashing the application.
The fix (commit a31af25836222f4c45d366d6e8f9b1049dd9935a, backported from Go stdlib CL 199837 / golang/go#31789) introduced a maxNestingDepth constant (10000) and modified scanner.pushParseState to return an error state when the depth is exceeded. The call sites in stateBeginValue were updated to route through the new depth-checking pushParseState.
The vulnerable functions are those that existed before the fix and lacked the depth check:
- scanner.pushParseState - the function that appended to parseState without any limit (the core of the vulnerability).
- stateBeginValue - the state transition that invoked pushParseState for each nested '{'/'['.
- checkValid - the top-level validation routine that drives the scanner over untrusted input.
- Unmarshal - the public entry point that calls checkValid on untrusted JSON.
These are Go functions, so per the profiler rules, they appear without module/namespace prefixes (just the type/method name, e.g., scanner.pushParseState, stateBeginValue, checkValid, Unmarshal).