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

Status: published. Published: 2026-11-24. Updated: 2026-11-24.

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.

## Remediation

- fix: The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches. (source: CNA: Symfony) — https://github.com/symfony/stimulus-bridge/commit/1125c5c29dce467415a3d2663e682fbb9d9ab424

## Affected products and versions

- Symfony / @symfony/stimulus-bridge (@symfony/stimulus-bridge): ≥ 0; < 4.0.3 (affected, semver). Source: CNA: Symfony

## Severity and prioritization

- CVSS 4.0: 7.3 (high); 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; source: CNA: Symfony

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-829

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://symfony.com/cve-2026-133781 (CNA: Symfony; vendor-advisory)

- https://github.com/symfony/stimulus-bridge/security/advisories/GHSA-6rch-xhq6-7x8r (CNA: Symfony; vendor-advisory)

- https://github.com/symfony/stimulus-bridge/commit/1125c5c29dce467415a3d2663e682fbb9d9ab424 (CNA: Symfony; patch)

## Provenance

- CNA: Symfony: https://www.cve.org/CVERecord?id=CVE-2026-133781; retrieved 2026-11-24; source updated 2026-11-24

Revision: 7ba1713b8f0cf5608e4f12f9a66799db302d2bf035ded59287ea123f1bbb27c0

Canonical: https://y2.dev/cve/CVE-2026-133781

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.