{"id":"CVE-2025-31687","aliases":["CVE-2025-31687","GHSA-8r2q-865v-wm8j","DRUPAL-CONTRIB-2025-016"],"related":[],"kind":"vulnerability","state":"published","title":"SpamSpan filter - Moderately critical - Cross Site Scripting - SA-CONTRIB-2025-016","summary":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal SpamSpan filter allows Cross-Site Scripting (XSS).This issue affects SpamSpan filter: from 0.0.0 before 3.2.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal SpamSpan filter allows Cross-Site Scripting (XSS).This issue affects SpamSpan filter: from 0.0.0 before 3.2.1.","source":"cvelist"},{"lang":"en","text":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal SpamSpan filter allows Cross-Site Scripting (XSS). This issue affects SpamSpan filter: from 0.0.0 before 3.2.1.","format":"markdown","source":"ghsa"},{"lang":"en","text":"This module enables your site to obfuscate Email addresses and prevent spambots to collect them.\n\nThe 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.\n\nThis is mitigated by the fact an attacker must be able to insert span HTML elements with data attributes in the page.","format":"markdown","source":"drupal"},{"lang":"es","text":"Vulnerabilidad de neutralización incorrecta de la entrada durante la generación de páginas web ('Cross-site Scripting') en Drupal SpamSpan filter permite Cross-Site Scripting (XSS). Este problema afecta al filtro SpamSpan: desde la versión 0.0.0 hasta la 3.2.1.","source":"nvd"}],"published":"2025-02-12T17:38:09.000Z","modified":"2026-09-10T03:46:13.598Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U","rating":"LOW"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0","fixed":"3.2.1","status":"affected"}],"vendor":"Drupal","product":"SpamSpan filter","repo":"https://git.drupalcode.org/project/spamspan","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.2.1"}],"ecosystem":"Packagist","package":"drupal/spamspan","purl":"pkg:composer/drupal/spamspan","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.2.1"}],"ecosystem":"Packagist:https://packages.drupal.org/8","package":"drupal/spamspan","purl":"pkg:composer/drupal/spamspan?repository_url=https:%2F%2Fpackages.drupal.org%2F8","source":"drupal"},{"ranges":[{"status":"affected","fixed":"3.2.1"}],"vendor":"drowl","product":"spamspan_filter","cpe":"cpe:2.3:a:drowl:spamspan_filter:*:*:*:*:*:drupal:*:*","source":"nvd"}],"references":[{"url":"https://www.drupal.org/sa-contrib-2025-016","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","drupal","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31687","tags":["advisory"],"sources":["ghsa"]},{"url":"https://git.drupalcode.org/project/spamspan","tags":["package"],"sources":["ghsa"]},{"url":"https://git.drupalcode.org/project/spamspan/-/commit/90d622211c8bb316080a3af1dcf253b0d7e90791","tags":["web"],"sources":["ghsa"]}],"credits":["Pierre Rudloff (prudloff)","Julian Pustkuchen (anybody)","Joshua Sedler (grevil)","Adam Nagy (joevagyok)","Greg Knaddison (greggles)"],"assigner":"drupal","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-01T18:21:27.427Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-31687","url":"https://www.cve.org/CVERecord?id=CVE-2025-31687","licence":"CVE Terms of Use","modified":"2025-04-29T15:26:59.461Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8r2q-865v-wm8j","url":"https://github.com/advisories/GHSA-8r2q-865v-wm8j","licence":"CC-BY-4.0","modified":"2025-12-10T23:41:11.245Z"},{"source":"drupal","name":"Drupal Security Team","id":"DRUPAL-CONTRIB-2025-016","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-016","licence":"MIT","modified":"2026-09-10T03:46:13.598Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-31687","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31687","licence":"Public domain","modified":"2026-06-17T09:10:46.590Z"}],"updatedAt":"2026-11-25T22:58:55.754Z","epss":{"score":0.00262,"percentile":0.19276,"date":"2026-12-01T12:00:22.000Z"}}