Skip to content

@symfony/stimulus-bridge

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

CVE-2026-133780Published 24 Nov 2026, 08:41 UTC

Real-world risk

1.3/ 10Low

Routine

If the vulnerable configuration applies to you: 3.0

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.3

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from Symfony)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
@symfony/stimulus-bridgeNiche< 4.0.34.0.3

What to do

Update to a fixed version: 4.0.3.

Why this score

FactorValueEvidence×
ImpactFull compromiseCode execution or full control of the system or applicationFrom the CVSS vector1.00
Attacker positionLocalMust already run code or have a shell on the machineFrom the CVSS vector0.50
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.4% chance of exploitation in 30 days (percentile 31), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.158
  2. Threat T1: Nothing known0.850
  3. 10 × impact 1 × prerequisites 0.1575 × threat 0.851.339
  4. Rounded to one decimal between 0.1 and 101.3

How the score works

Exploitation and evidence timeline

  1. 24 Nov 2026 Published
  2. 3 Dec 2026 Risk 1.3 (cvss fallback)

Weakness

CWE-94

References

Get alerts for @symfony/stimulus-bridge

Free email or text alerts when a vulnerability in @symfony/stimulus-bridge reaches risk 8 or higher. Nothing else.