CVE-2026-44287: FastGPT: sandbox escape to RCE - code-sandbox regex /\bimport\s*\(/ is bypassable
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//("childprocess") 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 childprocess and calls execSync - arbitrary command execution as uid=100(sandbox) inside the sandbox container. This vulnerability is fixed in 4.15.0-beta1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
FastGPT (code-sandbox) JavaScript sandbox workerto a version that resolves this vulnerability.Fixed in 4.15.0-beta1 - Upgrade
Upgrade
projects/code-sandbox/src/pool/worker.ts (dynamic import() blocking)to a version that resolves this vulnerability.Fixed in 4.15.0-beta1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-44287?
The severity of CVE-2026-44287 is classified as medium with a score of 6.3.
How do I fix CVE-2026-44287?
To fix CVE-2026-44287, update FastGPT to version 4.15.0-beta1 or later.
What type of vulnerability is CVE-2026-44287?
CVE-2026-44287 is a code injection vulnerability that allows a sandbox escape leading to remote code execution.
What systems are affected by CVE-2026-44287?
CVE-2026-44287 affects FastGPT versions prior to 4.15.0-beta1.
What is the impact of CVE-2026-44287?
The impact of CVE-2026-44287 includes the potential for an attacker to execute arbitrary code within the FastGPT environment.