CVE-2026-23996
published low CVSS 3.1 · 3.7FastAPI Api Key has a timing side-channel in verify_key that allows statistical key validity detection
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Athroniaeth | — | fastapi-api-key< 1.1.0 | Affected | Not stated | GitHub_M |
Description
FastAPI Api Key provides a backend-agnostic library that provides an API key system. Version 1.1.0 has a timing side-channel vulnerability in verify_key(). The method applied a random delay only on verification failures, allowing an attacker to statistically distinguish valid from invalid API keys by measuring response latencies. With enough repeated requests, an adversary could infer whether a key_id corresponds to a valid key, potentially accelerating brute-force or enumeration attacks. All users relying on verify_key() for API key authentication prior to the fix are affected. Users should upgrade to version 1.1.0 to receive a patch. The patch applies a uniform random delay (min_delay to max_delay) to all responses regardless of outcome, eliminating the timing correlation. Some workarounds are available. Add an application-level fixed delay or random jitter to all authentication responses (success and failure) before the fix is applied and/or use rate limiting to reduce the feasibility of statistical timing attacks.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.7 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Athroniaeth | fastapi-api-key | < 1.1.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-208 CWE-208: Observable Timing Discrepancy
References
3Provider assertions
2GitHub_M · cna
FastAPI Api Key has a timing side-channel in verify_key that allows statistical key validity detection
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7a5276de9face56885db84b6369eb99e8efb4312a24f9c276c7707da1434abfe
- Ingested
- 23 Sep 2026, 09:06:19 UTC
- Source record
- Official CVE record