Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-133780— @symfony/stimulus-bridge lazy-controller-loader: arbitrary code execution via unsanitized Stimulus magic comments

Quick assessment

Affected
Symfony @symfony/stimulus-bridge
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

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 op

CVSS 7.3 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-133780

Vulnerability Information

Shenlong is analyzing...


Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
@symfony/stimulus-bridge lazy-controller-loader: arbitrary code execution via unsanitized Stimulus magic comments
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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: CVE Program / CVE List V5
Vulnerability Type
对生成代码的控制不恰当(代码注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Symfony @symfony/stimulus-bridge 0 ~ 4.0.3 -

II. Public POCs for CVE-2026-133780

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-133780

请登录查看更多情报信息。

Other References for CVE-2026-133780 (3)

Same Patch Batch · Symfony · 2026-11-24 · 12 CVEs total

CVE-2026-133781 7.3 HIGH Build-time Code Execution in @symfony/stimulus-bridge via a Controller Package That Maps I
CVE-2026-133774 6.3 MEDIUM Authorization bypass in symfony/ux-live-component via an empty batch action request
CVE-2026-133778 6.3 MEDIUM Live Components Configured With a Custom Route Can Still Be Reached Through the Default Ro
CVE-2026-133779 5.3 MEDIUM XSS in symfony/ux-icons via Attribute Names That the Sanitizer Reads Differently Than Brow
CVE-2026-133776 5.3 MEDIUM XSS in symfony/ux-icons via Text That Sanitized Icons Contain Unescaped: Incomplete Fix fo
CVE-2026-133777 5.3 MEDIUM XSS in symfony/ux-icons via SVG Content That Browsers Parse as HTML: Incomplete Fix for CV
CVE-2026-133775 5.3 MEDIUM XSS in symfony/ux-icons via Scripts Nested in SVG Style Elements: Incomplete Fix for CVE-2
CVE-2026-135801 Path Rules Enforced in Front of PHP Can Be Bypassed by Appending the Path to the Script Na
CVE-2026-135804 Incomplete Fix for CVE-2026-45756: JsonPath Queries Can Still Hold a Process Through searc
CVE-2026-135803 Filesystem Path Treats Any Prefix Before "://" as a Root, Letting Paths Escape Their Base
CVE-2026-135802 Generated URLs Can Point to a Host Chosen by the Client

IV. Related Vulnerabilities