Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise/publish package listed in controllers.json
-
DeliveryMap ./package.json to script via exports field
-
ExploitDeveloper or CI runs Encore/Webpack build
-
Executionrequire() executes mapped script during build
-
ImpactRead CI secrets and tamper built assets
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Trusted source inclusion only
|
| Exploitation Conditions | Requires that a package already listed in the project's controllers.json be malicious or compromised AND define an exports field mapping './package.json' to a JavaScript file; exploitation then triggers only when a developer or CI server runs a Webpack or Symfony Encore build using @symfony/stimulus-bridge before 4.0.3. Per the advisory it works even when the package manager does not run install scripts. Limiting factors: it is strictly build-time and does not affect browsers or end users; the attacker must first get control of a referenced controller dependency; a build must actually be executed; and only versions prior to 4.0.3 are affected (fixed in 4.0.3). |
| Impact | This is a supply-chain, build-time code execution flaw (CWE-829) rated CVSS 4.0 7.3 (High). The vector CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P signals that exploitation is not trivial remote mass-exploitation: it is local to the build host (AV:L), requires a specific precondition (AT:P - a controller package that maps ./package.json to a script must already be present in controllers.json), and requires an action by the operator (UI:P - a developer or CI must actually run the Webpack/Symfony Encore build). Impact is severe once triggered (VC:H/VI:H/VA:H: read of build files and CI secrets, and tampering of built assets), with no scope change to other systems (SC:N/SI:N/SA:N). The vuln.today decision label is 'this_week' and a vendor patch exists, but no EPSS score was provided in the input, so probabilistic exploitation likelihood cannot be weighed here - state that EPSS is MISSING. CISA KEV status is not indicated (treat as not listed) and no exploit/PoC reference is provided, so there is no evidence of active exploitation or public weaponization. Note a signal nuance to verify: PR:N marks the flaw as requiring no attacker privileges, but real-world risk hinges on an attacker first getting a malicious or compromised package listed as a Stimulus controller dependency - i.e., this is a dependency-trust problem, not an internet-facing remote exploit. Net: a genuine, patch-worthy priority for teams building Symfony/Stimulus front-ends in CI, but its realistic risk is gated by supply-chain trust rather than drive-by exploitation. |
| Exploit ScenarioDerived | An attacker who controls or compromises an npm package referenced in a project's controllers.json publishes a package whose exports field maps './package.json' to a JavaScript file. When a developer or CI server runs the Webpack or Symfony Encore build, the controllers.json loader calls require() on that mapped path and executes the attacker's script, which reads environment variables and CI secrets and can modify the built assets. No public exploit code is identified in the input, though the vendor's patch ships a test fixture that demonstrates the mechanism; the attack is local to the build host and depends on the build actually being run. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 24, 2026
Build-time code execution in @symfony/stimulus-bridge before 4.0.3 lets a malicious or compromised npm package listed in a project's controllers.json run arbitrary code on the developer machine or CI server whenever a Webpack or Symfony Encore build is executed. The loader resolves <package>/package.json through the package's Node exports field, so a package can map that subpath to a JavaScript file which require() executes - this bypasses install-script protections entirely, since no package-manager install hook is involved. Successful execution can read build files and environment variables such as CI secrets and can alter the built assets; the flaw is strictly build-time and does not affect browsers or end users, and it requires that the attacker first gain control of a referenced controller dependency and that a build actually be run. No public exploit code identified at time of analysis; the vendor has released the fix in 4.0.3 and the priority decision is to remediate this week.
RemediationAI
Vendor-released patch: upgrade @symfony/stimulus-bridge to 4.0.3, where the controllers.json loader reads the resolved file and parses it as JSON instead of using require(); the fix commit is 1125c5c29dce467415a3d2663e682fbb9d9ab424 on branch main (https://github.com/symfony/stimulus-bridge/commit/1125c5c29dce467415a3d2663e682fbb9d9ab424), and details are in the advisories at https://symfony.com/cve-2026-133781 and https://github.com/symfony/stimulus-bridge/security/advisories/GHSA-6rch-xhq6-7x8r. Because exploitation depends on a malicious entry in controllers.json, teams that cannot upgrade immediately should audit that file and inspect the exports field of every package it references - a package mapping ./package.json to a JavaScript file is exactly the exploit shape and should be removed from controllers.json - and should limit which build secrets are exposed to Webpack/Encore build jobs and CI environments, since any executed payload can read those files and environment variables. Disabling package-manager install scripts is not an effective mitigation here, as the advisory states the attack works even when install scripts are not run; only moving to 4.0.3 fully closes the path.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected code is the controllers.json loader used by @symfony/stimulus-bridge in both its source (src/webpack/create-controllers-module.ts) and shipped build (dist/webpack/loader.js). For each package named in controllers.json, the loader previously did require(${packageName}/package.json). Node's package resolution honors the target package's exports map, so a dependency can declare "exports": { "./package.json": "./package.js" } and the subpath package.json resolves to a JavaScript module; require() then evaluates that file as part of the Webpack/Encore build process. The root cause class is CWE-829 (inclusion of functionality from an untrusted control sphere): the build tool imports attacker-controllable content from a dependency into a trusted execution context without validating that it is inert data. The upstream patch replaces the require() with readFileSync(require.resolve(...), 'utf8') followed by JSON.parse(), so a mapped script is never evaluated and instead fails JSON parsing. The accompanying regression test adds a fixture package whose exports map ./package.json to package.js (setting a global when executed) and asserts that the loader throws a "could not be found" error and that the global remains undefined. Note the affected surface is the Node-based build environment only; the shipped runtime browser bundle is not implicated. Node version behavior around exports subpath mapping applies, and the reported CVSS 4.0 vector (AV:L/AC:L/AT:P/PR:N/UI:P) and the assessed CVSS 3.1 vector (AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H) both agree that no privileges are required (PR:N), while the practical prerequisite is control of a listed dependency plus a build run by a developer or CI.
Know when Symfony gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Code runs on the build host (AV:L) and requires a malicious controller package to be present plus a build run (AC:H, UI:R); attacker needs no privileges of their own (PR:N), yielding full C/I/A impact.
Primary rating from Vendor (Symfony).
CVSS VectorVendor: Symfony
DescriptionCVE.org
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.
Technical POC Analysis
CWE-829 (Inclusion of Functionality from Untrusted Control Sphere).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity vulnerability in the @symfony/stimulus-bridge npm package (versions before 4.0.3) permits code execution during frontend build processes, potentially compromising developer workstations and CI servers. This risk is elevated for engineering teams because a malicious or compromised dependency could silently execute code, exposing CI secrets and altering build outputs. Leadership should prioritize remediation to safeguard internal build infrastructure, though no active exploitation has been identified.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
FragmentListener in the HttpKernel component in Symfony 2.3.19 through 2.3.28, 2.4.9 through 2.4.10, 2.5.4 through 2.5.1
In Symfony before 2.7.51, 2.8.x before 2.8.50, 3.x before 3.4.26, 4.x before 4.1.12, and 4.2.x before 4.2.7, when servic
Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter. Rated critical sever
Insufficient verification of payment-claim state in the Sylius e-commerce platform (versions before 2.1.16 and 2.2.9) le
Incorrect authorization in the Sylius Shop API lets anyone holding an order token submit arbitrary payment actions - mos
Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Rated high severity (C
Symfony versions up to 5.4.51 contains a vulnerability that allows attackers to operations being performed on an uninten
Reflected Cross-site scripting (XSS) vulnerability in the web profiler in SensioLabs Symfony 3.3.6 allows remote attacke
Symfony before 2.8.6 and 3.x before 3.0.6 allows remote attackers to bypass authentication by logging in with an empty p
Symphony process is a module for the Symphony PHP framework which executes commands in sub-processes. Rated critical sev
An issue was discovered in Symfony 3.4.0 through 3.4.34, 4.2.0 through 4.2.11, and 4.3.0 through 4.3.7. Rated critical s
An issue was discovered in Symfony before 4.2.12 and 4.3.x before 4.3.8. Rated critical severity (CVSS 9.8), this vulner
EUVD-2026-133731
NVD
CVE.org
EPSS
GitHub
Exploit-DB