Drupal Security Advisory
DRUPAL-CONTRIB-2026-314
Details
The htmLawed module enables use of the htmLawed PHP library as a filter in a Text Format for restriction/filtering of HTML in textual input.
The module's filtering of malicious HTML can be bypassed by using a malformed UTF8 character, leading to a cross-site scripting (XSS) vulnerability.
Only sites using an SQLite database are affected with versions of the htmLawed library prior to 1.2.17.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist:https://packages.drupal.org/8 | drupal/htmlawed | From 3.0.0 before 3.9.0 (fixed in 3.9.0) From 4.0.0 before 4.1.8 (fixed in 4.1.8) |