diff --git a/README.md b/README.md index 491e6ba5..8674a7bc 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ Zen will autonomously protect your Node.js applications against: * 🛡️ [Prototype pollution](./docs/prototype-pollution.md) * 🛡️ [Path traversal attacks](https://owasp.org/www-community/attacks/Path_Traversal) * 🛡️ [Server-side request forgery (SSRF)](./docs/ssrf.md) +* 🛡️ JS injection Zen operates autonomously on the same server as your Node.js app to: diff --git a/library/agent/protect.ts b/library/agent/protect.ts index e227a127..c045e57c 100644 --- a/library/agent/protect.ts +++ b/library/agent/protect.ts @@ -48,6 +48,7 @@ import { Fastify } from "../sources/Fastify"; import { Koa } from "../sources/Koa"; import { ClickHouse } from "../sinks/ClickHouse"; import { Eval } from "../sinks/Eval"; +import { Function } from "../sinks/Function"; function getLogger(): Logger { if (isDebugging()) { @@ -138,6 +139,7 @@ export function getWrappers() { new Koa(), new ClickHouse(), new Eval(), + new Function(), ]; }