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.
- Exploited
- No known exploitation
- Fix
- Fixed in 4.0.3
- Who is exposed
- Specific setups only
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
Original 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.
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.
“Symfony Stimulus Bridge versions <4.0.3 are affected by this security issue.”
What to do
Check whether your setup matches what the bug needs.
@symfony/stimulus-bridge versions below 4.0.3 Runs during a Webpack or Symfony Encore buildUpgrade to a fixed version: 4.0.3.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
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"}.Affected versions
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure5/25Specific setups only
- Reach10/20Affects npm packages
- Severity7.3/10CVSS 7.3
- No patch0/5No signal
What would change the score
- Would score about 72 if added to CISA KEV
- Would score about 67 if CISA's SSVC rates exploitation active
- Would score about 32 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now
Evidence 6
| Kind | Source |
|---|---|
| Vendor advisory 2Establishes: Affected and fixed versions. | |
| Advisory | symfony.com · cve-2026-133780 |
| Advisory | GitHub · symfony/stimulus-bridge · Advisory GHSA-hjg4-f74q-4w7h |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-133780 |
| Record | NVD · CVE-2026-133780 |
| Public exploit code 1Establishes: Public exploit code exists (Exploit-DB, Metasploit, Nuclei and GitHub). | |
| Exploit | GitHub · googlesky/CVE-2026-133780 · Repository |
| Other links 1 | |
| Patch | GitHub · symfony/stimulus-bridge · Commit 25f1ff0b |
Questions about CVE-2026-133780
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: cve.now feed data
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: symfony.com
Which versions are affected by CVE-2026-133780?
@symfony/stimulus-bridge (npm): before 4.0.3.
Source: cve.now feed data
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: symfony.com
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: symfony.com
Related
- CVE-2026-133781Build-time Code Execution in @symfony/stimulus-bridge via a Controller Package That Maps Its package.json to a Script
- CVE-2026-49211Symfony UX: Information exposure via unescaped LIKE wildcards in EntitySearchUtil
- CVE-2026-49208Symfony UX: Format-less date LiveProps parsed with the permissive DateTime constructor
- CVE-2026-49212Symfony UX: LiveComponentHydrator HMAC checksum lacks component and slot binding
- CVE-2026-46644symfony/polyfill-intl-idn accepts xn-- labels whose Punycode payload decodes to ASCII-only: insecure equivalence
- CVE-2026-133778Live Components Configured With a Custom Route Can Still Be Reached Through the Default Route
No corrections so far. Something wrong on this page? Report an error.