CVE-2026-89315
6.9medium
JwtClaims.MarshalJSON panics via reflect.StructOf when any untyped claim key is not a valid Go identifier suffix
- Severity
- 6.9medium CVSS:4.0 by eclipse
- Exploit likelihood
- 0.33% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- eclipse
Description
`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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/ThalesGroup/gose | from 0.7.3 up to 0.13.0-rc1 | CVE List |
| github.com/eclipse-keypont/gose | before 1.0.0-rc4 | CVE List |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-89315 changed 2026-11-02 | CVE Terms of Use |
| NVD | CVE-2026-89315 changed 2026-11-02 | Public domain |