drupal/block_attributes - SA-CONTRIB-2025-090
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.
The 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.
This 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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/block_attributes | < 1.1.0, >= 2.0.0, < 2.0.1 | 1.1.0, 2.0.1 |
| Drupal module | drupal/block_attributes | < 1.1.0, >= 2.0.0, < 2.0.1 | 1.1.0, 2.0.1 |
References
- Weakness (CWE)
-- Platform
- Composer, Drupal
- Package
drupal/block_attributes- Disclosed
- 16.07.2025
- Updated
- 11.10.2026 12:18
Sources and licenses
OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2025-090 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/block_attributes
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
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.