# GHSA-22rr-f3p8-5gf8: Directus affected by VM2 sandbox escape vulnerability

- Severity: High 7.6 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-09-15T17:12:42.000Z
- Modified: 2023-09-15T17:12:42.000Z

## Description

### Impact
In vm2 for versions up to 3.9.19, Promise handler sanitization can be bypassed, allowing attackers to escape the sandbox and run arbitrary code. Within Directus this applies to the "Run Script" operation in flows being able to escape the sandbox running code in the main nodejs context.

### Patches
Patched in v10.6.0 by replacing `vm2` with `isolated-vm`

### Workarounds
None

### References
https://github.com/patriksimek/vm2/security/advisories/GHSA-cchq-frgv-rjh5

(As written by GitHub Advisory Database.)

## Affected

- directus (npm): before 10.6.0

## References

- <https://github.com/directus/directus/security/advisories/GHSA-22rr-f3p8-5gf8> (web)
- <https://github.com/patriksimek/vm2/security/advisories/GHSA-cchq-frgv-rjh5> (web)
- <https://github.com/directus/directus/pull/19332> (web)
- <https://github.com/directus/directus/commit/284156426fa94f688e8d65a7a4f34f9e6705f058> (web)
- <https://github.com/directus/directus> (package)

## Sources

- GitHub Advisory Database: [GHSA-22rr-f3p8-5gf8](https://github.com/advisories/GHSA-22rr-f3p8-5gf8), CC-BY-4.0, modified 2023-09-15

---

Page: https://cve.day/GHSA-22rr-f3p8-5gf8 · Whole record: https://cve.day/GHSA-22rr-f3p8-5gf8.json · Rebuilt by cve.day 2026-11-25T22:56:43.537Z
