Description
CVE-2025-30204 - High Severity Vulnerability
Vulnerable Library - github.com/golang-Jwt/Jwt/v4-v4.5.0
Library home page: https://proxy.golang.org/github.com/golang-!jwt/!jwt/v4/@v/v4.5.0.zip
Path to dependency file: /engine/go.mod
Path to vulnerable library: /home/wss-scanner/go/pkg/mod/cache/download/github.com/golang-jwt/jwt/v4/@v/v4.5.0.mod
Dependency Hierarchy:
- ❌ github.com/golang-Jwt/Jwt/v4-v4.5.0 (Vulnerable Library)
Found in base branch: master
Vulnerability Details
golang-jwt is a Go implementation of JSON Web Tokens. Prior to
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.
Publish Date: 2025-03-21
URL: CVE-2025-30204
CVSS 3 Score Details (7.5)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: High
Suggested Fix
Type: Upgrade version
Origin: GHSA-mh63-6h87-95cp
Release Date: 2025-03-21
Fix Resolution: https://github.com/golang-jwt/jwt.git - v5.2.2
Step up your Open Source Security Game with Mend here