ADVISORIES

Drupal Security Advisory

DRUPAL-CONTRIB-2025-043

Details

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".

Affected packages

EcosystemPackageAffected versions
Packagist:https://packages.drupal.org/8drupal/block_class
From 4.0.0 before 4.0.1 (fixed in 4.0.1)

References