# GHSA-8v5f-hp78-jgxq: Signature Verification Bypass in jwt-simple

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2019-06-06T15:30:33.000Z
- Modified: 2020-08-31T18:37:26.000Z
- Weaknesses: CWE-347

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- jwt-simple (npm): before 0.5.3

## References

- <https://github.com/hokaccha/node-jwt-simple/commit/ead36e1d687645da9c3be8befdaaef622ea33106> (web)
- <https://www.npmjs.com/advisories/831> (web)

## Sources

- GitHub Advisory Database: [GHSA-8v5f-hp78-jgxq](https://github.com/advisories/GHSA-8v5f-hp78-jgxq), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-8v5f-hp78-jgxq · Whole record: https://cve.day/GHSA-8v5f-hp78-jgxq.json · Rebuilt by cve.day 2026-11-25T22:56:44.798Z
