CVE-2025-30204golang-jwt jwt
High 7.5 No auth needed
Follow: this CVE · golang-jwt · golang-jwt jwt We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Mar 21, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-405
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for jwt.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/golang-jwt/jwt |
≥ 3.2.0 ≤ 3.2.2 |
no fixed version | — |
| Go | github.com/golang-jwt/jwt |
all |
no fixed version | — |
| Go | github.com/golang-jwt/jwt/v4 |
< 4.5.2 |
4.5.2 |
go get github.com/golang-jwt/jwt/v4@v4.5.2 |
| Go | github.com/golang-jwt/jwt/v4 |
< 4.5.2 |
4.5.2 |
go get github.com/golang-jwt/jwt/v4@v4.5.2 |
| Go | github.com/golang-jwt/jwt/v5 |
≥ 5.0.0-rc.1 < 5.2.2 |
5.2.2 |
go get github.com/golang-jwt/jwt/v5@v5.2.2 |
| Go | github.com/golang-jwt/jwt/v5 |
≥ 5.0.0-rc.1 < 5.2.2 |
5.2.2 |
go get github.com/golang-jwt/jwt/v5@v5.2.2 |
Per OSV / GitHub Advisories (GHSA-mh63-6h87-95cp, GO-2025-3553). Check the version in your lockfile before upgrading.
Affected products
- golang-jwt · jwt
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Red Hat Security Advisory: Red Hat Ceph Storage 9.0 Security and Enhancement update · Red Hat · RHSA-2026:1536 · Nov 23, 2026 Medium
- Red Hat Security Advisory: osbuild-composer security update · Red Hat · RHSA-2025:7967 · Nov 23, 2026 High
- Red Hat Security Advisory: osbuild-composer security update · Red Hat · RHSA-2025:8075 · Nov 23, 2026 High
- kubectl-retina-1.3.1-1.1 on GA media · SUSE · openSUSE-SU-2026:12297-1 · Oct 27, 2026 Critical
- kumactl-3.0.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12300-1 · Oct 27, 2026 Critical
- Security update for vexctl · SUSE · openSUSE-SU-2026:21481-1 · Jul 30, 2026 Critical
Also: Red Hat (+15), SUSE (+11)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.