Intel

AIKIDO-2026-324263

drupal/menu_link_attributes is vulnerable to Cross-Site Scripting (XSS)

Cross-Site Scripting (XSS)CVE-2026-107306 Published 5 days ago

44

Medium Risk

This Affects:

PHPdrupal/menu_link_attributes
1.0.0 - 1.7.0
Fixed in 1.8.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

drupal/menu_link_attributes is vulnerable to Cross-Site Scripting (XSS) in versions 1.0.0 - 1.7.0.

How to fix this

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.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform