Skip to main content
CVE-2025-30204VulnerabilityPublished Updated

Golang github golang jwt jwt: Starting

Affects golang-github-golang-jwt-jwtSource GCVE Database

0
Compare

Not known to be exploited · CVSS 7.5 High · fixed in 5.2.2 : patch golang-github-golang-jwt-jwt soon.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.8% chance of exploitation in 30 days – higher than 57% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 5.2.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 21 Mar 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 24.04 LTSgolang-github-golang-jwt-jwtpkg:deb/ubuntu/golang-github-golang-jwt-jwt?arch=source&distro=nobleOther threatsAffected
  • =4.4.3-1build1
  • =5.0.0+really4.5.0-1
Fixed in–
Ubuntu 24.04 LTSgolang-github-golang-jwt-jwt-v5pkg:deb/ubuntu/golang-github-golang-jwt-jwt-v5?arch=source&distro=nobleOther threatsAffected
  • =5.2.0-2
Fixed in–
Ubuntu 22.04 LTSgolang-github-golang-jwt-jwtpkg:deb/ubuntu/golang-github-golang-jwt-jwt?arch=source&distro=jammyOther threatsAffected
  • 4.1.0-1 – 4.2.0-1ubuntu0.1
4 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…