Skip to main content

Observable Discrepancy

CVE-2022-31142

Severity High
Score 7.5/10

Summary

@fastify/bearer-auth is a Fastify plugin to require bearer Authorization headers. @fastify/bearer-auth version 5.0.1 before 7.0.2, and 8.0.0 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. Users of fastify-bearer-auth should upgrade to a patched version of @fastify/bearer-auth.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • NONE
  • NONE
  • HIGH
  • NONE

CWE-203 - Observable Discrepancy

The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor, which exposes security-relevant information about the state of the product, such as whether a particular operation was successful or not.

Advisory Timeline

  • Published