# CVE-2026-89315: JwtClaims.MarshalJSON panics via reflect.StructOf when any untyped claim key is not a valid Go identifier suffix

- Severity: Medium 6.9 (CVSS:4.0, scored by eclipse) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2026-10-23T08:46:30.146Z
- Modified: 2026-11-02T13:17:39.570Z
- Weaknesses: CWE-248
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- github.com/ThalesGroup/gose: from 0.7.3 up to 0.13.0-rc1
- github.com/eclipse-keypont/gose: before 1.0.0-rc4

## References

- <https://github.com/eclipse-keypont/gose/security/advisories/GHSA-hwm6-rwv6-xgq8>

## Sources

- CVE List: [CVE-2026-89315](https://www.cve.org/CVERecord?id=CVE-2026-89315), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2026-89315](https://nvd.nist.gov/vuln/detail/CVE-2026-89315), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-89315 · Whole record: https://cve.day/CVE-2026-89315.json · Rebuilt by cve.day 2026-11-25T22:59:46.868Z
