Skip to content

replace VM2 #6

Description

@poef

VM2 is known insecure, I should probably switch to v8-isolate or QuickJS.

However, do we even really need it? Since all queries are run inside a worker thread, can we isolate that well enough?

TODO: figure out what globals are available in a worker thread in node, see if we can limit access to them, or remove them before running untrusted code.

See also: https://stackoverflow.com/questions/5408406/web-workers-without-a-separate-javascript-file?rq=1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions