Build-time Code Execution in @symfony/stimulus-bridge via a Controller Package That Maps Its package.json to a Script
- State
- Published
- Severity
- 7.3 High
- Published
- Nov 24, 2026
- Updated
- Nov 25, 2026
- Reserved
- Nov 20, 2026
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.
| Product | Versions |
|---|---|
| @symfony/stimulus-bridge Symfony | before 4.0.3 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.3 High | Symfony |
Weaknesses
- CWE-829 Inclusion of Functionality from Untrusted Control Sphere
References
- CVE-2026-133781Vendor Advisory
- GHSA-6rch-xhq6-7x8rVendor Advisory
- https://github.com/symfony/stimulus-bridge/commit/1125c5c29dce467415a3d2663e682fbb9d9ab424Patch
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.