# 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 (CVSS:4.0, scored by Symfony) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-11-24T08:41:50.479Z
- Modified: 2026-11-25T20:18:35.917Z
- Weaknesses: CWE-829
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- @symfony/stimulus-bridge: before 4.0.3

## References

- <https://symfony.com/cve-2026-133781> (vendor-advisory)
- <https://github.com/symfony/stimulus-bridge/security/advisories/GHSA-6rch-xhq6-7x8r> (vendor-advisory)
- <https://github.com/symfony/stimulus-bridge/commit/1125c5c29dce467415a3d2663e682fbb9d9ab424> (patch)

## Sources

- CVE List: [CVE-2026-133781](https://www.cve.org/CVERecord?id=CVE-2026-133781), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-133781](https://nvd.nist.gov/vuln/detail/CVE-2026-133781), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-133781 · Whole record: https://cve.day/CVE-2026-133781.json · Rebuilt by cve.day 2026-11-25T23:18:37.887Z
