Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTh2NWYtaHA3OC1qZ3hx

Signature Verification Bypass in jwt-simple

Versions of jwt-simple prior to 0.5.3 are vulnerable to Signature Verification Bypass. If no algorithm is specified in the decode() function, the packages uses the algorithm in the JWT to decode tokens. This allows an attacker to create a HS256 (symmetric algorithm) JWT with the server's public key as secret, and the package will verify it as HS256 instead of RS256 (asymmetric algorithm).

Recommendation

Upgrade to version 0.5.3 or later.

Permalink: https://github.com/advisories/GHSA-8v5f-hp78-jgxq
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTh2NWYtaHA3OC1qZ3hx
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 5 years ago
Updated: almost 2 years ago


Identifiers: GHSA-8v5f-hp78-jgxq
References: Repository: https://github.com/hokaccha/node-jwt-simple
Blast Radius: 0.0

Affected Packages

npm:jwt-simple
Dependent packages: 618
Dependent repositories: 18,123
Downloads: 877,149 last month
Affected Version Ranges: < 0.5.3
Fixed in: 0.5.3
All affected versions: 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.5.2
All unaffected versions: 0.5.3, 0.5.4, 0.5.5, 0.5.6