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

Published May 29, 2026
·
Updated

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

1 affected component
FastGPT FastGPT<4.15.0-beta1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade FastGPT (code-sandbox) JavaScript sandbox worker to a version that resolves this vulnerability.

    Fixed in 4.15.0-beta1
  2. 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

May 29, 2026
CVE Published
via MITRE·07:33 PM
Data Sourced
via MITRE·07:33 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-44287?

The severity of CVE-2026-44287 is classified as medium with a score of 6.3.

2

How do I fix CVE-2026-44287?

To fix CVE-2026-44287, update FastGPT to version 4.15.0-beta1 or later.

3

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.

4

What systems are affected by CVE-2026-44287?

CVE-2026-44287 affects FastGPT versions prior to 4.15.0-beta1.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203