CVE-2026-42345: FastGPT: Cloud metadata endpoint SSRF protection bypass via port specification, IPv6 mapping, hex/decimal IP encoding, and trailing dot
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 blocks cloud metadata endpoints using a fullUrl.startsWith() check against a hardcoded list. This check can be bypassed using at least 7 different URL encoding techniques, all of which resolve to the same cloud metadata service but do not match the blocklist patterns. Additionally, the broader private IP check (isInternalIPv4/isInternalIPv6) is disabled by default because CHECKINTERNALIP defaults to false (not 'true'), so these bypasses reach the metadata endpoint without any further validation. At time of publication, there are no publicly available patches.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-42345?
CVE-2026-42345 is classified as a high-severity vulnerability due to its potential for SSRF attacks.
How do I fix CVE-2026-42345?
To fix CVE-2026-42345, upgrade FastGPT to version 4.14.12 or later, where the vulnerability is addressed.
What type of vulnerability is CVE-2026-42345?
CVE-2026-42345 is an SSRF (Server-Side Request Forgery) vulnerability.
Which versions of FastGPT are affected by CVE-2026-42345?
FastGPT versions 4.14.11 and prior are affected by CVE-2026-42345.
What impacts can CVE-2026-42345 have on systems?
CVE-2026-42345 can allow unauthorized access to internal services, potentially leading to data leaks or further exploitation.