CVE-2026-72794: Go Jwt Static Sub Claim

A static string literal is assigned to the JWT 'sub' (subject) claim in `jwt.MapClaims`. JWT subject claims should uniquely identify the principal or user account associated with the token. Assigning a fixed string to 'sub' causes all issued tokens to share the same subject, breaking user context isolation.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-72794-go-jwt-static-sub-claim --engine opengrep

Description

A static string literal is assigned to the JWT 'sub' (subject) claim in `jwt.MapClaims`. JWT subject claims should uniquely identify the principal or user account associated with the token. Assigning a fixed string to 'sub' causes all issued tokens to share the same subject, breaking user context isolation.