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…

CVE-2026-44287: CWE-94: Improper Control of Generation of Code ('Code Injection') in labring FastGPT

0
Medium
VulnerabilityCVE-2026-44287gcvecve-2026-44287cwe-94cwe-184
Published: Fri May 29 2026 (05/29/2026, 19:33:53 UTC)
Source: GCVE Database
Vendor/Project: labring
Product: FastGPT

Description

CVE-2026-44287 is a code injection vulnerability in labring FastGPT versions prior to 4. 15. 0-beta1. The issue arises because the JavaScript sandbox worker uses a regex to block dynamic import() calls, but the regex fails to detect syntactically valid dynamic imports that include block comments, such as import/**/("child_process"). This allows an attacker to bypass the filter, load the child_process module, and execute arbitrary commands inside the sandbox container with limited privileges. The vulnerability is fixed in version 4. 15. 0-beta1.

CVSS v3.1

Score 6.3medium

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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/29/2026, 21:03:02 UTC

Technical Analysis

FastGPT's JavaScript sandbox worker attempts to block dynamic import() calls using a regex that only matches ASCII whitespace between 'import' and '('. However, JavaScript syntax permits block comments in this position, which the regex does not account for. An attacker can craft a payload like import/**/("child_process") that is syntactically valid but bypasses the regex filter. Since dynamic import() calls are not wrapped by the safeRequire Proxy (which only proxies require calls), this allows loading the child_process module and executing commands via execSync within the sandbox container running as uid=100. This vulnerability enables arbitrary command execution within the sandbox environment. The issue is resolved in FastGPT version 4.15.0-beta1.

Potential Impact

An attacker exploiting this vulnerability can execute arbitrary commands inside the sandbox container with uid=100 privileges by bypassing the dynamic import() filter and loading the child_process module. This can lead to unauthorized code execution and potential compromise of the sandbox environment. The CVSS score is 6.3 (medium severity), reflecting network attack vector, low complexity, requiring low privileges, no user interaction, and impacts on confidentiality, integrity, and availability.

Mitigation Recommendations

This vulnerability is fixed in FastGPT version 4.15.0-beta1. Users should upgrade to version 4.15.0-beta1 or later to remediate this issue. No other official remediation or temporary fixes are documented. Patch status is not explicitly stated beyond the fix in 4.15.0-beta1; therefore, verify the vendor advisory for the latest remediation guidance.

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-05-05T17:39:31.112Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null
Gcve Source
db.gcve.eu

Threat ID: 6a19feb1e29bf47b500fc26f

Added to database: 5/29/2026, 9:01:37 PM

Last enriched: 5/29/2026, 9:03:02 PM

Last updated: 5/29/2026, 9:03:19 PM

Views: 1

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