ADVISORIES

Drupal Security Advisory

DRUPAL-CONTRIB-2026-315

Details

The htmLawed module enables use of the [htmLawed](https://bioinformatics.org/phplabware/internal_utilities/htmLawed/index.php "htmLawed website") PHP library as a filter in a Text Format for restriction/filtering of HTML in textual input.

The htmLawed filter does not sufficiently filter attributes, leading to a cross-site scripting (XSS) vulnerability.

This vulnerability affects sites on Drupal core > 11.2 or any version of core with the HTMX library.

Affected packages

EcosystemPackageAffected versions
Packagist:https://packages.drupal.org/8drupal/htmlawed
From 4.1.0 before 4.1.11 (fixed in 4.1.11)

References