CVE-2025-30204jwt-go allows excessive memory allocation during header parsing
- 7.5HighCVSS base score
- 0.81%Exploitation in 30 daysEPSS · top 43% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By GitHub_M
- 3 days later
· 3 days later
Published
- 20 days later
· 20 days later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Deferred | 3.1 | High7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.81% · top 43% of all CVEs (13 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Affected products
- affected >= 3.2.0, < 4.5.2
- affected >= 5.0.0-rc.1, < 5.2.2
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/golang-jwt/jwtGHSA-mh63-6h87-95cp (opens in a new tab)
- Gogithub.com/golang-jwt/jwt/v4GHSA-mh63-6h87-95cp (opens in a new tab)
- Gogithub.com/golang-jwt/jwt/v5GHSA-mh63-6h87-95cp (opens in a new tab)
References
References4
- https://github.com/golang-jwt/jwt/security/advisories/GHSA-mh63-6h87-95cp (opens in a new tab)x_refsource_CONFIRM
- https://github.com/golang-jwt/jwt/commit/0951d184286dece21f73c85673fd308786ffe9c3 (opens in a new tab)x_refsource_MISC
- https://github.com/golang-jwt/jwt/commit/bf316c48137a1212f8d0af9288cc9ce8e59f1afb (opens in a new tab)x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20250404-0002/ (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-7207 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-mh63-6h87-95cp (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-30204)Record last updated .