Skip to content
High 7.3

@symfony/stimulus-bridgeに、ビルド時に任意のコードを実行される脆弱性

CVE-2026-133781 First seen on SecPulse

Summary

@symfony/stimulus-bridgeの4.0.3より前のバージョンには、controllers.jsonに登録されたパッケージを通じてビルド時に任意のコードが実行される脆弱性があります。開発者のマシンやCIサーバー上で、ビルドに使われるCI用のシークレットや環境変数が読み取られたり、ビルド成果物が書き換えられたりするおそれがあります。修正版の4.0.3で修正されています。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

@symfony/stimulus-bridgeの4.0.3より前のバージョンには、controllers.jsonに登録されたパッケージを通じてビルド時に任意のコードが実行される脆弱性があります。開発者のマシンやCIサーバー上で、ビルドに使われるCI用のシークレットや環境変数が読み取られたり、ビルド成果物が書き換えられたりするおそれがあります。修正版の4.0.3で修正されています。

Affected packages

PackageAffected → Fixed
Symfony@symfony/stimulus-bridge
< 4.0.3→ 4.0.3
Original description The description as published by the source.

The controllers.json loader of @symfony/stimulus-bridge loads the package.json file of each package listed in controllers.json with require(). Node resolves this path through the exports field of the package, which can map ./package.json to a script. require() then runs that script during the Webpack or Symfony Encore build.

This is a build-time vulnerability: it doesn't affect browsers or end users. A malicious or compromised package listed in controllers.json can run code on the developer machine or the CI server. This works even when the package manager doesn't run install scripts. This code can read the files and environment variables of the build, like CI secrets, and change the built assets.

The loader now reads the resolved file and parses it as JSON, so that a mapped script fails to parse instead of running.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details