← Vulnerability feed

Vulnerability record · CVE-2026-25641 · published 6 February 2026

CVE-2026-25641: Nyariv sandboxjs toctou race condition vulnerability

NNyariv · Sandboxjs

SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, there is a sandbox escape vulnerability due to a mismatch between the key on which the validation is performed and the key used for accessing properties. Even though the key used in property accesses is annotated as string, this is never enforced. So, attackers can pass malicious objects that coerce to different string values when used, e.g., one for the time the key is sanitized using hasOwnProperty(key) and a different one for when the key is used for the actual property access. This vulnerability is fixed in 0.8.29.

9.0 CVSS 3.1 Critical EPSS 0.54% · top 57.0% CWE-367 · TOCTOU race condition
9.0CVSS 3.1 base score
0.54%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, there is a sandbox escape vulnerability due to a mismatch between the key on which the validation is performed and the key used for accessing properties. Even though the key used in property accesses is annotated as string, this is never enforced. So, attackers can pass malicious objects that coerce to different string values when used, e.g., one for the time the key is sanitized using hasOwnProperty(key) and a different one for when the key is used for the actual property access. This vulnerability is fixed in 0.8.29.

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2026-25641 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2026-43898Nyariv sandboxjs code injection vulnerabilitySandboxJS is a JavaScript sandboxing library. Prior to 0.9.6, sandbox-defined functions expose Function.caller, allowing sandboxed code to recover th…EPSS 0.63%10.0CVE-2026-34208Nyariv sandboxjs mass assignment vulnerabilitySandboxJS is a JavaScript sandboxing library. Prior to 0.8.36, SandboxJS blocks direct assignment to global objects (for example Math.random = ...), …EPSS 0.60%10.0CVE-2026-26954Nyariv sandboxjs code injection vulnerabilitySandboxJS is a JavaScript sandboxing library. Prior to 0.8.34, it is possible to obtain arrays containing Function, which allows escaping the sandbox…EPSS 0.60%10.0CVE-2026-25881Nyariv sandboxjs prototype pollution vulnerabilitySandboxJS is a JavaScript sandboxing library. Prior to 0.8.31, a sandbox escape vulnerability allows sandboxed code to mutate host built-in prototype…EPSS 0.64%10.0CVE-2026-25520Nyariv sandboxjs injection vulnerabilitySandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, The return values of functions aren't wrapped. Object.values/Object.entries can be use…EPSS 0.81%10.0CVE-2026-25586Nyariv sandboxjs injection vulnerabilitySandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, a sandbox escape is possible by shadowing hasOwnProperty on a sandbox object, which di…EPSS 0.67%10.0CVE-2026-25587Nyariv sandboxjs code injection vulnerabilitySandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, as Map is in SAFE_PROTOYPES, it's prototype can be obtained via Map.prototype. By over…EPSS 0.67%10.0CVE-2026-25142Nyariv sandboxjs code injection vulnerabilitySandboxJS is a JavaScript sandboxing library. Prior to 0.8.27, SanboxJS does not properly restrict __lookupGetter__ which can be used to obtain proto…EPSS 1.1%

Source: NIST National Vulnerability Database (record CVE-2026-25641), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.