CVE-2026-72800: Go Jwt Hardcoded Subject Claim

The JWT 'sub' (subject) claim is set to a static identifier or string literal instead of a dynamic user identifier. Hardcoding the subject claim causes all generated tokens to share the same identity, breaking user isolation and authorization boundaries.

Provally CuratedPublic repositoryMediumHigh confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-72800-go-jwt-hardcoded-subject-claim --engine opengrep

Description

The JWT 'sub' (subject) claim is set to a static identifier or string literal instead of a dynamic user identifier. Hardcoding the subject claim causes all generated tokens to share the same identity, breaking user isolation and authorization boundaries.