Skip to main content
VulnerabilityPublished

CVE-2026-25641: nyariv SandboxJS · Time-of-check Time-of-use (TOCTOU) Race Condition

Affects nyariv SandboxJSSource CVE Database V5

0

Not known to be exploited · CVSS 10.0 Critical : upgrade to 0.8.29 as a priority.

Data as of 26 Oct 2026, 12:29 UTC

CVSS 3.1 base score
10.0Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 44% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.8.29
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 6 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade SandboxJS and nyariv/sandboxjs to 0.8.29.

Affected software

ProductAffectedFixed in
nyarivSandboxJSAffected
  • <0.8.29
Fixed in
  • 0.8.29
npmnyariv/sandboxjspkg:npm/nyariv/sandboxjsOther threatsAffected
  • <0.8.29
Fixed in
  • 0.8.29

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

The primary mitigation is to upgrade all instances of SandboxJS to version 0.8.29 or later, where the vulnerability is patched. Organizations should conduct an inventory of their software dependencies to identify any use of vulnerable SandboxJS versions. In addition to patching, developers should review sandbox implementation configurations to ensure strict type enforcement on keys and validate inputs rigorously. Employ runtime monitoring and anomaly detection to identify suspicious behavior indicative of sandbox escape attempts. Where possible, implement defense-in-depth by isolating sandboxed environments at the OS or container level to limit potential damage from escapes. Regularly update and audit third-party libraries and dependencies to prevent similar vulnerabilities. Finally, educate development teams about TOCTOU race conditions and secure coding practices to reduce the risk of introducing such flaws.

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.

References

Community reviews

Loading reviews…