Vulnerabilities/

Lightning Flow Scanner Vulnerable to Code Injection via Unsafe Use of `new Function()` in APIVersion Rule

Severity:
High

Description

The APIVersion rule uses new Function() to evaluate expression strings. A malicious crafted flow metadata file can cause arbitrary JavaScript execution during scanning. An attacker could execute arbitrary JavaScript during a scan by supplying a malicious expression within rule configuration or crafted flow metadata.

Recommendation

Update the lightning-flow-scanner package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
lightning-flow-scanner
Anything's wrong? Let us know Last updated on December 20, 2025