# CVE-2026-42344: FastGPT: DNS rebinding TOCTOU bypass in isInternalAddress allows SSRF on all protected endpoints

- Severity: Medium 6.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/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.15%, higher than 4% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-08T22:10:00.875Z
- Modified: 2026-07-24T21:10:00.143Z
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

FastGPT is an AI Agent building platform. In versions 4.14.11 and prior, FastGPT's isInternalAddress() function in packages/service/common/system/utils.ts is vulnerable to DNS rebinding (TOCTOU — Time-of-Check to Time-of-Use). The function resolves the hostname via dns.resolve4()/dns.resolve6() and checks resolved IPs against private ranges, but the actual HTTP request happens in a separate call with a new DNS resolution, allowing the DNS record to change between validation and fetch. At time of publication, there are no publicly available patches.

(As written by CVE List.)

## Affected

- labring FastGPT: <= 4.14.11

## References

- <https://github.com/labring/FastGPT/security/advisories/GHSA-cc8x-jrqv-hmwh> (exploit)

## Sources

- CVE List: [CVE-2026-42344](https://www.cve.org/CVERecord?id=CVE-2026-42344), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-42344](https://nvd.nist.gov/vuln/detail/CVE-2026-42344), Public domain, modified 2026-07-24

---

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