Timing Attack Affecting lightrag-hku package, versions [,1.5.5)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.45% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-LIGHTRAGHKU-21693624
  • published24 Oct 2026
  • disclosed22 Sept 2026
  • creditUnknown

Introduced: 22 Sep 2026

CVE-2026-85725  (opens in a new tab)
CWE-208  (opens in a new tab)

How to fix?

Upgrade lightrag-hku to version 1.5.5 or higher.

Overview

lightrag-hku is a LightRAG: Simple and Fast Retrieval-Augmented Generation

Affected versions of this package are vulnerable to Timing Attack via the verify_password function in lightrag/api/passwords.py, which compares plaintext AUTH_ACCOUNTS passwords using Python's == operator. This operator short-circuits on the first mismatched byte, leaking password length and content through response timing. Additionally, AuthHandler.verify_password in lightrag/api/auth.py returns early for unknown usernames without performing any comparison, making valid usernames distinguishable from invalid ones by the approximately 100ms bcrypt verification delay, enabling username enumeration.

Note: This is only exploitable in deployments using unhashed (plaintext) passwords in AUTH_ACCOUNTS.

CVSS Base Scores

version 4.0
version 3.1