Flow-Scanner lightning-flow-scanner
Lightning Flow Scanner is Vulnerable to Code Injection via Unsafe Use of new Function() in APIVersion Rule
Lightning Flow Scanner provides a A CLI plugin, VS Code Extension and GitHub Action for analysis and optimization of Salesforce Flows. Versions 6.10.5 and below allow a maliciously crafted flow metadata file to cause arbitrary JavaScript execution during scanning. The APIVersion rule uses new Function() to evaluate expression strings, enabling an attacker to supply a malicious expression within rule configuration or crafted flow metadata. This could compromise developer machines, CI runners, or editor environments. This issue is fixed in version 6.10.6.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 6.10.6
Fixed in 6.10.6
Mitigation
Upgrade lightning-flow-scanner to 6.10.6 or later.
References
- Vendor advisory github.com/Flow-Scanner/lightning-flow-scanner…
- Patch github.com/Flow-Scanner/lightning-flow-scanner…
- Release notes github.com/Flow-Scanner/lightning-flow-scanner…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.