The Drupal 7 Icon API module version 7.1.0 contains a stored cross-site scripting flaw in its Menu submodule, tracked as CVE-2026-16132. When Title Wrapper is enabled, the Title Wrapper Class value is written directly into an HTML attribute. A user with the administer menu icons permission can inject an attribute break and event handler that runs when other users interact with the link.
The permission makes this a privilege crossing issue. An editor with a narrow menu configuration role can store content that executes in the session of a more privileged administrator or editor. The victim does not need to approve the stored value again. The payload is rendered wherever the configured menu item appears.
Drupal's render pipeline separates data, markup, and attributes. A class value belongs in an attribute list, where the renderer can escape each value. String concatenation into a raw attribute loses that protection. The safe path is to pass the class through an attribute object and let the theme layer encode it. A broad safe filter around the whole tag does not solve the underlying type confusion.
Upgrade Icon API to 7.x-1.1 or the fixed release documented by the project. Inventory Drupal 7 sites before assuming the module is absent. A site may inherit a distribution, a multisite codebase, or a disabled module whose schema remains in the database. Compare the deployed module version and review the menu configuration.
Search menu item configuration for title wrapper class values that include quotes, angle brackets, event-handler names, script URLs, or unusual whitespace. Quarantine suspicious entries and review the users who changed them. A clean HTML response does not prove that no stored payload exists, especially when the menu is cached or rendered by another theme.
Add CSP as a secondary control. Restrict inline script, report violations, and keep the policy consistent across public and administrative pages. An administrator page may already have a stricter login policy, but stored content can execute after login in the normal Drupal theme. CSP should be tested in report-only mode before enforcement.
Review permissions around menu icons and title wrappers. If the organization uses the feature, limit who can change wrapper classes and log configuration changes. Drupal 7 is beyond its official support window, so record the support arrangement and patch source for every module. An unsupported module with no maintainer response needs a removal plan or a virtual patch.
Test the fix with harmless quotes and event-handler text in a staging menu. Open the menu as a second role, inspect the rendered attribute, and check the browser console and CSP reports. Confirm that the value is encoded as text and cannot create a new attribute or element.
CVE-2026-16132 is small in scope but useful as a renderer design check. A class name is data. The moment the code treats it as markup, a low-level content permission becomes a session-level risk.