Skip to main content

Time-of-check Time-of-use (TOCTOU) Race Condition

CVE-2026-25641

Severity High
Score 9/10

Summary

A sandbox escape vulnerabilities due to a mismatch between the key on which the validation is performed and the key used for accessing properties. This may lead to Remote Code Execution, if attacker can execute code inside the sandbox. This vulnerability affects @nyariv/sandboxjs versions prior to 0.8.29.

  • HIGH
  • NETWORK
  • HIGH
  • CHANGED
  • NONE
  • NONE
  • HIGH
  • HIGH

CWE-367 - Time-of-check Time-of-use (TOCTOU) Race Condition

The software checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. This can cause the software to perform invalid actions when the resource is in an unexpected state.

References

Advisory Timeline

  • Published