Bug 2582916 (CVE-2026-133781) - CVE-2026-133781 stimulus-bridge: stimulus-bridge: Arbitrary code execution via unsafe package loading during builds
Summary: CVE-2026-133781 stimulus-bridge: stimulus-bridge: Arbitrary code execution vi...
Keywords:
Status: NEW
Alias: CVE-2026-133781
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-24 08:51 UTC by OSIDB Bzimport
Modified: 2026-11-24 12:59 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-24 08:51:30 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.