Skip to main content
Menu
Advisories

drupal/htmlawed cross-site scripting (XSS)

DRUPAL-CONTRIB-2026-315Published Updated Drupal

Description

The htmLawed module enables use of the [htmLawed](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 versions

References