Advisory record · GHSA-mh63-6h87-95cp

jwt-go allows excessive memory allocation during header parsing

CVSS 7.5 HighEPSS 0.0081 · 57th percentile

Published by the GitHub Advisory Database at 21 Mar 2025, 22:04 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
github.com/golang-jwt/jwt/v5Go>=5.0.0-rc.1, <5.2.25.2.2
github.com/golang-jwt/jwt/v4Go<4.5.24.5.2
github.com/golang-jwt/jwtGo>=3.2.0, <=3.2.2No fixed version yet
Identifiers
GHSA-mh63-6h87-95cp · CVE-2025-30204 · GO-2025-3553
Weakness (CWE)
CWE-405
Published
21 Mar 2025
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

The jwt-go library (Go packages github.com/golang-jwt/jwt/v5 from 5.0.0-rc.1 before 5.2.2, github.com/golang-jwt/jwt/v4 before 4.5.2, and github.com/golang-jwt/jwt before 3.2.2 for the 3.2.x line) allocates memory in proportion to the length of an untrusted token during header parsing. A remote attacker can send a request whose Authorization header contains many period characters after "Bearer" to cause excessive memory allocation. Upgrade to v5.2.2 or v4.5.2; the source lists no fixed version for github.com/golang-jwt/jwt.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0081, the 57th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:14 UTC First seen by agentprime
  2. 31 Oct 2026, 14:14 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.