Use of Hard-coded Credentials Affecting lightrag-hku package, versions [,1.5.4)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.4% (33rd 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 Learn

Learn about Use of Hard-coded Credentials vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LIGHTRAGHKU-18319692
  • published26 Jul 2026
  • disclosed20 Jul 2026
  • creditUnknown

Introduced: 20 Jul 2026

CVE-2026-61740  (opens in a new tab)
CWE-287  (opens in a new tab)
CWE-798  (opens in a new tab)

How to fix?

Upgrade lightrag-hku to version 1.5.4 or higher.

Overview

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

Affected versions of this package are vulnerable to Use of Hard-coded Credentials in the authentication process when a hardcoded default token secret is used and certain endpoints such as /auth-status and /login are exposed without proper authentication checks. An attacker can gain unauthorized access to protected API endpoints and perform destructive actions, such as reading, deleting, or uploading documents, clearing caches, and running arbitrary queries, by minting a valid guest JWT offline or obtaining one from the unauthenticated endpoints. This is only exploitable if the server is configured with LIGHTRAG_API_KEY set and AUTH_ACCOUNTS unset.

CVSS Base Scores

version 4.0
version 3.1