Vulnerabilities

CVE-2025-30204

High 7.5 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2025-03-21
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scored by
security-advisories@github.com
Probability of exploitation
0.7 % higher than 49 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
github.com/golang-jwt jwt (Go) ≥ 3.2.0, ≤ 3.2.2 Affected
github.com/golang-jwt/jwt v4 (Go) < 4.5.2 Affected
github.com/golang-jwt/jwt v5 (Go) ≥ 5.0.0-rc.1, < 5.2.2 Affected

Weakness type

  • CWE-405: Asymmetric Resource Consumption (Amplification)

    The product does not properly control situations in which an adversary can cause the product to consume or produce excessive resources without requiring the adversary to invest equivalent work or otherwise prove authori…

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities