{"id":"CVE-2026-44287","aliases":["CVE-2026-44287"],"related":[],"kind":"vulnerability","state":"published","title":"FastGPT: sandbox escape to RCE - code-sandbox regex /\\bimport\\s*\\(/ is bypassable","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"FastGPT es una plataforma de creación de agentes de IA. Antes de 4.15.0-beta1, el worker de JavaScript del sandbox en projects/code-sandbox/src/pool/worker.ts:356 bloquea la importación dinámica import() con la expresión regular /\\bimport\\s*\\(/.test(code). La sintaxis de JavaScript acepta un comentario de bloque entre import y (; la expresión regular solo coincide con espacios en blanco ASCII, y los bytes /, *, *, / no están en la clase de caracteres \\s. La carga útil import/**/(\"child_process\") se analiza como una importación dinámica sintácticamente válida que la expresión regular no detecta. Debido a que import() no está envuelto por el Proxy safeRequire (que solo proxyfica require), el atacante carga child_process y llama a execSync - ejecución de comandos arbitrarios como uid=100(sandbox) dentro del contenedor del sandbox. Esta vulnerabilidad está corregida en 4.15.0-beta1.","source":"nvd"}],"published":"2026-05-29T19:33:53.500Z","modified":"2026-07-22T06:10:00.170Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-94","CWE-184"],"affected":[{"ranges":[{"version":"< 4.15.0-beta1","status":"affected"}],"vendor":"labring","product":"FastGPT","source":"cvelist"}],"references":[{"url":"https://github.com/labring/FastGPT/security/advisories/GHSA-f5mq-qxm4-5mvc","tags":["exploit","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-06-01T13:53:29.529Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-44287","url":"https://www.cve.org/CVERecord?id=CVE-2026-44287","licence":"CVE Terms of Use","modified":"2026-06-01T13:53:52.216Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-44287","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-44287","licence":"Public domain","modified":"2026-07-22T06:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:23.361Z","epss":{"score":0.00239,"percentile":0.16043,"date":"2026-12-01T12:00:22.000Z"}}