Skip to content

Security: Avarok-Cybersecurity/vortex

Security

SECURITY.md

Security Policy

Supported versions

Security fixes land on the default branch and ship in the next patch release of the latest minor version.

Version Supported
0.1.x (latest) yes
default branch yes
anything else no

Reporting a vulnerability

Please report privately, not in a public issue: open a private security advisory at https://github.com/Avarok-Cybersecurity/vortex/security/advisories/new.

Include the vortex commit, the Node.js version and platform, the pool options, a minimal worker file and main script that reproduce the problem, and what you observed (a crash, a hang, a task delivered twice or to the wrong caller, a result from another task, memory growth, a worker that outlives destroy()). A reproducer is worth more than a description.

Expect an acknowledgement within a few days. Fixes are developed privately and disclosed alongside the patched commit or release, with credit to the reporter unless you prefer otherwise.

Threat model

vortex is an in-process library. It runs worker files that the application names, in threads of the application's own process, with the application's privileges. It opens no sockets, reads no files of its own beyond its .wasm core and the worker files it is given, and spawns no processes.

In scope — the pool must not, whatever the tasks do:

  • deliver a task's result to another task's caller, or deliver a result twice;
  • lose a task silently: every task resolves or rejects exactly once, including when a worker dies at any point (the core's recovery protocol is model-checked with loom);
  • let one worker read or overwrite another task's argument or result in shared memory;
  • read or write outside the shared-memory region the pool allocated;
  • keep a worker or the process alive after destroy() settles.

Out of scope:

  • Code inside a worker file. A task runs with the same privileges as the application, as it does in piscina; vortex is not a sandbox and does not isolate untrusted code.
  • Denial of service by the application itself (unbounded queues it configured, tasks that never return).
  • Behaviour that matches piscina 5.3.2 and is documented as such.

Testing behind these claims

  • loom models of the park, main-wait and push handshakes (crates/vortex-core-tests/tests/loom_*.rs).
  • Native stress and lifecycle tests, including recovery of a dead worker's tasks (crates/vortex-core-tests); JS tests of exactly-once delivery when a worker with staged tasks dies (js/test/prefetch.test.mjs).
  • crates/vortex-wasm/tests-node/smoke.mjs: the wasm core in real worker_threads, results verified, no slot owned after terminate().
  • piscina 5.3.2's own suite, unmodified (compat/).

There aren't any published security advisories