Drupal Security Advisory
DRUPAL-CONTRIB-2026-209
Details
This module enables you to add HTML attributes to menu links and their container elements (<li>).
The module doesn't sufficiently sanitize the attributes it applies to menu link container elements.
This vulnerability is mitigated by the fact that an attacker must have a role with the permissions "*Administer menus and menu links*" and "*Use menu link attributes*". In addition, an unsafe container attribute must already be configured by a user with the restricted permission "*Administer menu link attributes*". The default configuration is not affected.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist:https://packages.drupal.org/8 | drupal/menu_link_attributes | All versions before 1.8.0 (fixed in 1.8.0) |