This module allows you to define custom attributes for a block.
Impact
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.
Source excerpt · OSVThis 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 packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 1.1.0Ecosystem versions | 1.1.0 |
| From 2.0.0 before 2.0.1Ecosystem versions | 2.0.1 |
Version evidence: OSV · DRUPAL-CONTRIB-2025-090
View original version evidence (0 explicit versions)
Original source 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.
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.