All vulnerabilities

npm

CVE-2026-133780

@symfony/stimulus-bridge lazy-controller-loader: arbitrary code execution via unsanitized Stimulus magic comments

Severity
High 7.3
Published
24 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Fixed in
4.0.3
Exploit chance
0.2% in the next 30 daysHigher than 9% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Code injection (CWE-94)
Attack
Needs local access · Only under certain conditions · No login needed · Needs someone to view a page or file
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Sources
CVE Program

Description

The @symfony/stimulus-bridge npm package includes a Webpack loader called lazy-controller-loader that supports "magic comments" placed above a Stimulus controller import, for example /* stimulusFetch: 'lazy' /, to control lazy loading behavior. To read those options, the loader extracted the raw text of any stimulus comment and evaluated it as JavaScript using Node's vm.runInNewContext(). The Node.js node:vm module is not a security sandbox, and a crafted comment can break out of the VM context using well-known techniques to run arbitrary Node.js code within the build process.

This is a build-time vulnerability: it does not affect browsers or end users. The code executes on the developer machine or CI/build server during a Webpack or Symfony Encore build. Realistic attack vectors include a malicious Stimulus controller introduced through a compromised dependency, or a pull request that triggers an automated CI build.

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
@symfony/stimulus-bridgenpm · osv:npm:@symfony/stimulus-bridge
  • Every version before 4.0.3

About @symfony/stimulus-bridge

Weekly downloads (npm)
164,689npm, 24 Nov 2026

Vulnerabilities in @symfony/stimulus-bridge

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
2
Known exploited
0
Search the list for @symfony/stimulus-bridge

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-133780