Overview
- Description
- @fastify/bearer-auth is a Fastify plugin to require bearer Authorization headers. @fastify/bearer-auth prior to versions 7.0.2 and 8.0.1 does not securely use crypto.timingSafeEqual. A malicious attacker could estimate the length of one valid bearer token. According to the corresponding RFC 6750, the bearer token has only base64 valid characters, reducing the range of characters for a brute force attack. Version 7.0.2 and 8.0.1 of @fastify/bearer-auth contain a patch. There are currently no known workarounds. The package fastify-bearer-auth, which covers versions 6.0.3 and prior, is also vulnerable starting at version 5.0.1. Users of fastify-bearer-auth should upgrade to a patched version of @fastify/bearer-auth.
- Source
- security-advisories@github.com
- NVD status
- Analyzed
Risk scores
CVSS 3.1
- Type
- Primary
- Base score
- 7.5
- Impact score
- 3.6
- Exploitability score
- 3.9
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Severity
- HIGH
Social media
- Hype score
- Not currently trending
Configurations
[ { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:a:fastify:bearer-auth:*:*:*:*:*:node.js:*:*", "vulnerable": true, "matchCriteriaId": "F4E6279F-FB08-4B50-8A0E-8A751098175F", "versionEndExcluding": "7.0.2", "versionStartIncluding": "5.0.1" }, { "criteria": "cpe:2.3:a:fastify:bearer-auth:8.0.0:*:*:*:*:node.js:*:*", "vulnerable": true, "matchCriteriaId": "BF0046AC-5EB0-4A58-B08F-3B8F3F7DA4C1" } ], "operator": "OR" } ] } ]