Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CVE-2025-30204 (High) detected in github.com/golang-Jwt/Jwt/v4-v4.5.0 #240

Open
@mend-bolt-for-github

Description

@mend-bolt-for-github

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

For more information on CVSS3 Scores, click here.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions