{"id":"DRUPAL-CONTRIB-2025-090","aliases":["CVE-2025-7715"],"title":"This module allows you to define custom attributes for a block.","titleSource":"OSV","descriptionSource":"OSV","description":"This module allows you to define custom attributes for a block. You can specify an attribute name to be added to the block in a predefined format.\n\nThe module does not sufficiently validate the provided attributes, which makes it possible to insert JavaScript event attributes such as `onmouseover`, `onkeyup`, etc. These attributes can execute JavaScript code when the page is rendered, leading to cross-site scripting (XSS) vulnerabilities.\n\nThis vulnerability is partially mitigated by the requirement to manually add the specific attributes and corresponding JavaScript code to the form after the attribute has been created.","severity":"unknown","score":null,"published":"2025-07-16T16:46:26.000Z","modified":"2026-09-10T03:45:23.883Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist:https://packages.drupal.org/8","name":"drupal/block_attributes","sources":[{"name":"OSV · DRUPAL-CONTRIB-2025-090","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-090"}],"ranges":[{"events":[{"introduced":"0"},{"fixed":"1.1.0"}],"type":"ECOSYSTEM","database_specific":{"constraint":"<1.1.0"}},{"events":[{"introduced":"2.0.0"},{"fixed":"2.0.1"}],"type":"ECOSYSTEM","database_specific":{"constraint":">=2.0.0 <2.0.1"}}],"versions":[],"fixed":["1.1.0","2.0.1"]}],"sourceAffected":[],"references":["https://www.drupal.org/sa-contrib-2025-090"],"sources":[{"name":"OSV","id":"DRUPAL-CONTRIB-2025-090","modified":"2026-09-10T03:45:23.883822980Z","url":"https://osv.dev/vulnerability/DRUPAL-CONTRIB-2025-090"}],"assessments":[],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T20:55:31.375Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}