Drupal security updates, in plain English · Module

Menu Link Attributes

91,515 sites report using it · on drupal.org · 1 security release explained here

It allows administrators to add extra details to menu links and their container elements.

Below is every security release for Menu Link Attributes that this site has covered, newest first. Each one says who could exploit it, whether it applies to your site, how urgent it is, and what to tell your developer. If your site uses this module and you are not sure which version, that is the first question to ask whoever looks after it.

Menu Link Attributes

Moderately critical · 91,515 sites report using it · SA-CONTRIB-2026-209 · on drupal.org · Week of 7 October 2026

It allows administrators to add extra details to menu links and their container elements.

An administrator could add unsafe text to website menus. This text could run malicious scripts when other people visit the page. This could let someone read or change private data.

  • Who could do thisOnly someone with an administrator login.
  • Does it apply to youA site is affected if an attacker has access rights to administer menus and use menu link attributes, and an unsafe container attribute is already configured.
  • Has it been used in attacksNo sign of it.
  • How urgentDrupal rates this moderately critical. Include it in your next routine update, within the month.

Tell your developerUpdate Menu Link Attributes to 8.x-1.8.

For developers: what the fix changed

The fix introduces the menu_link_attributes_is_allowed_attribute_name and menu_link_attributes_filter_attributes functions in menu_link_attributes.module to validate and sanitise configuration. It applies these checks in the validateForm method of ConfigForm.php and includes an update hook in menu_link_attributes.install to strip unsafe attributes.

Also in this release The release also updates configuration descriptions and adds functional tests for the new validation.

8.x-1.7 to 8.x-1.8 2 commits, 5 files including 1 test.

  • config/install/menu_link_attributes.config.yml +2 −2
  • menu_link_attributes.install +28 −0 fix
  • menu_link_attributes.module +78 −2 fix
  • src/Form/ConfigForm.php +14 −1 fix

Full diff, 8.x-1.7 to 8.x-1.8

The comparison is against the release immediately before the fix. If your site is on an older release, more will have changed.

Not sure what your site is running?

Send me your Drupal site's address.

I'll tell you what I can see from outside, what the Drupal 10 end of life on 9 December means for it, and what it would cost to have me keep it patched. There's no charge for that and no obligation. peter@peterbrady.co.uk


Get in touch

Tell me who you are, what your organisation does, and what you need. That might be a Drupal site that needs looking after, an upgrade to get done before December, or an agency that needs Drupal cover.

If I can help, I'll say so and suggest a call. If I can't, I'll tell you straight away rather than waste your time.

peter@peterbrady.co.uk

For context: I work mainly with UK charities, membership bodies and research organisations, and with the agencies that look after their websites. Not recruiters.

Or start smaller and connect with me on LinkedIn. That's where I post what I find digging around in charity and grants data, and where the free tools turn up first.