Block Class enables you to add custom attributes to blocks.
Impact
Block Class enables you to add custom attributes to blocks.
Source excerpt · OSVThis vulnerability is mitigated by the fact that an attacker must have a role with the permission "administer block classes".
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 |
|---|---|
| From 4.0.0 before 4.0.1Ecosystem versions | 4.0.1 |
Version evidence: OSV · DRUPAL-CONTRIB-2025-043
View original version evidence (0 explicit versions)
Original source description
Block Class enables you to add custom attributes to blocks.
The module did not sufficiently sanitize custom attribute input, allowing for potential XSS attacks when malicious JavaScript was injected as a custom attribute.
This vulnerability is mitigated by the fact that an attacker must have a role with the permission "administer block classes".