CVE-2026-89315
CVE-2026-89315 · JwtClaims.MarshalJSON panics via reflect.StructOf when any untyped claim key is not a valid Go identifier suffix
This page contains facts from public vulnerability sources. Check the original advisory before updating.
`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.
CVSS 6.9 · Medium · EPSS 0.3% · Fix available
- Published
- Updated
Affected products and versions
eclipse keypont - gose
- Versions
- ≥ 0.7.3, ≤ 0.13.0-rc1: Affected (semver)
No fix published
eclipse keypont - gose
- Versions
- ≥ 0, < 1.0.0-rc4: Affected (semver)
Update to 1.0.0-rc4