新着 / 2026年11月26日 / CVE-2026-133780
@symfony/stimulus-bridge のコード実行の脆弱性
掲載
何が問題か
@symfony/stimulus-bridge npm パッケージの lazy-controller-loader は、Stimulus コントローラの import 前に置かれたマジックコメントの内容を、Node.js の vm.runInNewContext() で JavaScript として評価していました。Node.js の vm モジュールはセキュリティサンドボックスではないため、細工されたコメントによりビルドプロセス内で任意の Node.js コードが実行される可能性があります。本脆弱性はビルド時に限られ、ブラウザや一般利用者には影響しないと説明されています。
悪用されると
悪用されると、開発者端末や CI/ビルドサーバ上で、ビルドユーザの権限により任意のコマンドが実行される可能性があります。ビルド環境で利用可能なファイルや環境変数の読み取り、CI シークレットの流出、生成物の改ざんにつながるおそれがあります。実際の悪用が確認されたかどうかは公表されていません。
取るべき対応
@symfony/stimulus-bridge を利用している場合は、修正を含むバージョンへの更新を検討してください。修正版のバージョン番号は公表されていません。信頼できない依存関係や外部からの pull request を含むビルドには注意してください。
AIが出典から要約し、数値を機械照合しています。
更新履歴
初回掲載。
指標
| 深刻度(CVSS v4.0) | 重要 7.3CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
|---|---|
| 実際の攻撃での悪用 | CISA KEVには未掲載 |
| 30日以内に悪用される確率(EPSS) | 0.4%(全体の上位 78.4%) |
| 問題の種類 | CWE-94 |
| CVE公開日 | 2026-11-24 |
出典
- NVD: CVE-2026-133780
- https://github.com/symfony/stimulus-bridge/commit/25f1ff0bc4b2c2aaf87bca4d67b41bbc1c25fcdc
- https://github.com/symfony/stimulus-bridge/security/advisories/GHSA-hjg4-f74q-4w7h
- https://symfony.com/cve-2026-133780
公式の説明(英語の原文)
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.