Symfony UX 3.8.1 and 2.36.3 are now available. Both releases fix six security issues, four in UX Icons and two in UX LiveComponent. Every application using these packages should upgrade as soon as possible. They also make UX LiveComponent stricter in three places. Stimulus Bridge 4.0.3 is released at the same time, with two more security fixes.
Security
Six vulnerabilities were fixed in both maintained branches (2.36.3 and 3.8.1).
UX Icons sanitizes the SVG of icons since CVE-2026-55877, because the
ux_icon() Twig function renders them inline as safe HTML. Four gaps in this
sanitizer still let an icon run scripts in the page. Applications were exposed
when an attacker could influence the SVG of their icons, for example through
local icon files or the Iconify API. The four gaps were:
- scripts nested in SVG
<style>elements (CVE-2026-133775); - markup that the sanitizer wrote out unescaped when it changed an icon (CVE-2026-133776);
- SVG content that browsers parse as HTML, for example after a
<p>element or inside a<title>element (CVE-2026-133777); - attribute names that the sanitizer read differently than browsers (CVE-2026-133779).
The sanitizer now only keeps the elements of the SVG namespace. It also removes the elements that make browsers switch to HTML, and checks attributes by the names that browsers read. On 2.x, it also writes icons out as XML. Icons are cached in the system cache, so clear it after upgrading, as a deployment usually does. Cached icons then get sanitized again.
In UX LiveComponent, a batch request without any action rendered a component
protected by #[IsGranted], even for a caller who wasn't granted access. The
caller only needed a signed props payload of the component
(CVE-2026-133774). Also, a component
configured with a custom route could still be reached through the default
/_components route. That route can be outside the firewall of the custom one
(CVE-2026-133778).
The issues were reported by tnytown, Simon André, Marcus Stöhr, Martin Trafoier and Nicolas Grekas, and fixed by tnytown, Simon André and Nicolas Grekas.
Stimulus Bridge 4.0.3
The @symfony/stimulus-bridge npm package loads the Stimulus controllers of
applications built with Webpack Encore. Version 4.0.3 fixes two vulnerabilities
that run code at build time, on the developer machine or the CI server. They
don't affect browsers:
- the lazy controller loader evaluated the
stimulus*magic comments of controllers as JavaScript, so a crafted comment could run Node.js code (CVE-2026-133780); - the
controllers.jsonloader loaded thepackage.jsonfile of controller packages withrequire(), which runs a script when a package maps this file to one (CVE-2026-133781).
The first issue was reported by Junming Wu and fixed by Hugo Alliaume. The second one was reported and fixed by Nicolas Grekas.
A stricter UX LiveComponent
Three more changes make UX LiveComponent stricter, without fixing a known vulnerability:
- the URL of a component can't use the class name of the component instead of its name anymore;
- a component isn't rendered anymore when a 422 response is thrown before its action runs;
- redirect responses don't send the
X-Live-Urlheader anymore.
Full Changelog
- CVE-2026-133775 [Icons] Sanitize SVG style tag descendants (@nicolas-grekas)
- CVE-2026-133776 [Icons] Only keep SVG elements in sanitized icons (@smnandre)
- CVE-2026-133777 [Icons] Remove the elements that make browsers parse icons as HTML (@nicolas-grekas)
- CVE-2026-133779 [Icons] Check the attributes of icons by the names that browsers read (@nicolas-grekas)
- CVE-2026-133774 [LiveComponent] Reject a batch request without any action (@nicolas-grekas)
- CVE-2026-133778 [LiveComponent] Only serve a component on the route it is configured with (@nicolas-grekas)
- [LiveComponent] Reject the class name of a component in its URL (@nicolas-grekas)
- [LiveComponent] Don't render a component on a 422 thrown before its action (@nicolas-grekas)
- [LiveComponent] Don't send X-Live-Url with a redirect (@nicolas-grekas)
- #4347 [Upload] Fix pause and resume with several parallel chunks (@Kocal)
Symfony UX 2.36.3 has the same fixes. It also conflicts with
symfony/asset-mapper 8.2 and later
(#3919).