Home / golang-jwt / jwt / CVE-2025-30204
CVE-2025-30204: is it exploited, and which versions of golang-jwt jwt are affected and fixed?
CVE-2025-30204 is an asymmetric Resource Consumption (Amplification) vulnerability in golang-jwt jwt. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:09 UTC). Affected: 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 through 3.2.2 (GitHub advisory GHSA-mh63-6h87-95cp). Fixed in 5.2.2 and 4.5.2 (GitHub advisory GHSA-mh63-6h87-95cp). Severity: High (7.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:09 UTC, CVE record November 19, 2026, 07:09 UTC and NVD November 19, 2026, 07:21 UTC.
What is CVE-2025-30204?
jwt-go allows excessive memory allocation during header parsing
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.
From the CVE record by GitHub_M, last updated April 10, 2025, 13:03 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| golang-jwt | jwt | >= 3.2.0, < 4.5.2 >= 5.0.0-rc.1, < 5.2.2 |
As the CVE record by GitHub_M states it, last updated April 10, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/golang-jwt/jwt/v5 | >= 5.0.0-rc.1, < 5.2.2 | 5.2.2 | GHSA-mh63-6h87-95cp |
| Go | github.com/golang-jwt/jwt/v4 | < 4.5.2 | 4.5.2 | GHSA-mh63-6h87-95cp |
| Go | github.com/golang-jwt/jwt | >= 3.2.0, <= 3.2.2 | none listed | GHSA-mh63-6h87-95cp |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 10, 2025. Summary: jwt-go allows excessive memory allocation during header parsing.
How severe is CVE-2025-30204?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-30204 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, March 24, 2025)
- EPSS
- 0.81% probability of exploitation activity in the next 30 days, percentile 58.2 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-405 Asymmetric Resource Consumption (Amplification)
Where are the vendor advisories and references?
- https://github.com/golang-jwt/jwt/security/advisories/GHSA-mh63-6h87-95cp x_refsource_CONFIRM
- https://github.com/golang-jwt/jwt/commit/0951d184286dece21f73c85673fd308786ffe9c3 x_refsource_MISC
- https://github.com/golang-jwt/jwt/commit/bf316c48137a1212f8d0af9288cc9ce8e59f1afb x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20250404-0002/
When was it published, and where is the official record?
- Reserved
- March 18, 2025
- Published
- March 21, 2025, 21:42 UTC
- CVE record updated
- April 10, 2025, 13:03 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 09:08 UTC
- Last checked
- CVE list November 19, 2026, 07:09 UTC; NVD November 19, 2026, 07:21 UTC; KEV December 3, 2026, 17:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect jwt?
- Nov 4, 2024CVE-2024-51744 golang-jwt jwt: exceptional condition mishandled
Questions about CVE-2025-30204
Is CVE-2025-30204 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:09 UTC. FIRST's EPSS gives it a 0.81% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of golang-jwt jwt are affected by CVE-2025-30204?
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 through 3.2.2, per the GitHub advisory GHSA-mh63-6h87-95cp. The tables above give every range the sources list.
Which version fixes CVE-2025-30204?
5.2.2 and 4.5.2, per the GitHub advisory GHSA-mh63-6h87-95cp. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-30204?
High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2025-30204?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.