cve.bz

CVE-2025-30204

7.5 highEPSS 0.8%

High (7.5). EPSS 0.8% chance of exploitation in the next 30 days. Fixed in github.com/golang-jwt/jwt/v5 5.2.2.

golang-jwt is a Go implementation of JSON Web Tokens. Starting in version 3.2.0 and prior to versions 5.2.2 and 4.5.2, the function parse.ParseUnverified splits (via a call to strings.Split) its argument (which is untrusted data) on periods. As a result, in the face of a malicious request whose Authorization header consists of Bearer followed by many period characters, a call to that function incurs allocations to the tune of O(n) bytes (where n stands for the length of the function's argument), with a constant factor of about 16. This issue is fixed in 5.2.2 and 4.5.2.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.8% chance of exploitation in the next 30 days; higher than 56% of CVEs (scores of 2026-11-01)
CWE
CWE-405
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-mh63-6h87-95cpGogithub.com/golang-jwt/jwt/v5>=5.0.0-rc.1 <5.2.25.2.2
GHSA-mh63-6h87-95cpGogithub.com/golang-jwt/jwt/v4<4.5.24.5.2
GHSA-mh63-6h87-95cpGogithub.com/golang-jwt/jwt>=3.2.0 <=3.2.2no fix published
GO-2025-3553Gogithub.com/golang-jwt/jwtall versionsno fix published
GO-2025-3553Gogithub.com/golang-jwt/jwt/v4<4.5.24.5.2
GO-2025-3553Gogithub.com/golang-jwt/jwt/v5>=5.0.0-rc.1 <5.2.25.2.2

References

Check your stackJSON