Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit malicious controller via PR or poisoned dependency
-
DeliveryCI/Encore build processes the file
-
Exploitlazy-controller-loader evals magic comment in node:vm
-
ExecutionVM breakout runs arbitrary Node.js code
-
ImpactRead env vars and exfiltrate CI secrets
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an attacker-controlled Stimulus controller file containing a crafted stimulus* magic comment to reach a build that uses @symfony/stimulus-bridge's lazy-controller-loader on a version below 4.0.3, and that Webpack/Symfony Encore build must then be executed (typically on a developer machine or CI runner). The realistic delivery paths are a compromised npm dependency or an untrusted pull request that triggers an automated CI build. Key limiting factors: this is build-time only and does not affect browsers or end users; it requires both the malicious file to be ingested AND a build to run (reflected as UI:P/AT:P), so projects that only build trusted, reviewed code are not exposed; impact is bounded to the permissions of the build user. Full remediation is upgrading to 4.0.3, after which non-literal comment values are rejected as build errors rather than executed. |
| Impact | This is a genuine but context-bound build-time code-execution flaw (CWE-94), not an internet-facing RCE. The CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:P, VC:H/VI:H/VA:H, score 7.3) correctly reflects that exploitation is local to the build host and conditional: the attacker needs no privileges (PR:N) but a specific attack condition must hold (AT:P - a malicious controller must be present) and a build must be executed (UI:P). No EPSS score or CISA KEV status was provided in the input, and no standalone weaponized exploit is referenced, so there is no signal of widespread opportunistic exploitation; the vuln.today Decision label is 'this_week' (not act_now/emergency), consistent with a serious-but-not-fire-drill priority. The practical risk concentrates on CI/CD and developer supply-chain exposure: a poisoned dependency or an untrusted pull request that triggers an automated Encore/Webpack build can execute arbitrary Node.js code with the build user's permissions and read CI secrets. This is therefore a real priority for teams that build untrusted branches, but it is lower urgency for projects that only build fully trusted, reviewed code. One thing to verify independently: the flaw only matters for consumers who actually use lazy-controller-loader on a version below 4.0.3 - no EPSS/KEV data was supplied to gauge in-the-wild activity. |
| Exploit ScenarioDerived | An attacker opens a pull request (or compromises an npm dependency) that adds a Stimulus controller file whose magic comment contains a VM-breakout payload such as /* stimulusFetch: (this.constructor.constructor("return process")(), 'eager') */. When the project's CI pipeline runs Symfony Encore/Webpack, lazy-controller-loader passes the comment text to node:vm's runInNewContext(), the payload escapes the context, and arbitrary Node.js code runs as the build user - exfiltrating environment variables and CI secrets. No standalone public exploit is referenced in the sources, though the fix commit's regression test includes a representative breakout payload demonstrating the technique. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Build-time arbitrary code execution in Symfony Stimulus Bridge (@symfony/stimulus-bridge) versions before 4.0.3 lets an attacker who can get a crafted Stimulus controller carrying a malicious stimulus* magic comment into a Webpack or Symfony Encore build run Node.js code with the build user's permissions. The flaw is limited to the build process and does not affect browsers or end users; realistic paths are a compromised npm dependency or an untrusted pull request that triggers CI. No public exploit identified at time of analysis.
RemediationAI
Upgrade @symfony/stimulus-bridge to 4.0.3 or later; the vendor-released patch is version 4.0.3, and the fix commit is https://github.com/symfony/stimulus-bridge/commit/25f1ff0bc4b2c2aaf87bca4d67b41bbc1c25fcdc. After the upgrade, comment options are parsed as object expressions and only literal values are accepted; non-literal content such as function calls or identifiers is reported as a build error instead of being executed. Legitimate values such as 'lazy' and 'eager' continue to work without changes. Advisory references: https://github.com/symfony/stimulus-bridge/security/advisories/GHSA-hjg4-f74q-4w7h and https://symfony.com/cve-2026-133780. The supplied data does not identify a separate vendor workaround; exposure is limited to builds that ingest attacker-controlled Stimulus controller files, so projects should apply the patch to build tooling and CI runners as well as developer environments.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is the lazy-controller-loader Webpack loader shipped in the @symfony/stimulus-bridge npm package. It reads magic comments such as /* stimulusFetch: 'lazy' */ above Stimulus controller imports; in vulnerable versions it extracted the raw text of any stimulus* comment and evaluated it as JavaScript with Node's vm.runInNewContext(). Node's node:vm is not a security sandbox, so a crafted comment can break out of the VM context and execute arbitrary Node.js code during the build, corresponding to CWE-94 code injection. The vendor advisory describes build-time impact only: code runs on the developer machine or CI/build server, with effects bounded by the permissions of the build user. The fix removes vm evaluation and instead parses the comment as an object expression using a JavaScript parser, accepting only literal option values and rejecting function calls, identifiers, sequence expressions, or other non-literal values as build errors. The CPE cpe:2.3:a:symfony:@symfony/stimulus-bridge:*:*:*:*:*:*:*:* is broad, while the advisory's package range is <4.0.3 with 4.0.3 fixed.
Know when Symfony gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AV:L because the malicious controller must be present on the build host and no network service is exposed; UI:R because a build must be run; PR:N as the attacker needs no privileges; C/I/A:H for full build-process compromise.
Primary rating from Vendor (Symfony).
CVSS VectorVendor: Symfony
DescriptionCVE.org
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.
Technical POC Analysis
CWE-94 (Improper Control of Generation of Code / Code Injection) in @symfony/stimulus-bridge's Webpack loader lazy-controller-loader.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-133780 in Symfony Stimulus Bridge (@symfony/stimulus-bridge) before 4.0.3 allows arbitrary code execution during the build process, potentially compromising CI/CD pipelines and the build environment. The risk is highest for organizations that build untrusted pull requests or use third-party npm dependencies, as it could lead to supply chain compromise and unauthorized access to build infrastructure.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
FragmentListener in the HttpKernel component in Symfony 2.3.19 through 2.3.28, 2.4.9 through 2.4.10, 2.5.4 through 2.5.1
In Symfony before 2.7.51, 2.8.x before 2.8.50, 3.x before 3.4.26, 4.x before 4.1.12, and 4.2.x before 4.2.7, when servic
Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter. Rated critical sever
Insufficient verification of payment-claim state in the Sylius e-commerce platform (versions before 2.1.16 and 2.2.9) le
Incorrect authorization in the Sylius Shop API lets anyone holding an order token submit arbitrary payment actions - mos
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Rated high severity (C
Symfony versions up to 5.4.51 contains a vulnerability that allows attackers to operations being performed on an uninten
Reflected Cross-site scripting (XSS) vulnerability in the web profiler in SensioLabs Symfony 3.3.6 allows remote attacke
Symfony before 2.8.6 and 3.x before 3.0.6 allows remote attackers to bypass authentication by logging in with an empty p
Symphony process is a module for the Symphony PHP framework which executes commands in sub-processes. Rated critical sev
An issue was discovered in Symfony 3.4.0 through 3.4.34, 4.2.0 through 4.2.11, and 4.3.0 through 4.3.7. Rated critical s
An issue was discovered in Symfony before 4.2.12 and 4.3.x before 4.3.8. Rated critical severity (CVSS 9.8), this vulner
EUVD-2026-133730
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB