home / blog
2026-11-24 · high
CVE-2026-133780: Code execution in @symfony/stimulus-bridge
High severity npm package: arbitrary code execution via magic comments in Stimulus controllers during build.

CVE-2026-133780 concerns the @symfony/stimulus-bridge npm package, specifically its lazy-controller-loader. The issue lies in the evaluation of "magic comments" like /* stimulusFetch: 'lazy' */ using Node's vm.runInNewContext(), which is not a secure sandbox and allows arbitrary JavaScript code execution during the build process.
The vulnerability severity is classified as high with a CVSS score of 7.3. It was officially published on November 24, 2026, on the National Vulnerability Database (NVD). There are reports on GitHub confirming the existence of public exploits. Realistic attack vectors include compromised dependencies or pull requests triggering automated builds.
For defense, organizations should immediately update the @symfony/stimulus-bridge package to the patched version that uses a JavaScript parser to parse comments as object expressions, extracting only literal values and rejecting any non-literal value. It is also crucial to verify build pipelines for exposed secrets and implement security controls on PRs to prevent the introduction of malicious code.
At a glance
- What
- Vulnerability in @symfony/stimulus-bridge lazy-controller-loader executing arbitrary code from magic comments
- Severity
- High (CVSS 7.3)
- Affected versions
- Not reported
- Fix
- Package updated to use JavaScript parser instead of vm.runInNewContext
- Status
- Published 11/24/2026, patch available
- Action
- Update package to patched version and verify build pipeline
Sources: NVD, CVE-2026-133780