Low

drupal/spamspan - SA-CONTRIB-2025-016

  • Disclosed: 12.02.2025
  • Updated: 11.10.2026 12:18

This module enables your site to obfuscate Email addresses and prevent spambots to collect them.

The module doesn't sanitize HTML data attributes when an email address link is transformed to separate span HTML elements and then transformed back by JavaScript leading to a Cross Site Scripting (XSS) vulnerability.

This is mitigated by the fact an attacker must be able to insert span HTML elements with data attributes in the page.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package drupal/spamspan < 3.2.1 3.2.1
Drupal module drupal/spamspan < 3.2.1 3.2.1

References

CVSS score 6.1/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-79
Platform
Composer, Drupal
Package
drupal/spamspan
Disclosed
12.02.2025
Updated
11.10.2026 12:18

Sources and licenses

OSV / GitHub Advisory Database - GHSA-8r2q-865v-wm8j - CC BY 4.0

OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2025-016 - CC BY-SA 2.0; code GPL-2.0-or-later

Vulnerability history: drupal/spamspan

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
01.2020 02.2025
Without a fix
1
Exploited in attacks
0

Severity breakdown

  • Low 1
  • Unrated 1

Disclosures per year

  1. 2020: 1
  2. 2021: 0
  3. 2022: 0
  4. 2023: 0
  5. 2024: 0
  6. 2025: 1
  7. 2026: 0
  1. drupal/spamspan - SA-CONTRIB-2025-016 this entry
    Low · 6.1 CVE-2025-31687 < 3.2.1 3.2.1
  2. Unrated drupal-contrib-2020-002 = 1.0.0 no fix

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.