Read the docs
TI-2026-19335 Aliases CVE-2026-23996GHSA-95c6-p277-p87g

FastAPI Api Key has a timing side-channel in verify_key that allows statistical key validity detection

Priority LOW 17CWE-208Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Information disclosure
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-208.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00291 21st percentileScored 2026-11-07
Fix Fixed fastapi-api-key (Athroniaeth): 1.1.0fastapi-api-key (PyPI): 1.1.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Athroniaethfastapi-api-keybefore 1.1.01.1.0Patch availableCNA
—fastapi-api-key (PyPI)before 1.1.01.1.0Patch availableGHSA-95c6-p277-p87g
  • fastapi-api-key VendorAthroniaeth Affected before 1.1.0 Fixed in 1.1.0 Patch available CNA
  • fastapi-api-key (PyPI) Vendor— Affected before 1.1.0 Fixed in 1.1.0 Patch available GHSA-95c6-p277-p87g

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:athroniaeth:fastapi_api_key:*:*:*:*:*:python:*:*before 1.1.0VulnerableAthroniaeth
  • cpe:2.3:a:athroniaeth:fastapi_api_key:*:*:*:*:*:python:*:* Versions before 1.1.0 Vulnerable ·Athroniaeth

Remediation

  • Fix · CNA fastapi-api-key (Athroniaeth) Fixed in 1.1.0
  • Fix · GHSA-95c6-p277-p87g fastapi-api-key (PyPI) Fixed in 1.1.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-23996
  2. 2026-10-03 Alias added: GHSA-95c6-p277-p87g

References

Sources