lightrag-hku is vulnerable to Observable Timing Discrepancy
59
Medium Risk
When plaintext passwords are stored in AUTH_ACCOUNTS, the verify_password function in lightrag/api/passwords.py compares the submitted password against the stored value with Python's == operator, which short-circuits on the first mismatched byte and is not constant-time. A client with low-latency access can measure the timing difference to recover the password length and characters one at a time, without triggering brute-force limits. This only affects deployments that store unhashed passwords rather than bcrypt hashes. The fix uses a constant-time comparison for plaintext passwords.
You are affected if you are using a version that falls within the vulnerable range and you store unhashed plaintext passwords in AUTH_ACCOUNTS.
lightrag-hku is vulnerable to Observable Timing Discrepancy in versions 0.0.1 - 1.5.4.
Upgrade the lightrag-hku library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant