CVE-2026-89315
JSON

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 packageVersionsReported by
github.com/ThalesGroup/gosefrom 0.7.3 up to 0.13.0-rc1CVE List
github.com/eclipse-keypont/gosebefore 1.0.0-rc4CVE List

Classification

CWE-248

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-89315 changed 2026-11-02CVE Terms of Use
NVDCVE-2026-89315 changed 2026-11-02Public domain