# CVE-2026-85740: LightRAG: SSRF via IPv6-transition address bypass (NAT64, IPv4-compatible, 6to4) of the native-markdown image-download guard

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-22T16:20:11.620Z
- Modified: 2026-10-01T17:56:10.193Z
- Also known as: GHSA-vv3m-f8x4-7377, PYSEC-2026-4064
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

LightRAG provides simple and fast retrieval-augmented generation. Prior to 1.5.5, _validated_addresses in lightrag/parser/markdown/parser.py evaluates the literal resolved address with ipaddress.is_global without consistently classifying an IPv4 address embedded in an IPv6 transition wrapper. A caller who can upload a Markdown or textpack document can supply an external image URL using NAT64 64:ff9b::/96 or an IPv4-compatible form that embeds a loopback, private, or cloud-metadata IPv4 address. On a deployment with compatible NAT64 or DNS64 routing, _download and _build_guarded_opener accept the wrapper and fetch the internal resource, whose body is then ingested. Current interpreter behavior already blocks some RFC 8215 and 6to4 forms, but the fixed guard handles all documented wrappers without becoming more permissive than the standard library. This issue is fixed in version 1.5.5.

(As written by CVE List.)

## Affected

- HKUDS LightRAG: < 1.5.5
- lightrag-hku (PyPI): before 1.5.5

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N`
- PyPA Advisory Database: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N`

## References

- <https://github.com/HKUDS/LightRAG/security/advisories/GHSA-vv3m-f8x4-7377> (exploit, web)
- <https://github.com/HKUDS/LightRAG/pull/3426> (web)
- <https://github.com/HKUDS/LightRAG/commit/9207e7fd10cf6df3cf26e3dd1921490b34a2f132> (web)
- <https://github.com/HKUDS/LightRAG/commit/a25862177a9b00e0edb870778a42b4155924de09> (web)
- <https://github.com/HKUDS/LightRAG/commit/c598545aa0084a427bcb19a84ade5e0ec31fa673> (web)
- <https://github.com/HKUDS/LightRAG/releases/tag/v1.5.5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-85740> (advisory)
- <https://github.com/HKUDS/LightRAG> (package)
- <https://pypi.org/project/lightrag-hku> (package)
- <https://github.com/advisories/GHSA-vv3m-f8x4-7377> (advisory)

## Sources

- CVE List: [CVE-2026-85740](https://www.cve.org/CVERecord?id=CVE-2026-85740), CVE Terms of Use, modified 2026-09-28
- GitHub Advisory Database: [GHSA-vv3m-f8x4-7377](https://github.com/advisories/GHSA-vv3m-f8x4-7377), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-85740](https://nvd.nist.gov/vuln/detail/CVE-2026-85740), Public domain, modified 2026-09-28
- PyPA Advisory Database: [PYSEC-2026-4064](https://osv.dev/vulnerability/PYSEC-2026-4064), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-85740 · Whole record: https://cve.day/CVE-2026-85740.json · Rebuilt by cve.day 2026-11-25T22:59:40.480Z
