drupal/menu_link_attributes - SA-CONTRIB-2026-209
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/menu_link_attributes | < 1.8.0 | 1.8.0 |
| Drupal module | drupal/menu_link_attributes | < 1.8.0 | 1.8.0 |
References
- Weakness (CWE)
-- Platform
- Composer, Drupal
- Package
drupal/menu_link_attributes- Disclosed
- 07.10.2026
- Updated
- 11.10.2026 13:17
Sources and licenses
OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2026-209 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/menu_link_attributes
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.