GHSA-hxhc-wmg8-xrqf: Namshi/jose Namshi/jose Insecure JSON Web Signatures Vulnerability

HIGH
Published
Advisory Summary

GHSA-hxhc-wmg8-xrqf is a HIGH namshi/jose insecure json web signatures vulnerability (General Security Weakness) affecting Namshi/jose libraries in the Packagist ecosystem. The issue involves namshi/jose insecure json web signatures (jws). Remediation is available by upgrading affected packages to version 1.1.2, 1.2.2, 2.0.3, 2.1.2.

GHSA-hxhc-wmg8-xrqf at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-hxhc-wmg8-xrqf
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Namshi/jose
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-hxhc-wmg8-xrqf

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

namshi/jose fixed: 1.1.2
Upgrade namshi/jose to 1.1.2
namshi/jose fixed: 1.2.2
Upgrade namshi/jose to 1.2.2
namshi/jose fixed: 2.0.3
Upgrade namshi/jose to 2.0.3
namshi/jose fixed: 2.1.2
Upgrade namshi/jose to 2.1.2
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 namshi/jose

How to Check if You Are Affected

To determine whether your application is affected by GHSA-hxhc-wmg8-xrqf, inspect your project dependencies for Namshi/jose:

inspect dependencies for namshi/jose

Analyze the terminal output to locate any version of Namshi/jose in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.1.2), 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 General Security Weakness. In Namshi/jose, 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

namshi/jose allows the acceptance of unsecure JSON Web Signatures (JWS) by default. The vulnerability arises from the $allowUnsecure flag, which, when set to true during the loading of JWSes, permits tokens signed with 'none' algorithms to be processed. This behavior poses a significant security risk as it could allow an attacker to impersonate users by crafting a valid jwt token.

GHSA-hxhc-wmg8-xrqf Affected Namshi/jose Versions

4 component(s)
Fixed Versions:
1.1.21.2.22.0.32.1.2
Product / Package Ecosystem Affected Versions Fixed Version
namshi/jose
Packagist
< 1.1.2
1.1.2
namshi/jose
Packagist
≥ 1.2.0
< 1.2.2
1.2.2
namshi/jose
Packagist
≥ 2.0.0
< 2.0.3
2.0.3
namshi/jose
Packagist
≥ 2.1.0
< 2.1.2
2.1.2

References

Frequently Asked Questions

What is GHSA-hxhc-wmg8-xrqf?
GHSA-hxhc-wmg8-xrqf is a security vulnerability in Namshi/jose involving namshi/jose insecure JSON Web Signatures (JWS) under General Security Weakness.
Which Namshi/jose versions are affected?
Affected versions include releases prior to 1.1.2, 1.2.2, 2.0.3, 2.1.2 across affected packages: namshi/jose.
What version fixes GHSA-hxhc-wmg8-xrqf?
Upgrading to 1.1.2, 1.2.2, 2.0.3, 2.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is namshi/jose affected?
Yes, namshi/jose is affected in releases prior to 1.1.2, 1.2.2, 2.0.3, 2.1.2. Upgrade your dependency to 1.1.2, 1.2.2, 2.0.3, 2.1.2 or later.
What CWE is associated with GHSA-hxhc-wmg8-xrqf?
GHSA-hxhc-wmg8-xrqf is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-hxhc-wmg8-xrqf?
Run the dependency tree command: 'inspect dependencies for namshi/jose'. 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-hxhc-wmg8-xrqf",
  "modified" : "2024-05-17T22:31:42Z",
  "published" : "2024-05-17T22:31:42Z",
  "aliases" : [ ],
  "summary" : "namshi/jose insecure JSON Web Signatures (JWS)",
  "details" : "namshi/jose allows the acceptance of unsecure JSON Web Signatures (JWS) by default. The vulnerability arises from the $allowUnsecure flag, which, when set to true during the loading of JWSes, permits tokens signed with 'none' algorithms to be processed. This behavior poses a significant security risk as it could allow an attacker to impersonate users by crafting a valid jwt token.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "namshi/jose"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "namshi/jose"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.2.0"
      }, {
        "fixed" : "1.2.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "namshi/jose"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "namshi/jose"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.1.0"
      }, {
        "fixed" : "2.1.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/namshi/jose/commit/009f86d6ced000b806b2f602c0b7393060ebb34e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/namshi/jose/2015-02-19.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/namshi/jose"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-17T22:31:42Z",
    "nvd_published_at" : null
  }
}