DRUPAL-CONTRIB-2021-039 This module provides an admin interface for creating drop down menus that combine Drupal menu items with rich media content.

Not scored Published

An admin with menu editing permissions can inject Cross-Site-Scripting payloads due to insufficient input sanitization in the Drupal mega menu module.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is DRUPAL-CONTRIB-2021-039?

DRUPAL-CONTRIB-2021-039 is a cross-site scripting vulnerability in drupal/tb_megamenu, published on 22 Sep 2021. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

This module provides an admin interface for creating drop down menus that combine Drupal menu items with rich media content.

It does not sufficiently sanitize user input such that an admin with permissions to edit a menu may be able to exploit one or more Cross-Site-Scripting (XSS) vulnerabilities.

This vulnerability is mitigated by the fact that an attacker must have permission to administer mega menus and/or create or edit menu links, to inject the XSS.

Which versions are affected by DRUPAL-CONTRIB-2021-039?

Linux distribution packages (1)
drupal/tb_megamenu Packagist:https://packages.drupal.org/8All versions1.4.0

How do I fix DRUPAL-CONTRIB-2021-039?

Upgrade to a fixed version.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is DRUPAL-CONTRIB-2021-039 being exploited?

There is no known exploitation of DRUPAL-CONTRIB-2021-039 in the wild and no public exploit code.

Sources

Is DRUPAL-CONTRIB-2021-039 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free