# CVE-2026-61736: HKUDS LightRAG permissive CORS policy in API server

Source: https://junglewise.ai/threats/cve-2026-61736-hkuds-lightrag-permissive-cors-policy-in-api-server  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-15. Updated: 2026-07-20  
License: CC BY 4.0 with a link back

CVE-2026-61736 · Severity: critical · CVSS 9.3 · Published 2026-07-15

LightRAG is an open-source knowledge graph and document management system. A security flaw in its web configuration allows malicious websites to perform actions on behalf of logged-in users. If an authenticated user visits a compromised site, attackers could silently steal private documents, access knowledge graph data, or delete stored information.

Technologies: [HKUDS LightRAG](https://junglewise.ai/threats/technologies/lightrag), [lightrag-hku (PyPI)](https://junglewise.ai/threats/technologies/lightrag-hku). Vendors: [HKUDS](https://junglewise.ai/threats/vendors/hkuds), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-61736 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-61736 being exploited in the wild.

**How severe is CVE-2026-61736?** Critical severity, with a CVSS score of 9.3, published 15 July 2026.

**Which products and versions are affected?** HKUDS LightRAG < 1.5.4, <= 1.5.3; lightrag-hku (PyPI) <= 1.5.3, ECOSYSTEM:introduced=0,fixed=1.5.4.

**Is there a fix for CVE-2026-61736?** Yes. lightrag-hku (PyPI): upgrade to 1.5.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-61736 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-61736?** Check whether you run HKUDS LightRAG or lightrag-hku (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- lightrag-hku (PyPI): upgrade to 1.5.4 or later

  ```sh
  pip install "lightrag-hku>=1.5.4"
  ```


## Technical details

The LightRAG server defaults to a permissive Cross-Origin Resource Sharing (CORS) configuration where 'CORS_ORIGINS' is set to a wildcard ('*') while 'allow_credentials' is set to True. Due to the behavior of the underlying Starlette CORSMiddleware, when credentials are enabled with a wildcard origin, the middleware echoes the requesting origin back in the 'Access-Control-Allow-Origin' header. This effectively bypasses browser-level origin restrictions. A remote attacker can exploit this by enticing an authenticated user to visit a malicious webpage, which can then perform cross-origin authenticated API calls to the LightRAG server to exfiltrate data or delete document stores. The issue is fixed in version 1.5.4.

## Affected products

- HKUDS lightrag-hku <= 1.5.3

## Identifiers

- CVE-2026-61736
- GHSA-6x6h-qqr7-855w
- PYSEC-2026-3474

## Timeline

- 2026-06-24: disclosed: Initial report to HKUDS/LightRAG
- 2026-07-15: advisory: NVD publication date
- 2026-07-20: patched: GitHub Advisory reviewed and published; version 1.5.4 released

## References

- [https://api.github.com/users/MaramHarsha](https://api.github.com/users/MaramHarsha)
- [https://github.com/MaramHarsha](https://github.com/MaramHarsha)
- [https://api.github.com/users/MaramHarsha/gists%7B/gist_id%7D](https://api.github.com/users/MaramHarsha/gists%7B/gist_id%7D)
- [https://api.github.com/users/MaramHarsha/repos](https://api.github.com/users/MaramHarsha/repos)
- [https://avatars.githubusercontent.com/u/73836896?v=4](https://avatars.githubusercontent.com/u/73836896?v=4)
- [https://api.github.com/users/MaramHarsha/events%7B/privacy%7D](https://api.github.com/users/MaramHarsha/events%7B/privacy%7D)

## Related threats

- [LightRAG WebUI stored XSS in chat answer renderer](https://junglewise.ai/threats/cve-2026-86062-lightrag-webui-stored-xss-in-chat-answer-renderer)
- [LightRAG SSRF via IPv6-transition address bypass in markdown image download](https://junglewise.ai/threats/cve-2026-85740-lightrag-ssrf-via-ipv6-transition-address-bypass-in-markdown)
- [lightrag-hku /login endpoint missing rate limiting enables brute-force attacks](https://junglewise.ai/threats/cve-2026-85734-lightrag-hku-login-endpoint-missing-rate-limiting-enables-brute)
- [LightRAG plaintext password timing attack vulnerability](https://junglewise.ai/threats/cve-2026-85725-lightrag-plaintext-password-timing-attack-vulnerability)
- [LightRAG API sensitive information exposure in error responses](https://junglewise.ai/threats/cve-2026-85709-lightrag-api-sensitive-information-exposure-in-error-responses)
