GHSA-g3qw-9pgp-xpj4

Suggest an improvement
Source
https://github.com/advisories/GHSA-g3qw-9pgp-xpj4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-g3qw-9pgp-xpj4/GHSA-g3qw-9pgp-xpj4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-g3qw-9pgp-xpj4
Published
2020-09-01T21:08:44Z
Modified
2020-08-31T18:32:28Z
Summary
Out-of-bounds Read in njwt
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-125"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-08-31T18:32:28Z",
    "nvd_published_at": null,
    "severity": "LOW"
}
References

Affected packages

npm / njwt

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
1.0.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-g3qw-9pgp-xpj4/GHSA-g3qw-9pgp-xpj4.json"