CVE-2026-25520: Vulnerability in Nyariv Sandboxjs

Critical. The return values of functions aren't wrapped. Object.values/Object.entries can be used to get an Array containing the host's Function constructor, by using Array.prototype.at you can obtain the hosts Function constructor, which can be used to execute arbitrary code outside of the sandbox.

npm, CWE-74

Exploitation
None confirmed
Severity
10 of 10
Attack likelihood
Unknown
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-58jh-xv4v-pcx4
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Weakness
CWE-74
Published
5 Feb 2026
Last change
17 Jun 2026
Ecosystem
npm

Affected products

Affected versions and the first fixed release

  • Nyariv Sandboxjs Before 0.8.29. Fixed in 0.8.29

Affected packages

Vulnerable version ranges and fixed releases

  • @nyariv/sandboxjs npm, Affected through 0.8.28. Fixed in 0.8.29

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related