Skip to content
OpenAdvisories
Medium · 6.9 CVE-2026-89315 EUVD-2026-108647

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

Published Oct 23, 2026 · Updated Nov 2, 2026 · 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 products

VendorProductAffectedFixed
Eclipse Foundation Eclipse KeyPont - GOSE 0.7.3 – ≤ 0.13.0-rc1, < 1.0.0-rc4 1.0.0-rc4

References