DRUPAL-CONTRIB-2023-017 The Consent Popup provides a configurable popup that requires acceptance of a question before the visitor can continue, typically used for age consent.

Not scored Published

An attacker with block creation permissions can inject malicious scripts into the Consent Popup module, potentially compromising user sessions.

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

What is DRUPAL-CONTRIB-2023-017?

DRUPAL-CONTRIB-2023-017 is a cross-site scripting vulnerability in drupal/consent_popup, published on 31 May 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

The Consent Popup provides a configurable popup that requires acceptance of a question before the visitor can continue, typically used for age consent.

The module doesn't sufficiently sanitizes the text on the block leading to a cross site scripting (XSS) vulnerability.

This vulnerability is mitigated by the fact that an attacker must have a role with the permission to create blocks.

Which versions are affected by DRUPAL-CONTRIB-2023-017?

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

How do I fix DRUPAL-CONTRIB-2023-017?

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-2023-017 being exploited?

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

Sources

Is DRUPAL-CONTRIB-2023-017 in your software?

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

Check your SBOMs for free