{"id":"GHSA-g3qw-9pgp-xpj4","aliases":[],"status":"published","title":"Out-of-bounds Read in njwt","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. \n\nOn 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.\n\n\n## Recommendation\n\nUpgrade to version 1.0.0.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2020-09-01T21:08:44Z","modified":"2023-01-09T05:04:04Z","fixes":[{"ecosystem":"npm","package":"njwt","fixed_in":["1.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"njwt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"njwt","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.0.0"}]}]}],"references":[{"url":"https://hackerone.com/reports/321704","tags":["web"]},{"url":"https://www.npmjs.com/advisories/679","tags":["web"]},{"url":"https://github.com/advisories/GHSA-g3qw-9pgp-xpj4"}],"sources":{"ghsa":[{"id":"GHSA-g3qw-9pgp-xpj4","title":"Out-of-bounds Read in njwt","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. \n\nOn 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.\n\n\n## Recommendation\n\nUpgrade to version 1.0.0.","status":"published","published":"2020-09-01T21:08:44Z","modified":"2023-01-09T05:04:04Z","cwes":["CWE-125"],"updated_at":"2026-11-02T14:36:08.267721Z"}],"osv":[{"id":"GHSA-g3qw-9pgp-xpj4","title":"Out-of-bounds Read in njwt","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. \n\nOn 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.\n\n\n## Recommendation\n\nUpgrade to version 1.0.0.","status":"published","published":"2020-09-01T21:08:44Z","modified":"2020-08-31T18:32:28Z","cwes":["CWE-125"],"updated_at":"2026-11-02T15:46:47.119724Z"}]}}
