Vulnerabilities in pkg:golang/github.com/dvsekhvalnov/jose2go

PACKAGE
Advisory Summary

GHSA-mhpq-9638-x6pw is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves denial of service when decrypting attack controlled input in github.com/dvsekhvalnov/jose2go. Remediation is available by upgrading affected packages to version 1.5.1-0.20231206184617-48ba0b76bc88.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/dvsekhvalnov/jose2go

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/dvsekhvalnov/jose2go. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-mhpq-9638-x6pw - MODERATE Duplicate Advisory: Denial of service when decrypting attack controlled input in github.com/dvsekhvalnov/jose2go
GHSA-6294-6rgp-fr7r CVE-2023-50658 MODERATE jose2go vulnerable to denial of service via large p2c value
GHSA-9mj6-hxhv-w67j CVE-2025-63811 HIGH jose2go is vulnerable to a JWT bomb attack through its decode function

GHSA-mhpq-9638-x6pw at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-mhpq-9638-x6pw
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Duplicate Advisory
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability Low (A:L)

How to Fix GHSA-mhpq-9638-x6pw

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/dvsekhvalnov/jose2go fixed: 1.5.1-0.20231206184617-48ba0b76bc88
Upgrade github.com/dvsekhvalnov/jose2go to 1.5.1-0.20231206184617-48ba0b76bc88
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/dvsekhvalnov/jose2go

How to Check if You Are Affected

To determine whether your application is affected by GHSA-mhpq-9638-x6pw, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for github.com/dvsekhvalnov/jose2go

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.5.1-0.20231206184617-48ba0b76bc88), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-6294-6rgp-fr7r. This link is maintained to preserve external references. ## Original Description An attacker controlled input of a PBES2 encrypted JWE blob can have a very large p2c value that, when decrypted, produces a denial-of-service.

GHSA-mhpq-9638-x6pw Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
1.5.1-0.20231206184617-48ba0b76bc88
Product / Package Ecosystem Affected Versions Fixed Version
github.com/dvsekhvalnov/jose2go
Go
< 1.5.1-0.20231206184617-48ba0b76bc88
1.5.1-0.20231206184617-48ba0b76bc88

References

Frequently Asked Questions

What is GHSA-mhpq-9638-x6pw?
GHSA-mhpq-9638-x6pw is a security vulnerability in Duplicate Advisory involving Denial of service when decrypting attack controlled input in github.com/dvsekhvalnov/jose2go under CWE-400: Uncontrolled Resource Consumption.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 1.5.1-0.20231206184617-48ba0b76bc88 across affected packages: github.com/dvsekhvalnov/jose2go.
What version fixes GHSA-mhpq-9638-x6pw?
Upgrading to 1.5.1-0.20231206184617-48ba0b76bc88 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/dvsekhvalnov/jose2go affected?
Yes, github.com/dvsekhvalnov/jose2go is affected in releases prior to 1.5.1-0.20231206184617-48ba0b76bc88. Upgrade your dependency to 1.5.1-0.20231206184617-48ba0b76bc88 or later.
What is the CVSS score of GHSA-mhpq-9638-x6pw?
GHSA-mhpq-9638-x6pw has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
What CWE is associated with GHSA-mhpq-9638-x6pw?
GHSA-mhpq-9638-x6pw is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Go dependencies for GHSA-mhpq-9638-x6pw?
Run the dependency tree command: 'inspect dependencies for github.com/dvsekhvalnov/jose2go'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-mhpq-9638-x6pw",
  "modified" : "2026-02-03T17:53:34Z",
  "published" : "2023-12-20T20:31:57Z",
  "withdrawn" : "2026-02-03T17:53:34Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: Denial of service when decrypting attack controlled input in github.com/dvsekhvalnov/jose2go",
  "details" : "## Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-6294-6rgp-fr7r. This link is maintained to preserve external references.\n\n## Original Description\n\nAn attacker controlled input of a PBES2 encrypted JWE blob can have a very large p2c value that, when decrypted, produces a denial-of-service.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/dvsekhvalnov/jose2go"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.5.1-0.20231206184617-48ba0b76bc88"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/dvsekhvalnov/jose2go/issues/31"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dvsekhvalnov/jose2go/commit/a4584e9dd7128608fedbc67892eba9697f0d5317"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/dvsekhvalnov/jose2go"
  }, {
    "type" : "WEB",
    "url" : "https://www.blackhat.com/us-23/briefings/schedule/#three-new-attacks-against-json-web-tokens-31695"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-12-20T20:31:57Z",
    "nvd_published_at" : null
  }
}