lightrag-hku is vulnerable to Server-Side Request Forgery (SSRF)
71
CVE Score
High
Server-Side Request Forgery (SSRF)
LightRAG's native markdown parser in lightrag/parser/markdown/parser.py downloads external images referenced by uploaded markdown or textpack documents. The _validated_addresses SSRF guard resolves the image host and rejects non-global addresses, but evaluates the raw resolved address without decoding IPv6-transition wrappers such as NAT64 64:ff9b::/96, IPv4-compatible ::a.b.c.d, or 6to4 2002::/16 that embed an internal IPv4. On a host with NAT64/DNS64 routing, a wrapped address is classified as globally routable and the request is delivered to the embedded internal target, exposing loopback services, RFC1918 hosts, and cloud metadata endpoints. The fix decodes the embedded IPv4 and default-denies untrustworthy wrapper blocks before the global-routability check.
Upgrade the lightrag-hku library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and you allow document uploads processed by the native markdown parser with image download enabled on a host that has NAT64/DNS64 routing.
0.0.1 - 1.5.4
Fixed in 1.5.5lightrag-hku is vulnerable to Server-Side Request Forgery (SSRF) in versions 0.0.1 - 1.5.4.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.