npm
CVE-2026-133781
Build-time Code Execution in @symfony/stimulus-bridge via a Controller Package That Maps Its package.json to a Script
- 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 7% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- CWE-829
- 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 controllers.json loader of @symfony/stimulus-bridge loads the package.json file of each package listed in controllers.json with require(). Node resolves this path through the exports field of the package, which can map ./package.json to a script. require() then runs that script during the Webpack or Symfony Encore build.
This is a build-time vulnerability: it doesn't affect browsers or end users. A malicious or compromised package listed in controllers.json can run code on the developer machine or the CI server. This works even when the package manager doesn't run install scripts. This code can read the files and environment variables of the build, like CI secrets, and change the built assets.
The loader now reads the resolved file and parses it as JSON, so that a mapped script fails to parse instead of running.
Affected software
| Software | Affected versions |
|---|---|
@symfony/stimulus-bridgenpm · osv:npm:@symfony/stimulus-bridge |
|
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
- CVE-2026-133780@symfony/stimulus-bridge lazy-controller-loader: arbitrary code execution via unsanitized Stimulus magic commentsHigh 7.3 24 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-133781