Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2022-31142

24
FAUCET Score

CVE-2022-31142 is a high-severity vulnerability affecting the @fastify/bearer-auth and fastify-bearer-auth plugins, which are used to enforce bearer Authorization headers. The vulnerability stems from an insecure implementation of crypto.timingSafeEqual, allowing an attacker to estimate the length of a valid bearer token, thereby aiding in brute-force attacks due to the limited character set of base64 tokens. With a CVSS score of 7.5 (HIGH), this vulnerability has a low attack complexity and requires no user interaction, making it easily exploitable over the network to achieve high confidentiality impact. While there are no known workarounds, patched versions 7.0.2 and 8.0.1 of @fastify/bearer-auth address the issue. Currently, there is no evidence of active exploitation, and no public exploit code (Metasploit, Nuclei, ExploitDB) is available. Community discussion and media coverage for this CVE are minimal, which is typical for the majority of vulnerabilities.

Impacted Technologies

VendorProductVersion(s)CPE
>= 5.0.1, < 7.0.2CPE matchmatch criteria
cpe:2.3:a:fastify:bearer-auth:*:*:*:*:*:node.js:*:*
8.0.0CPE matchmatch criteria
cpe:2.3:a:fastify:bearer-auth:8.0.0:*:*:*:*:node.js:*:*

CVSS Data

CVSS version used by this source: 3.1

7.5HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
NONE
Availability Impact
NONE
Exploitability Score
3.9
Impact Score
3.6
CvssVersion
3.1

Exploit Intelligence

EPSS Score
1.39%
Probability of exploitation in next 30 days
EPSS Percentile
69.5%
Percentile rank of EPSS score among Peer Group
As of 2026-07-28
Model: v2026.06.15
This CVE's current EPSS score of 0.0139 is in the 50th percentile among its peer group of 51,553 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.1 Bluesky, 0.1 Mastodon, and 0.4 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (3)

github_advisorypatch availablevia nvd_reference
View patch
npmpatch availablevia ghsa
Product: @fastify/bearer-authFixed in: 7.0.2
npmpatch availablevia ghsa
Product: @fastify/bearer-authFixed in: 8.0.1

Vendor Advisories (1)

npmGHSA-376v-xgjx-7mfrhigh

fastify-bearer-auth vulnerable to Timing Attack Vector

Jul 15, 2022

References

github.com / fastify/fastify-bearer-auth/commit/0c468a616d7e56126dc468150f6a5a92e530b8e4
PatchThird Party Advisory
github.com / fastify/fastify-bearer-auth/commit/39353b15409ee99474545f615ffb16180cf3b716
PatchThird Party Advisory
github.com / fastify/fastify-bearer-auth/commit/f921a0582dc83112039004a9b5041141b50c5b3f
PatchThird Party Advisory
github.com / fastify/fastify-bearer-auth/security/advisories/GHSA-376v-xgjx-7mfr
Third Party Advisory
hackerone.com / reports/1633287
Permissions RequiredThird Party Advisory