cvelo
P2 · HighCVSS 7.3EPSS 0.2%

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

  • CVE-2026-133781
  • EUVD-2026-133731

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.

Text from the CVE.org record.

Recommendation

  • Symfony @symfony/stimulus-bridge

    • If you run a version before 4.0.3update to 4.0.3 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Symfony @symfony/stimulus-bridge

    Affected versionsFixed in
    before 4.0.34.0.3

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.