SSRF (Server-Side Request Forgery) in lightrag-hku (CVE-2026-85740)
Summary
SSRF in lightrag-hku (CVE-2026-85740). Confidential information can be exposed externally. Exploitable via is_global. Mitigation: upgrade to 1.5.5 or later.
Original description
The description as published by the source.
Summary
LightRAG's native markdown parser downloads external images referenced by an uploaded markdown or textpack document. The only SSRF guard, _validated_addresses() in lightrag/parser/markdown/parser.py, resolves the image host and rejects it when the resolved IP is not is_global. That check is evaluated on the raw resolved address and never decodes IPv6 transition wrappers that embed an internal IPv4. Python's ipaddress classifies a NAT64 (64:ff9b::/96 and the RFC 8215 64:ff9b:1::/48 prefix), IPv4-compatible (::a.b.c.d), or 6to4 (2002::/16) literal that wraps an internal IPv4 as globally routable, so the guard passes it. On a host with NAT64/DNS64 routing the request is then delivered to the embedded internal target (loopback, RFC1918, or a cloud metadata endpoint), and the fetched body is ingested. The plain and IPv4-mapped (::ffff:) forms of the same internal address are correctly blocked, so this is an encoding that defeats the existing filter.
Affected component and versions
- Package:
lightrag-hku(LightRAG), the native markdown image-download path. - Component:
lightrag/parser/markdown/parser.py, guard_validated_addresses()(theif not (ip.is_global or ...)check), reached from_download()->_build_guarded_opener().open(req). - Enabled by default:
download_enabled = _env_bool("NATIVE_MD_IMAGE_DOWNLOAD_ENABLED", True). - Affected: LightRAG
<= 1.5.4(latest release at time of report, commit9a45b64). - Precondition: the…
Source: NIST National Vulnerability Database NVD GitHub Advisory
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-85740 has been found in lightrag-hku.
Attackers can target a specific entry point like is_global over the network to misuse the product.
Confidential information can be exposed externally. CVSS score: 7.1/10.
What to do: upgrade lightrag-hku to 1.5.5 or later.
If unsure, ask your IT team or search "lightrag-hku CVE-2026-85740" on the vendor's site.
CVE-2026-85740 (lightrag-hku) — CWE-918 / CVSS v3 7.1
Attack vector: remote (network-reachable) / no user interaction
Attack surface: is_global / ipaddress / ipaddress._private_networks / _validated_addresses
Patched: 1.5.5 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
SSRF (CWE-918) exists in lightrag-hku. Attackers reach the vulnerable code path via is_global.
Check the vendor advisory for the affected versions of lightrag-hku. Attack surface: is_global / ipaddress / ipaddress._private_networks / _validated_addresses.
Severity: High (CVSS 7.1/10). Confidential information can be exposed externally.
Update to 1.5.5.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'lightrag-hku' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'lightrag-hku' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
lightrag-hkuを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade lightrag-hku to 1.5.5ステージング環境で 1.5.5 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
References
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- package pypi.org
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com