Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-44287— FastGPT: sandbox escape to RCE - code-sandbox regex /\bimport\s*\(/ is bypassable

Quick assessment

Affected
labring FastGPT
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

FastGPT是labring开源的一款基于大语言模型的开源知识库问答系统。 FastGPT 4.15.0-beta1之前版本存在安全漏洞,该漏洞源于JavaScript沙箱工作器使用正则表达式/imports(/测试动态import(),但JavaScript语法允许在import和(之间使用块注释,导致有效载荷import//(child_process )绕过检测并执行任意命令。

CVSS 6.3 · Medium EPSS 0.24% · P15

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 1

VendorProduct Version RangeStatus
labring FastGPT < 4.15.0-beta1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-44287

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
FastGPT: sandbox escape to RCE - code-sandbox regex /\bimport\s*\(/ is bypassable
Source: CVE Program / CVE List V5
Vulnerability Description
FastGPT is an AI Agent building platform. Prior to 4.15.0-beta1, the JavaScript sandbox worker at projects/code-sandbox/src/pool/worker.ts:356 blocks dynamic import() with the regex /\bimport\s*\(/.test(code). JavaScript syntax accepts a block comment between import and (; the regex matches only ASCII whitespace, and the bytes /, *, *, / are not in the \s character class. The payload import/**/("child_process") parses as a syntactically valid dynamic import that the regex does not detect. Because import() is not wrapped by the safeRequire Proxy (which only proxies require), the attacker loads child_process and calls execSync - arbitrary command execution as uid=100(sandbox) inside the sandbox container. This vulnerability is fixed in 4.15.0-beta1.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5
Vulnerability Title
FastGPT 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
FastGPT是labring开源的一款基于大语言模型的开源知识库问答系统。 FastGPT 4.15.0-beta1之前版本存在安全漏洞,该漏洞源于JavaScript沙箱工作器使用正则表达式/imports*(/测试动态import(),但JavaScript语法允许在import和(之间使用块注释,导致有效载荷import/**/(child_process )绕过检测并执行任意命令。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
labring FastGPT < 4.15.0-beta1 -

II. Public POCs for CVE-2026-44287

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-44287

登录查看更多情报信息。

Vendor Advisories for CVE-2026-44287 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-44287

No comments yet


Leave a comment