{"id":"CVE-2026-34217","published":"2026-04-06T15:12:52Z","modified":"2026-04-06T15:40:46Z","title":"SandboxJS has a Sandbox Escape via Prop Object Leak in New Handler","vendor":"nyariv","product":"SandboxJS","tier":"tail","description":{"text":"SandboxJS is a JavaScript sandboxing library. Prior to 0.8.36, a scope modification vulnerability exists in @nyariv/sandboxjs. The vulnerability allows untrusted sandboxed code to leak internal interpreter objects through the new operator, exposing sandbox scope objects in the scope hierarchy to untrusted code; an unexpected and undesired exploit. While this could allow modifying scopes inside the sandbox, code evaluation remains sandboxed and prototypes remain protected throughout the execution. This vulnerability is fixed in 0.8.36.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0031,"percentile":0.24307,"provenance":"source"},"cwes":[{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"}],"references":[{"url":"https://github.com/nyariv/SandboxJS/security/advisories/GHSA-hg73-4w7g-q96w","tags":["x_refsource_CONFIRM"]}],"priority":{"score":9.7,"factors":[{"name":"EPSS percentile","points":4.86},{"name":"CVSS severity","points":4.83}]},"vendorSlug":"nyariv","affectedVersions":[{"vendor":"nyariv","product":"SandboxJS","versions":["< 0.8.36"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-06T15:33:58.430676Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@nyariv/sandboxjs","vulnerableRanges":["<0.8.36"],"patched":["0.8.36"],"from":["GHSA-hg73-4w7g-q96w"],"provenance":"source"}],"summary":{"text":"SandboxJS, a JavaScript sandboxing library by nyariv, contains a flaw in its @nyariv/sandboxjs component in versions prior to 0.8.36, where the new operator leaks internal interpreter objects, exposing sandbox scope objects to untrusted code. An attacker who can run untrusted code inside the sandbox over the network, without authentication or user interaction, can modify scopes within the sandbox, though code evaluation remains sandboxed and prototypes stay protected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:47Z"},"euvd":{"id":"EUVD-2026-19301","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-nyariv-sandboxjs-cve-2026-23830","parents":[{"from":"CVE-2026-32723","to":"CVE-2026-34217","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@nyariv/sandboxjs","fromFixed":"0.8.35","toFixed":"0.8.36","daysApart":19},{"kind":"same-code","provenance":"machine","files":["src/eval.ts","src/executor.ts"],"commits":["https://github.com/nyariv/SandboxJS/commit/cc8f20b4928afed5478d5ad3d1737ef2dcfaac29","https://github.com/nyariv/SandboxJS/commit/abc02f657279e51a4aaad2bc8f99f3e37a01b287"],"basis":"shared function","functions":["_execNoneRecurse","sandboxAsyncFunction","sandboxFunction","sandboxedEval"]}]},{"from":"CVE-2026-23830","to":"CVE-2026-34217","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/SandboxExec.ts","src/eval.ts","src/utils.ts"],"commits":["https://github.com/nyariv/SandboxJS/commit/345aee6566e47979dee5c337b925b141e7f78ccd","https://github.com/nyariv/SandboxJS/commit/abc02f657279e51a4aaad2bc8f99f3e37a01b287"],"basis":"shared function","functions":["createExecContext","sandboxFunction"]}]},{"from":"CVE-2026-25142","to":"CVE-2026-34217","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/executor.ts"],"commits":["https://github.com/nyariv/SandboxJS/commit/75c8009db32e6829b0ad92ca13bf458178442bd3","https://github.com/nyariv/SandboxJS/commit/abc02f657279e51a4aaad2bc8f99f3e37a01b287"],"basis":"shared function","functions":["addOps"]}]},{"from":"CVE-2026-25881","to":"CVE-2026-34217","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/SandboxExec.ts","src/eval.ts","src/executor.ts","src/utils.ts"],"commits":["https://github.com/nyariv/SandboxJS/commit/f369f8db26649f212a6a9a2e7a1624cb2f705b53","https://github.com/nyariv/SandboxJS/commit/abc02f657279e51a4aaad2bc8f99f3e37a01b287"],"basis":"shared function","functions":["SandboxExec","_execNoneRecurse","addOps","createContext"]}]},{"from":"CVE-2026-26954","to":"CVE-2026-34217","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/executor.ts","src/utils.ts"],"commits":["https://github.com/nyariv/SandboxJS/commit/e01505b1ea49f4f13956cd12b7ce01b83d2ee085","https://github.com/nyariv/SandboxJS/commit/abc02f657279e51a4aaad2bc8f99f3e37a01b287"],"basis":"shared function","functions":["getGlobalProp"]}]}],"packageHistory":[{"cve":"CVE-2026-32723","published":"2026-03-18","fixed":"0.8.35","kev":false},{"cve":"CVE-2026-34208","published":"2026-04-06","fixed":"0.8.36","kev":false},{"cve":"CVE-2026-34211","published":"2026-04-06","fixed":"0.8.36","kev":false},{"cve":"CVE-2026-34217","published":"2026-04-06","fixed":"0.8.36","kev":false},{"cve":"CVE-2026-43898","published":"2026-05-28","fixed":"0.9.6","kev":false}],"package":"npm:@nyariv/sandboxjs"}}