Read the docs

Build-time Code Execution in @symfony/stimulus-bridge via Mapped package.json

Priority LOW 33CWE-829Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
Present
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-829.

Summary

@symfony/stimulus-bridge from 0 before 4.0.3 is affected. Its controllers.json loader calls require() on the package.json of each listed package, and a package can map ./package.json through its exports field to a script that then runs during the Webpack or Symfony Encore build (CWE-829). A malicious or compromised package listed in controllers.json can run code on a developer machine or CI server, even when install scripts are disabled. The code can read build files and environment variables such as CI secrets and change the built assets; browsers and end users are not affected.

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00224 7th percentileScored 2026-11-30
Fix Fixed @symfony/stimulus-bridge (Symfony): 4.0.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
symfony@symfony/stimulus-bridgebefore 4.0.34.0.3Patch availableCNA
  • @symfony/stimulus-bridge Vendorsymfony Affected before 4.0.3 Fixed in 4.0.3 Patch available CNA

Remediation

Upgrade @symfony/stimulus-bridge to version 4.0.3 or later, which reads the resolved package.json as JSON so a mapped script fails to parse instead of running.

Written with Claude Haiku 5.5 from the sources below · 2026-11-24

  • Fix · CNA @symfony/stimulus-bridge (Symfony) Fixed in 4.0.3

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    Symfony @symfony/stimulus-bridge 4.0.3

    2 records Highest priority Priority LOW 2 LOW

    Other records, highest priority first

    • TI-2026-97175 Code execution in @symfony/stimulus-bridge via magic commentsPriority LOW 34

Timeline

  1. 2026-11-24 Threatist record created from CVE-2026-133781
  2. 2026-11-25 CISA SSVC decision points changed

References

  • TI-2026-34283 Twig: The `spaceless` filter implicitly marks its output as safe CVSS 4.0MEDIUM 5.1
  • TI-2022-07667 Code injection in Twig CVSS 3.1CRITICAL 9.8
  • TI-2018-10028 Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key… CVSS 3.0CRITICAL 9.8
  • TI-2022-08704 Symfony storing cookie headers in HttpCache CVSS 3.1HIGH 8.8
  • TI-2026-98149 Symfony Serializer CSV Header Nesting Without Limit Crashes PHP CVSS 4.0HIGH 8.7
  • TI-2026-98148 Nested short ternaries make the Symfony expression parser hang CVSS 4.0HIGH 8.7
See all 129 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences