fastify-bearer-auth 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.
All versions of fastify-bearer-auth are also affected.
We released:
There are no workarounds. Update your dependencies.
https://hackerone.com/reports/1633287
If you have any questions or comments about this advisory: * Open an issue in https://github.com/fastify/fastify-bearer-auth * Email us at hello@matteocollina.com
{ "nvd_published_at": "2022-07-14T19:15:00Z", "github_reviewed_at": "2022-07-15T19:14:27Z", "severity": "HIGH", "github_reviewed": true, "cwe_ids": [ "CWE-203", "CWE-208" ] }