DRUPAL-CONTRIB-2020-002 The SpamSpan module obfuscates email addresses to help prevent spambots from collecting them.

Not scored Published

An attacker can inject malicious scripts via unsanitized HTML in the SpamSpan Twig filter if custom templates are used, potentially leading to XSS.

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
None listed

What is DRUPAL-CONTRIB-2020-002?

DRUPAL-CONTRIB-2020-002 is a cross-site scripting vulnerability in drupal/spamspan, published on 22 Jan 2020. 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 SpamSpan module obfuscates email addresses to help prevent spambots from collecting them.

This module contains a spamspan twig filter which doesn't sanitize the passed HTML string.

This vulnerability is mitigated by the fact that sites must have custom twig template files that use the SpamSpan filter on a field that an attacker could populate. By default the SpamSpan module does not use the vulnerable twig filter.

Which versions are affected by DRUPAL-CONTRIB-2020-002?

Linux distribution packages (1)
drupal/spamspan Packagist:https://packages.drupal.org/8From 1.0.0 to 1.0.0None

How do I fix DRUPAL-CONTRIB-2020-002?

No fix has been published for DRUPAL-CONTRIB-2020-002 yet. Limit exposure of the affected software until one is available.

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-2020-002 being exploited?

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

Sources

Is DRUPAL-CONTRIB-2020-002 in your software?

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

Check your SBOMs for free