drupal/menu_link_attributes is vulnerable to Cross-Site Scripting (XSS)
44
CVE Score
Medium
Cross-Site Scripting (XSS)
The Menu Link Attributes module lets site builders attach HTML attributes to menu links and to the list item (<li>) that wraps each link. Affected versions copy those container attributes onto the <li> without the sanitization Drupal core applies to attributes on the link itself, so a configured name such as an event handler (on*), style, or a name that is not a plain HTML attribute is rendered into the menu markup. A visitor who loads a page showing that menu can then run the injected script. Exploitation requires the "Administer menus and menu links" and "Use menu link attributes" permissions, and an unsafe container attribute must already have been configured by a user with "Administer menu link attributes". The default configuration is not affected. The fix rejects those attribute names in configuration, filters container attributes with the same rules core uses for link attributes before rendering, and a database update removes any unsafe definitions already stored and clears the render cache.
Upgrade the drupal/menu_link_attributes library to the patch version, then run the database updates so unsafe attribute definitions are removed and the render cache is cleared.
You are affected if you are using a version that falls within the vulnerable range and a user with the "Administer menu link attributes" permission has configured an unsafe container attribute. The default configuration is not affected.
1.0.0 - 1.7.0
Fixed in 1.8.0drupal/menu_link_attributes is vulnerable to Cross-Site Scripting (XSS) in versions 1.0.0 - 1.7.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.