Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPresent JWT with namespaced custom claim
-
DeliveryVerify returns JwtClaims with attacker-chosen keys
-
ExploitCaller invokes json.Marshal on claims
-
Executionreflect.StructOf panics on invalid field name
-
ImpactUnrecovered panic terminates goroutine (DoS)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
|
| Exploitation Conditions | Exploitation requires that application code call json.Marshal on a *jose.JwtClaims value (typically the one returned by JwtVerifierImpl.Verify) - the panic lives only on the marshalling path, so callers that read claim fields directly are unaffected. The trigger is a token containing an untyped custom claim whose key either contains any character outside [A-Za-z0-9_] / Unicode letters-digits (e.g. '-', '.', ':', '/', space, '#', '@', as in the OIDC/Auth0-mandated 'https://example.com/roles') or collides after the 'A' prefix with an embedded field ('utomaticJwtClaims' → AutomaticJwtClaims, 'ettableJwtClaims' → SettableJwtClaims); the existing reserved-claim guard does not cover these. Limiting factors: impact is bounded to availability (VA:L) and only manifests as an outage if the caller does not recover the panic; applications that never serialise verified claims are not exposed. Notably no attacker is required - a legitimate standards-compliant IdP token triggers it. |
| Impact | The input provides a CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N, score 6.9 Medium) whose only non-zero impact is VA:L - a recoverable availability (denial-of-service) hit with no confidentiality or integrity effect. No EPSS probability is supplied, there is no CISA KEV listing, and no standalone public exploit is packaged; however the GHSA advisory documents an executed reproducer covering both panic classes plus a regression test, so a working trigger demonstrably exists even though it is not published as a weaponised exploit. The vuln.today decision label is 'this_month', consistent with a real-but-not-emergency priority. The signals are coherent rather than conflicting: network-reachable (AV:N), low complexity (AC:L), unauthenticated (PR:N), but low technical impact (availability only, and only when the caller fails to recover the panic). The unusual elevating factor is that the crash fires on entirely legitimate tokens - URL-namespaced custom claims such as 'https://example.com/roles' are exactly what OIDC and Auth0 mandate - so the most probable first encounter is a self-inflicted production outage from a standards-compliant IdP, not a deliberate attack. Net: a genuine but moderate operational-reliability issue rather than a high-urgency breach risk; teams that marshal verified JwtClaims should patch this month, while those that never serialise the claims struct are not exposed. |
| Exploit ScenarioDerived | A service uses eclipse-keypont/gose to verify JWTs and then calls json.Marshal on the *jose.JwtClaims returned by Verify - for logging, caching, forwarding or re-signing. When a token carries a custom claim whose name contains a character outside a Go identifier (e.g. the standard URL-namespaced 'https://example.com/roles') or the collision name 'utomaticJwtClaims', reflect.StructOf panics, the panic escapes encoding/json's recover, and the handling goroutine terminates. A researcher-executed reproducer in the advisory confirms both the invalid-identifier and duplicate-field panics; an attacker can trigger it with their own validly-issued token, but a trusted IdP issuing standards-compliant claims triggers it with no attacker at all. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 23, 2026
Denial of service in Eclipse KeyPont's gose JOSE/JWT Go library: JwtClaims.MarshalJSON builds a runtime struct with reflect.StructOf, naming each field "A" + claimName, which panics whenever an untyped claim key is not a valid Go identifier (for example the URL-namespaced https://example.com/roles claims that OIDC and Auth0 mandate) or collides after prefixing (utomaticJwtClaims, ettableJwtClaims). All releases of github.com/ThalesGroup/gose from v0.7.3 through v0.13.0-rc1 are affected and that module path is deprecated and unpatched, while github.com/eclipse-keypont/gose is affected below v1.0.0-rc4 and fixed in v1.0.0-rc4. Impact is availability only (assessed CVSS:3.1 AV:N/AC:L/PR:N/UI:N/C:N/I:N/A:L, vendor CVSS 4.0 6.9 Medium with VA:L), the panic is reachable from legitimate standards-compliant IdP tokens without any attacker, and it only bites callers that call json.Marshal on the *jose.JwtClaims returned by JwtVerifierImpl.Verify without recovering; a reproducer is documented in the upstream advisory, and no public exploit code or active exploitation is confirmed (no CISA KEV listing).
RemediationAI
Upgrade to github.com/eclipse-keypont/gose v1.0.0-rc4 or later, which replaces the reflect-based struct synthesis with a map[string]json.RawMessage merge and eliminates the entire panic class rather than enumerating specific claim names; note that a proposed name-validation guard would have turned standards-compliant URL-namespaced OIDC claims into hard errors, so the map-based fix is the intended path. Consumers still on github.com/ThalesGroup/gose must change the module path in go.mod, not merely bump the version, because that lineage ends at the still-vulnerable v0.13.0-rc1 and go get -u will not remediate: replace github.com/ThalesGroup/gose v0.13.0-rc1 with github.com/eclipse-keypont/gose v1.0.0-rc4. Where upgrading is not immediately possible, avoid calling json.Marshal on any *jose.JwtClaims obtained from Verify - reading claim fields directly is safe, and callers that must serialise claims should first copy UntypedClaims into their own map[string]json.RawMessage and marshal that; the trade-off is that this duplicates serialisation logic and must be applied at every call site (logging, caching, forwarding, re-signing). Callers that cannot avoid marshalling should recover panics around the serialisation boundary, accepting that the affected request or goroutine is still aborted (this is the recovered case reflected in the A:L score). Advisory: https://github.com/eclipse-keypont/gose/security/advisories/GHSA-hwm6-rwv6-xgq8.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
gose implements JWS/JWT handling in Go. Its JwtClaims.UnmarshalJSON sends the seven registered JWT claim names to typed struct fields and copies every remaining top-level JSON key verbatim into UntypedClaims map[string]json.RawMessage, so claim names supplied inside the middle segment of a compact token become attacker-influenced map keys. MarshalJSON then re-materialised those keys as struct fields via reflect.StructOf, synthesising Name = "A" + k with a json:"k" tag alongside the embedded *AutomaticJwtClaims and *SettableJwtClaims pointers. The root cause is CWE-248 (Uncaught Exception): reflect.StructOf panics on a field name that is not a valid Go identifier - any character outside [A-Za-z0-9_] plus Unicode letters and digits, which covers -, ., :, /, space, # and @ - and on duplicate field names, which the keys utomaticJwtClaims and ettableJwtClaims produce by colliding with the embedded AutomaticJwtClaims and SettableJwtClaims fields; the library's reserved-claim guard only rejects the seven registered names and does not cover either case. encoding/json's internal recover only swallows its own jsonError type, so the reflect panic propagates to the caller and terminates the goroutine. The upstream fix (be2277b, merged as 692c25c) removes the runtime struct construction entirely and merges typed claims with untyped claims in a map[string]json.RawMessage, which has no naming constraints and preserves URL-namespaced claims; the only observable side effect is that encoding/json sorts map keys, which is not semantically meaningful and does not affect signature verification because verification operates on received bytes rather than re-marshalled output.
Know when Go gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Token keys arrive over the network with no authentication or user interaction (AV:N/AC:L/PR:N/UI:N); the recoverable crash yields availability-only impact (A:L), with C:N/I:N.
Primary rating from Vendor (eclipse).
CVSS VectorVendor: eclipse
Lifecycle Timeline
1DescriptionCVE.org
JwtClaims.MarshalJSON built a Go struct at runtime with reflect.StructOf, synthesising a field named "A" + claimName for each untyped claim. reflect.StructOf panics when a field name is not a valid Go identifier, or when it duplicates another field. Both conditions are reachable from ordinary JWT claim names.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
The net/http package in Go through 1.6 does not attempt to address RFC 3875 section 4.1.18 namespace conflicts and there
Critical certificate validation bypass in Go crypto/tls during session resumption. If ClientCAs or RootCAs fields are mu
net/url in Go before 1.11.13 and 1.12.x before 1.12.8 mishandles malformed hosts in URLs, leading to an authorization by
Casdoor through 4.4.0 exposes its instance-wide built-in JWT signing private key unmasked through the /api/get-certs and
Host header injection in Nezha 2.2.3's OAuth2 redirect endpoint (/api/v1/oauth2/{provider}) allows an unauthenticated re
Session cross-wiring in SUSE NeuVector before 5.6.1 allows an unauthenticated remote attacker to obtain another user's a
Unauthenticated path traversal in Uber Kraken through 0.1.29 allows remote attackers to read files outside the configure
The "go get" implementation in Go 1.9.4, when the -insecure command-line option is used, does not validate the import pa
Denial of service in Temporal Server allows an authenticated caller holding at least namespace read permission to crash
Account takeover in Klever-Go's KleverUpdateAccountPermission built-in (all versions prior to 1.7.20) allows an attacker
Maliciously crafted on-chain account names processed by Klever-Go prior to 1.7.20 are spliced into Elasticsearch _bulk r
EUVD-2026-108647
NVD
CVE.org
EPSS
GitHub
Exploit-DB