CVE-2025-30204: Denial of Service via Excessive Memory Allocation in golang-jwt
CVE-2025-30204 is an asymmetric resource-consumption vulnerability in the golang-jwt Go implementation of JSON Web Tokens. Affected versions begin at 3.2.0; fixes are available in 4.5.2 and 5.2.2. The ParseUnverified function uses strings.Split to divide untrusted token input on periods without first bounding the number of resulting segments. Input containing many periods causes memory allocations proportional to the input length, with an amplification factor of approximately 16. A specially crafted Bearer Authorization header can therefore exhaust application resources and cause denial of service.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Remote, unauthenticated exploitation can cause excessive memory consumption, significant performance degradation, or application crashes, resulting in denial of service. No confidentiality or integrity impact is identified.
Mitigation
If you can’t patch tonight, do this now.
Until upgraded, enforce strict Authorization-header and total request-header size limits at the reverse proxy, API gateway, load balancer, and application. Rate-limit endpoints accepting JWTs and avoid passing untrusted tokens to the vulnerable parser where feasible. These measures reduce exposure but do not replace the fix. Red Hat does not recommend a specific vendor mitigation.
Remediation
Patch, then assume compromise.
Upgrade golang-jwt v4 to version 4.5.2 or later, or v5 to version 5.2.2 or later. No fixed v3 release is listed; migrate affected v3 applications to a fixed v4 or v5 release. Rebuild and redeploy applications incorporating the vulnerable dependency. For vendor-packaged software and container images, install the applicable vendor security updates.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2025-30204 exploited in the wild?
- As of Nov 20, 2026, Mallory has no reports of CVE-2025-30204 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-30204?
- As of Nov 20, 2026, Mallory has found no public exploit for CVE-2025-30204.
- Is there a patch for CVE-2025-30204?
- Upgrade golang-jwt v4 to version 4.5.2 or later, or v5 to version 5.2.2 or later. No fixed v3 release is listed; migrate affected v3 applications to a fixed v4 or v5 release.
- How severe is CVE-2025-30204?
- CVE-2025-30204 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 1.1% (65th percentile) as of Nov 20, 2026.
Recent activity
62 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.