CVE & CISA-KEV Catalog

CVE-2022-31142

HIGH
7.5
CVSS v3
NVD

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.

How to fix

Remediation Available
bearer-authNVD
Affected:>= 5.0.1, < 7.0.2Fixed in:7.0.2CVE-2022-31142derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityNone
AvailabilityNone

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

Exploit Intelligence

1.16%probability of exploitation in 30 days
63rdpercentile

Moderate risk: more likely to be exploited than 63% of all known CVEs.

References

Embed a live status badge for CVE-2022-31142
CVE-2022-31142 severity badge

Markdown

[![CVE-2022-31142](https://tridentstack.com/cve/badge/CVE-2022-31142.svg)](https://tridentstack.com/cve/CVE-2022-31142)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-31142"><img src="https://tridentstack.com/cve/badge/CVE-2022-31142.svg" alt="CVE-2022-31142"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.