lightrag-hku: SSRF via IPv6-transition address bypass (NAT64, IPv4-compatible, 6to4) of the native-markdown image-download guard
CVE-2026-85740 · GHSA-vv3m-f8x4-7377 · published 2026-09-22
- Severity
- High
- CVSS score
- 7.1
- Chance of exploitation (EPSS)
- 0.26%
- Fixed in
- 1.5.5
- Exploitation Public proof of concept
- Automatable No
- Technical impact Partial
- CISA SSVC
A caller who can upload a markdown or textpack document (textpack uploads route to the native engine with zero config; markdown reaches it when the native engine is selected) can make the LightRAG server issue HTTP requests to internal-only addresses that the SSRF guard is meant to forbid, and the fetched body is ingested. On a deployment with NAT64/DNS64 routing this reaches cloud instance metadata (169.254.169.254, 100.100.100.200), loopback services, and RFC1918 internal hosts, exposing IAM credentials and internal service data.
Upgrade lightrag-hku to 1.5.5 or later.
Then in _validated_addresses: Verified: this blocks the NAT64/IPv4-compat/6to4 internal forms while genuine public IPs and public NAT64-wrapped IPs still pass. Addressed by #3426 (pending merge), targeted for release in lightrag-hku 1.5.5. _validated_addresses() now decides global-routability by starting from the stdlib's is_global on the literal and only ever tightening it — the guard is never more permissive than ipaddress itself: Fixed-position transition wrappers are decoded and the embedded IPv4 must also be global (IPv4-mapped ::ffff:0:0/96, IPv4-compatible ::/96, and the NAT64 well-known prefix 64:ff9b::/96 — RFC 6052 §2.2, contiguous low-32 embedding). …
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| lightrag-hku | PyPI | < 1.5.5 | 1.5.5 |
- CriticalMLflow: Unauthenticated full-read SSRF in webhook delivery: _validate_webhook_url bypassed via unvalidated HTTP redirects (and DNS rebindingmlflowExploited
- Critical@zereight/mcp-gitlab Vulnerable to Server-Side Request Forgery@zereight/mcp-gitlab
- CriticalCodeWhale: SSRF bypass - TOCTOU on DNS failure for DNS pinningcodewhale
- Criticalunstructured: Server-Side Request Forgery in the URL-based partitioningunstructured
- CriticalSSRF + LLM API key exfiltration via user-controlled basepath / baseUrl in 8 chat-model nodesflowise, flowise-components
- CriticalLocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLsgithub.com/mudler/LocalAI
- Criticallightrag-hku: No Rate Limiting on /login Endpoint Allows Brute-Force Attackslightrag-hku
- CriticalLightRAG: CORS Wildcard + Credentials Enables Any-Origin Credentialed Requestslightrag-hku
- CriticalLightRAG is Vulnerable to Authentication Bypass: hardcoded DEFAULT_TOKEN_SECRET and public /auth-status defeat LIGHTRAG_API_KEY protectionlightrag-hku
- HighLightRAG: Hardcoded JWT Signing Secret Allows Authentication Bypasslightrag-hku
- Mediumlightrag-hku: Plaintext Passwords Compared Without Constant-Time Functionlightrag-hku
- Mediumlightrag-hku: Sensitive Information Exposure Through Raw Exception Messages in API Error Responseslightrag-hku
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.