Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. fastapi-api-key
  4. ›
  5. CVE-2026-23996

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

January 21, 2026 (updated January 22, 2026)

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.

Affected: all users relying on verify_key() for API key authentication prior to the fix.

References

  • github.com/Athroniaeth/fastapi-api-key
  • github.com/Athroniaeth/fastapi-api-key/commit/310b2c5c77305f38c63c0b917539a0344071dfd8
  • github.com/Athroniaeth/fastapi-api-key/releases/tag/1.1.0
  • github.com/Athroniaeth/fastapi-api-key/security/advisories/GHSA-95c6-p277-p87g
  • github.com/advisories/GHSA-95c6-p277-p87g
  • nvd.nist.gov/vuln/detail/CVE-2026-23996

Code Behaviors & Features

Detect and mitigate CVE-2026-23996 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.1.0

Fixed versions

  • 1.1.0

Solution

Upgrade to version 1.1.0 or above.

Impact 3.7 LOW

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

Learn more about CVSS

Weakness

  • CWE-208: Observable Timing Discrepancy

Source file

pypi/fastapi-api-key/CVE-2026-23996.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:24 +0000.