{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-133781","assignerOrgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","state":"PUBLISHED","assignerShortName":"Symfony","dateReserved":"2026-11-20T14:01:43.159Z","datePublished":"2026-11-24T08:41:50.479Z","dateUpdated":"2026-11-24T08:41:50.479Z"},"containers":{"cna":{"providerMetadata":{"orgId":"b5aa5c7f-767d-4597-9c64-3ac08b8711c6","shortName":"Symfony","dateUpdated":"2026-11-24T08:41:50.479Z"},"title":"Build-time Code Execution in @symfony/stimulus-bridge via a Controller Package That Maps Its package.json to a Script","datePublic":"2026-11-24T08:37:10.000Z","descriptions":[{"lang":"en","value":"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.\n\nThis 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.\n\nThe loader now reads the resolved file and parses it as JSON, so that a mapped script fails to parse instead of running.","supportingMedia":[{"type":"text/markdown","base64":false,"value":"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.\n\nThis 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.\n\nThe loader now reads the resolved file and parses it as JSON, so that a mapped script fails to parse instead of running."}]}],"affected":[{"vendor":"Symfony","product":"@symfony/stimulus-bridge","collectionURL":"https://www.npmjs.com","packageName":"@symfony/stimulus-bridge","repo":"https://github.com/symfony/stimulus-bridge","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"4.0.3","versionType":"semver"}]}],"problemTypes":[{"descriptions":[{"lang":"en","cweId":"CWE-829","description":"CWE-829 Inclusion of Functionality from Untrusted Control Sphere","type":"CWE"}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"version":"4.0","vectorString":"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","baseScore":7.3,"baseSeverity":"HIGH"}}],"references":[{"url":"https://symfony.com/cve-2026-133781","name":"CVE-2026-133781","tags":["vendor-advisory"]},{"url":"https://github.com/symfony/stimulus-bridge/security/advisories/GHSA-6rch-xhq6-7x8r","name":"GHSA-6rch-xhq6-7x8r","tags":["vendor-advisory"]},{"url":"https://github.com/symfony/stimulus-bridge/commit/1125c5c29dce467415a3d2663e682fbb9d9ab424","tags":["patch"]}],"credits":[{"lang":"en","value":"Nicolas Grekas","type":"finder"}],"source":{"advisory":"GHSA-6rch-xhq6-7x8r","discovery":"UNKNOWN"},"x_generator":{"engine":"symfony/ghsa-to-cve"}}}}