Medium

HKUDS LightRAG allows Path Traversal via function upload_to_input_dir

  • Disclosed: 27.06.2025
  • Updated: 11.10.2026 13:19

A vulnerability was found in HKUDS LightRAG up to 1.3.8. It has been declared as critical. Affected by this vulnerability is the function upload_to_input_dir of the file lightrag/api/routers/document_routes.py of the component File Upload. The manipulation of the argument file.filename leads to path traversal. It is possible to launch the attack on the local host. The identifier of the patch is 60777d535b719631680bcf5d0969bdef79ca4eaf. It is recommended to apply a patch to fix this issue.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) lightrag-hku < 1.3.8 1.3.8

References

CVSS score 5.3/10
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Weakness (CWE)
CWE-22
Platform
Python (PyPI)
Package
lightrag-hku
Disclosed
27.06.2025
Updated
11.10.2026 13:19

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-1539 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-v9w6-9hq9-33ch - CC BY 4.0

Vulnerability history: lightrag-hku

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (10) in the archive
Total entries
10
First → latest
06.2025 09.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 3
  • High 2
  • Medium 5

Disclosures per year

  1. 2025: 1
  2. 2026: 9
Severity:
  1. High · 7.5 CVE-2026-30762 < 1.4.13 1.4.13
  2. HKUDS LightRAG allows Path Traversal via function upload_to_input_dir this entry
    Medium · 5.3 CVE-2025-6773 < 1.3.8 1.3.8

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.