Skip to content
Medium 6.9

JwtClaims.MarshalJSON panics via reflect.StructOf when any untyped claim key is not a valid Go identifier suffix

CVE-2026-89315 First seen on SecPulse

Affected packages

EcosystemPackageAffectedFixed
Eclipse Foundation Eclipse KeyPont - GOSE
< 1.0.0-rc4
1.0.0-rc4
Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details