{"id":"CVE-2025-3902","aliases":["CVE-2025-3902","DRUPAL-CONTRIB-2025-043"],"related":[],"kind":"vulnerability","state":"published","title":"Block Class - Moderately critical - Cross Site Scripting - SA-CONTRIB-2025-043","summary":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal Block Class allows Cross-Site Scripting (XSS).This issue affects Block Class: from 4.0.0 before 4.0.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal Block Class allows Cross-Site Scripting (XSS).This issue affects Block Class: from 4.0.0 before 4.0.1.","source":"cvelist"},{"lang":"en","text":"Block Class enables you to add custom attributes to blocks.\n\nThe module did not sufficiently sanitize custom attribute input, allowing for potential XSS attacks when malicious JavaScript was injected as a custom attribute.\n\nThis vulnerability is mitigated by the fact that an attacker must have a role with the permission \"administer block classes\".","format":"markdown","source":"drupal"},{"lang":"es","text":"La vulnerabilidad de neutralización incorrecta de la entrada durante la generación de páginas web ('Cross-site Scripting') en Drupal Block Class permite la ejecución de Cross-site Scripting (XSS). Este problema afecta a la clase Block: desde la versión 4.0.0 hasta la 4.0.1.","source":"nvd"}],"published":"2025-04-23T16:59:01.000Z","modified":"2026-09-10T03:45:37.093Z","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"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"type":"semver","introduced":"4.0.0","fixed":"4.0.1","status":"affected"}],"vendor":"Drupal","product":"Block Class","repo":"https://git.drupalcode.org/project/block_class","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"4.0.1"}],"ecosystem":"Packagist:https://packages.drupal.org/8","package":"drupal/block_class","purl":"pkg:composer/drupal/block_class?repository_url=https:%2F%2Fpackages.drupal.org%2F8","source":"drupal"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"4.0.1"}],"vendor":"four_kitchens","product":"block_class","cpe":"cpe:2.3:a:four_kitchens:block_class:*:*:*:*:*:drupal:*:*","source":"nvd"}],"references":[{"url":"https://www.drupal.org/sa-contrib-2025-043","tags":["vendor-advisory","web"],"sources":["cvelist","drupal","nvd"]}],"credits":["Ivo  Van Geertruyen (mr.baileys)","renatog","Greg Knaddison (greggles)","Juraj Nemec (poker10)"],"assigner":"drupal","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-23T18:44:49.535Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-3902","url":"https://www.cve.org/CVERecord?id=CVE-2025-3902","licence":"CVE Terms of Use","modified":"2025-04-23T18:45:16.583Z"},{"source":"drupal","name":"Drupal Security Team","id":"DRUPAL-CONTRIB-2025-043","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-043","licence":"MIT","modified":"2026-09-10T03:45:37.093Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-3902","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-3902","licence":"Public domain","modified":"2026-06-17T09:20:53.607Z"}],"updatedAt":"2026-11-25T22:58:56.868Z","epss":{"score":0.00251,"percentile":0.17662,"date":"2026-12-02T12:00:21.000Z"}}