CVE-2026-85725: lightrag-hku Plaintext Passwords Timing Attack Vulnerability

lightrag-hku Updated 23 Sep 2026

Summary

22/09/2026
Yes i
Moderate
5.9

CVE-2026-85725: lightrag-hku: Plaintext Passwords Compared Without Constant-Time Function. Affects lightrag-hku versions < 1.5.5. Fixed in 1.5.5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

lightrag-hku is an open-source Python package designed for building lightweight web applications. It provides functionalities for user authentication, including password management. However, it has a critical vulnerability related to how it handles plaintext passwords, which can lead to security breaches if not addressed.

Vulnerability Detail

The vulnerability arises from the use of Python's '==' operator for comparing plaintext passwords stored in AUTH_ACCOUNTS. This comparison is not constant-time, meaning that an attacker with low-latency access can exploit timing discrepancies to recover passwords character by character. The observable timing differences can reveal both the length of the password and individual characters, making it easier for attackers to compromise accounts without triggering brute-force limits.

How To Fix

Latest published version: 1.5.7 as of 23 Oct 2026

pip install --upgrade "lightrag-hku==1.5.7"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.5.5

This is the first release that contains the fix.

pip install --upgrade "lightrag-hku==1.5.5"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid using plaintext passwords in AUTH_ACCOUNTS. Instead, utilize hashed passwords with a secure hashing algorithm such as bcrypt, which is already supported by the package. Ensure that any password verification uses the bcrypt.checkpw function, which operates in constant time.

Conclusion

The lightrag-hku package has a significant vulnerability related to the comparison of plaintext passwords, which can be exploited by attackers. It is crucial to update to the latest version to ensure security or implement workarounds to mitigate risks. Regular monitoring for vulnerabilities using tools like Vulert can help maintain application security.

See every vulnerability recorded for lightrag-hku →

Share this vulnerability

FAQ

The vulnerability allows attackers to recover plaintext passwords character by character, potentially compromising user accounts.

Any deployment of lightrag-hku that stores plaintext passwords in AUTH_ACCOUNTS is at risk.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for this vulnerability is 5.9, indicating a moderate severity level.

If an immediate update is not possible, implement the workaround by using hashed passwords instead of plaintext passwords.

Related vulnerabilities

Recent vulnerabilities recorded for lightrag-hku.

How To Fix

Latest published version: 1.5.7 as of 23 Oct 2026

pip install --upgrade "lightrag-hku==1.5.7"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.5.5

This is the first release that contains the fix.

pip install --upgrade "lightrag-hku==1.5.5"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback