UI Icons
2 security fixes in one update. UI Icons fixed 2 separate security bugs at once: 2 cross site scripting. One update covers all of them. The most serious, SA-CONTRIB-2026-221, is explained here and the full list is at the end of the card.
The module does not check the icon settings provided by users before displaying them on the screen. Someone could use this to view restricted content or modify certain data on the page. They could not access the entire database or alter the core website files.
- Who could do thisAnyone visiting the site. No login needed.
- Does it apply to youAny site using this module.
- Has it been used in attacksNo sign of it.
- How urgentDrupal rates this critical. Cyber Essentials expects a fix within 14 days. Do it this week.
Tell your developerUpdate UI Icons to 2.0.2 or 1.1.3, whichever branch you are on.
For developers: what the fix changed
The fix introduces a new `IconSettings::filter()` method in `src/IconSettings.php` to restrict icon settings provided by users to only scalar values declared by the icon pack. This filter is applied across various components including `IconFilterController`, `IconEmbed`, `IconPreviewController`, and `IconAutocomplete`, while `iconEditing.js` is updated to escape missing icon IDs in the CKEditor preview.
Also in this release The release also updates tests in `IconAutocompleteUnitTest.php`.
modules/ui_icons_ckeditor5/js/build/icon.js+1 −1 fixmodules/ui_icons_ckeditor5/js/ckeditor5_plugins/icon/src/iconEditing.js+1 −1 fixmodules/ui_icons_ckeditor5/src/Controller/IconFilterController.php+2 −0 fixmodules/ui_icons_text/src/Plugin/Filter/IconEmbed.php+4 −2 fixsrc/Controller/IconPreviewController.php+7 −1 fixsrc/Element/IconAutocomplete.php+3 −1 fixsrc/IconSettings.php+44 −0 fix
- Critical · Cross site scripting · SA-CONTRIB-2026-221
- Moderately critical · Cross site scripting · SA-CONTRIB-2026-230