CVE-2026-32304: Js Function Constructor Non Literal Body

The JavaScript `Function` constructor compiles and executes its last argument as a function body in the global scope, equivalent to `eval`. Passing a non-literal code body (variable, parameter, or interpolated string) is a code-injection sink (CWE-94). If any caller can influence the body, this yields arbitrary code execution; on Node.js, `require` is reacha

Provally CuratedPublic repositoryHighHigh confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-32304-js-function-constructor-non-literal-body --engine opengrep

Description

The JavaScript `Function` constructor compiles and executes its last argument as a function body in the global scope, equivalent to `eval`. Passing a non-literal code body (variable, parameter, or interpolated string) is a code-injection sink (CWE-94). If any caller can influence the body, this yields arbitrary code execution; on Node.js, `require` is reacha