CVE-2026-133781: Build-time Code Execution in @symfony/stimulus-bridge via a Controller Package That Maps Its package.json to a Script

Published Nov 24, 2026
·
Updated

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

1 affected component
npm/@symfony/stimulus-bridge

Event History

Nov 24, 2026
CVE Published
via MITRE·08:41 AM
Data Sourced
via MITRE·08:41 AM
DescriptionWeakness
Data Sourced
via NVD·09:17 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Developer workstations and CI servers that run Webpack or Symfony Encore builds using @symfony/stimulus-bridge are exposed when controllers.json lists a malicious or compromised controller package. Browsers and end users are not directly affected.

2

What must an attacker control to exploit it?

The attacker needs a package listed in controllers.json whose exports field maps ./package.json to executable JavaScript. When the build loader requires that path, Node executes the mapped script.

3

Does disabling package-manager install scripts prevent exploitation?

No. The described execution occurs during the Webpack or Symfony Encore build when the loader resolves and requires the controller package's package.json path, independently of package-manager install scripts.

4

What could malicious build-time code access or change?

It can read files and environment variables available to the build, including CI secrets, and modify the generated build assets.

5

How does the corrected behavior prevent execution?

The loader reads the resolved file and parses it as JSON rather than requiring it. A package that maps ./package.json to a script therefore fails JSON parsing instead of executing the script.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203