GHSA-95c6-p277-p87g · Severity: low · Ecosystem: pip — FastAPI Api Key has a timing side-channel in verify_key that allows statistical key validity detection
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.
Conclusion & alert: CVE-2026-23996 is rated Low Risk (20.8/100): CVSS Low severity, with low exploitation likelihood (EPSS 0.25%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.06% | 0.25% | +0.20% |
| 2 | 2026-02-15 | 0.04% | 0.06% | +0.02% |
| 3 | 2026-01-22 | — | 0.04% | — |
Full EPSS history (3 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 3.7 | 3.1 | LOW |
|
2.2 | 1.4 | [email protected] |
GHSA-95c6-p277-p87g · Severity: low · Ecosystem: pip — FastAPI Api Key has a timing side-channel in verify_key that allows statistical key validity detection
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| athroniaeth | fastapi_api_key | < 1.1.0 | cpe:2.3:a:athroniaeth:fastapi_api_key:*:*:*:*:*:python:*:* |
| URL | Tags |
|---|---|
| https://github.com/Athroniaeth/fastapi-api-key/commit/310b2c5c77305f38c63c0b917539a0344071dfd8 | Patch |
| https://github.com/Athroniaeth/fastapi-api-key/releases/tag/1.1.0 | Product Release Notes |
| https://github.com/Athroniaeth/fastapi-api-key/security/advisories/GHSA-95c6-p277-p87g | Mitigation Patch Vendor Advisory |