Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 95%

CVE-2026-42344: CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition in labring FastGPT

0
Medium
VulnerabilityCVE-2026-42344cvecve-2026-42344cwe-367
Published: 05/08/2026 (05/08/2026, 22:10:00 UTC)
Source: CVE Database V5
Vendor/Project: labring
Product: 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

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N

Affected software

GitHub Actionsmore threats →ai
labring/FastGPT
pkg:github/labring/FastGPT
Affected versions
<=4.14.11

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/16/2026, 10:51:11 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses