CVE-2015-9235
nodejs-jsonwebtoken: verification step bypass with an altered token
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high).
Description
In jsonwebtoken node module before 4.2.2 it is possible for an attacker to bypass verification when a token digitally signed with an asymmetric key (RS/ES family) of algorithms but instead the attacker send a token digitally signed with a symmetric algorithm (HS* family).
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| npm::GitHub Security Advisory npm | jsonwebtoken | 4.2.2 |
| chainguard | jitsucom-jitsu | 0 |
| wolfi | jitsucom-jitsu | 0 |
References
- https://access.redhat.com/security/cve/CVE-2015-9235
- https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries
- https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/
- https://github.com/advisories/GHSA-c7hr-j4mj-j2w6
- https://github.com/auth0/node-jsonwebtoken/commit/1bb584bc382295eeb7ee8c4452a673a77a68b687
- https://nodesecurity.io/advisories/17
- https://nvd.nist.gov/vuln/detail/CVE-2015-9235
- https://www.cve.org/CVERecord?id=CVE-2015-9235