CVE-2026-23996

Source
https://cve.org/CVERecord?id=CVE-2026-23996
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23996.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-23996
Aliases
Published
2026-01-21T22:29:24.107Z
Modified
2026-01-28T05:53:09.829550Z
Severity
  • 3.7 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
FastAPI Api Key has a timing side-channel in verify_key that allows statistical key validity detection
Details

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 verifykey(). 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 keyid corresponds to a valid key, potentially accelerating brute-force or enumeration attacks. All users relying on verifykey() 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 (mindelay 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.

Database specific
{
    "cwe_ids": [
        "CWE-208"
    ],
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23996.json"
}
References

Affected packages

Git / github.com/athroniaeth/fastapi-api-key

Affected ranges

Type
GIT
Repo
https://github.com/athroniaeth/fastapi-api-key
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*
0.10.0
0.13.0
0.13.1
0.13.2
0.13.3
0.2.1
0.4.0
0.6.0
0.7.0
0.7.1
0.7.2
0.7.3
0.8.0
0.8.1
0.8.2
0.8.3
0.9.0
1.*
1.0.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23996.json"