CVE-2026-133781
published high CVSS 4.0 · 7.3Build-time Code Execution in @symfony/stimulus-bridge via a Controller Package That Maps Its package.json to a Script
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Symfony | — | @symfony/stimulus-bridge0 to < 4.0.3 · Other versions: unaffected | Affected | Not stated | Symfony |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- Symfony · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Symfony | @symfony/stimulus-bridge | 0 to < 4.0.3 (affected · semver)Default: unaffected | Symfony · cna |
Weaknesses
1- CWE-829 CWE-829 Inclusion of Functionality from Untrusted Control Sphere
References
3- https://github.com/symfony/stimulus-bridge/commit/1125c5c29dce467415a3d2663e682fbb9d9ab424
- GHSA-6rch-xhq6-7x8r https://github.com/symfony/stimulus-bridge/security/advisories/GHSA-6rch-xhq6-7x8r
- CVE-2026-133781 https://symfony.com/cve-2026-133781
Provider assertions
2Symfony · cna
Build-time Code Execution in @symfony/stimulus-bridge via a Controller Package That Maps Its package.json to a Script
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7bb61d3de3e7f124978a74bd3fbcd7797a295f6c9d800bdc84cb830858146df9
- Ingested
- 25 Nov 2026, 19:27:30 UTC
- Source record
- Official CVE record