{"id":"CVE-2026-44287","published":"2026-05-29T19:33:53Z","modified":"2026-06-01T13:53:52Z","title":"FastGPT: sandbox escape to RCE - code-sandbox regex /\\bimport\\s*\\(/ is bypassable","vendor":"labring","product":"FastGPT","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00427,"percentile":0.28627,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"}],"references":[{"url":"https://github.com/labring/FastGPT/security/advisories/GHSA-f5mq-qxm4-5mvc","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.1,"factors":[{"name":"EPSS percentile","points":5.73},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"labring","affectedVersions":[{"vendor":"labring","product":"FastGPT","versions":["< 4.15.0-beta1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-01T13:53:29.529997Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-33431","exploited":false,"provenance":"source"}}