CVE-2026-42344: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in labring FastGPT
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.
AI Analysis
Technical Summary
FastGPT's isInternalAddress() function resolves hostnames using dns.resolve4() and dns.resolve6() to verify if the IP addresses belong to private ranges. However, the actual HTTP request uses a separate DNS resolution, creating a window where the DNS record can change between the check and the request. This TOCTOU race condition allows DNS rebinding attacks that can circumvent internal address validation. The vulnerability affects FastGPT versions up to 4.14.11. There is no vendor advisory or patch available yet.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to bypass internal address checks by manipulating DNS responses between the validation and the actual HTTP request. This could lead to unauthorized access to internal network resources or services that are intended to be protected by the internal address validation. The CVSS score of 6.3 reflects a medium severity with high confidentiality impact but no impact on integrity or availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should consider mitigating DNS rebinding risks by implementing network-level protections such as DNS filtering or restricting DNS responses, and reviewing internal address validation logic to avoid separate DNS resolutions between check and use. Monitor vendor channels for updates and official patches.
CVE-2026-42344: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in labring FastGPT
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.
CVSS v3.1
Score 6.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
FastGPT's isInternalAddress() function resolves hostnames using dns.resolve4() and dns.resolve6() to verify if the IP addresses belong to private ranges. However, the actual HTTP request uses a separate DNS resolution, creating a window where the DNS record can change between the check and the request. This TOCTOU race condition allows DNS rebinding attacks that can circumvent internal address validation. The vulnerability affects FastGPT versions up to 4.14.11. There is no vendor advisory or patch available yet.
Potential Impact
Successful exploitation of this vulnerability could allow an attacker to bypass internal address checks by manipulating DNS responses between the validation and the actual HTTP request. This could lead to unauthorized access to internal network resources or services that are intended to be protected by the internal address validation. The CVSS score of 6.3 reflects a medium severity with high confidentiality impact but no impact on integrity or availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should consider mitigating DNS rebinding risks by implementing network-level protections such as DNS filtering or restricting DNS responses, and reviewing internal address validation logic to avoid separate DNS resolutions between check and use. Monitor vendor channels for updates and official patches.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-26T13:26:14.515Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fe61e5cbff5d8610367fb2
Added to database: 05/08/2026, 22:21:25 UTC
Last enriched: 05/16/2026, 10:51:11 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 93
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.