Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-133781: high-severity vulnerability (CVSS 7.3) in Symfony @symfony/stimulus-bridge.
What happened
Original description from the source: 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.
Why it matters
High severity, CVSS 7.3.
Affected products and versions
Symfony @symfony/stimulus-bridge < 4.0.3
| Product | Versions | Fixed in |
|---|---|---|
| Symfony @symfony/stimulus-bridge | < 4.0.3 | — |
Action recommended by the source
See the official references for the fix or mitigation.
Sources and references
- https://symfony.com/cve-2026-133781 — CVE Program
- https://github.com/symfony/stimulus-bridge/security/advisories/GHSA-6rch-xhq6-7x8r — CVE Program
- https://github.com/symfony/stimulus-bridge/commit/1125c5c29dce467415a3d2663e682fbb9d9ab424 — CVE Program
Weaknesses (CWE): CWE-829
Relevant change history
Published
Preliminary advisory published.