Skip to main content

Symfony Stimulus Bridge CVE-2026-133780

| EUVDEUVD-2026-133730 HIGH
Code Injection (CWE-94)
2026-11-24 Symfony
7.3
CVSS 4.0 · Vendor: Symfony
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit malicious controller via PR or poisoned dependency
  2. Delivery
    CI/Encore build processes the file
  3. Exploit
    lazy-controller-loader evals magic comment in node:vm
  4. Execution
    VM breakout runs arbitrary Node.js code
  5. Impact
    Read 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

@symfony/stimulus-bridge 0 <4.0.3

Affected Packages

euvd symfony_stimulus_bridge fix: 4.0.3

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

Vendor (Symfony) PRIMARY 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
vuln.today AI 7.8 HIGH

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (Symfony).

CVSS VectorVendor: Symfony

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Medium
common Symfony UX / Encore build dependency, not universally deployed
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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.

CVE-2015-4050 MEDIUM POC
4.3 Jun 02

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

CVE-2019-10910 CRITICAL POC
9.8 May 16

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

CVE-2018-13818 CRITICAL POC
9.8 Jul 10

Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter. Rated critical sever

CVE-2026-100872 HIGH POC
8.7 Sep 27

Insufficient verification of payment-claim state in the Sylius e-commerce platform (versions before 2.1.16 and 2.2.9) le

CVE-2026-100869 HIGH POC
8.2 Sep 27

Incorrect authorization in the Sylius Shop API lets anyone holding an order token submit arbitrary payment actions - mos

CVE-2025-64500 HIGH POC
7.3 Nov 12

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Rated high severity (C

CVE-2026-24739 MEDIUM POC
6.3 Jan 28

Symfony versions up to 5.4.51 contains a vulnerability that allows attackers to operations being performed on an uninten

CVE-2018-12040 MEDIUM POC
6.1 Jun 13

Reflected Cross-site scripting (XSS) vulnerability in the web profiler in SensioLabs Symfony 3.3.6 allows remote attacke

CVE-2016-2403 CRITICAL
9.8 Feb 07

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

CVE-2024-51736 CRITICAL
9.8 Nov 06

Symphony process is a module for the Symphony PHP framework which executes commands in sub-processes. Rated critical sev

CVE-2019-18889 CRITICAL
9.8 Nov 21

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

CVE-2019-11325 CRITICAL
9.8 Nov 21

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy