CVE-2025-6773: HKUDS LightRAG allows Path Traversal via function upload_to_input_dir
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 uploadtoinputdir of the file lightrag/api/routers/documentroutes.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.
Published Jun 27, 2025 · Updated Jun 30, 2025
Affected packages
lightrag-hku
- Ecosystem
- PyPI
- Affected
- < 1.3.8
- Fixed in
- 1.3.8
- Check
pip show lightrag-hku
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-6773
- https://github.com/HKUDS/LightRAG/issues/1692
- https://github.com/HKUDS/LightRAG/issues/1692#issuecomment-3009368235
- https://github.com/HKUDS/LightRAG/commit/60777d535b719631680bcf5d0969bdef79ca4eaf
- https://vuldb.com/?ctiid.314089
- https://vuldb.com/?id.314089
- https://vuldb.com/?submit.601276
- https://github.com/advisories/GHSA-v9w6-9hq9-33ch
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-85709
lightrag-hku: Sensitive Information Exposure Through Raw Exception Messages in API Error Responses
medium5.3Sep 22, 2026CVE-2026-85725
lightrag-hku: Plaintext Passwords Compared Without Constant-Time Function
medium5.9Sep 22, 2026CVE-2026-85734
lightrag-hku: No Rate Limiting on /login Endpoint Allows Brute-Force Attacks
critical9.1Sep 22, 2026CVE-2026-85740
lightrag-hku: SSRF via IPv6-transition address bypass (NAT64, IPv4-compatible, 6to4) of the native-markdown image-download guard
high7.1Sep 22, 2026CVE-2026-86062
lightrag-hku: Stored Cross-Site Scripting (XSS) in the LightRAG WebUI chat/answer renderer via ingested content
medium6.1Sep 22, 2026CVE-2026-61736
LightRAG: CORS Wildcard + Credentials Enables Any-Origin Credentialed Requests
critical9.3Jul 20, 2026
