mgilangjanuar/agentify

Run the JS function in the isolated VM — or, build a safe eval function

Open

#1 opened on Jul 11, 2024

View on GitHub
 (1 comment) (0 reactions) (1 assignee)TypeScript (4 forks)github user discovery
help wanted

Repository metrics

Stars
 (52 stars)
PR merge metrics
 (PR metrics pending)

Description

Problem:

There's a vuln in the agentify-script which uses the eval function and can run anything from user code.

Expectation:

Need a dependency like isolated-vm but can include global native JS functions/objects such as: fetch, btoa, URL.searchParams, Buffer, JSON, etc.

Contributor guide