# GHSA-g3qw-9pgp-xpj4: Out-of-bounds Read in njwt

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-01T21:08:44.000Z
- Modified: 2020-08-31T18:32:28.000Z
- Weaknesses: CWE-125

## Description

Versions of `njwt` prior to 1.0.0 are vulnerable to out-of-bounds reads when a number is passed into the `base64urlEncode` function. 

On Node.js 6.x or lower this can expose sensitive information and on any other version of Node.js this creates a Denial of Service vulnerability.


## Recommendation

Upgrade to version 1.0.0.

(As written by GitHub Advisory Database.)

## Affected

- njwt (npm): before 1.0.0

## References

- <https://hackerone.com/reports/321704> (web)
- <https://www.npmjs.com/advisories/679> (web)

## Sources

- GitHub Advisory Database: [GHSA-g3qw-9pgp-xpj4](https://github.com/advisories/GHSA-g3qw-9pgp-xpj4), CC-BY-4.0, modified 2020-08-31

---

Page: https://cve.day/GHSA-g3qw-9pgp-xpj4 · Whole record: https://cve.day/GHSA-g3qw-9pgp-xpj4.json · Rebuilt by cve.day 2026-11-25T22:56:45.350Z
