vm2 before 3.11.7 Module Allowlist Bypass via Custom Resolver
patriksimek vm2
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| vm2 npm |
|
|
Original description
vm2 before 3.11.7 contains an incorrect authorization vulnerability in the external package allowlist check that uses non-exact substring matching instead of full package-name boundary validation. Attackers can bypass the allowlist by requiring a colliding package name that contains an allowlisted package substring, causing vm2 to load and execute unauthorized host packages in the host context.
From the CVE record · VulnCheck