Description
The htmLawed module enables use of the [htmLawed](https://bioinformatics.org/phplabware/internal_utilities/htmLawed/index.php) 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 | Fixed | Record |
|---|---|---|---|---|
| Packagist | drupal/htmlawed | >= 3.0.0, < 3.9.0 · >= 4.0.0, < 4.1.8 | 3.9.0, 4.1.8 | DRUPAL-CONTRIB-2026-314 |
Advisories 1
- WID-SEC-2026-4352 Drupal Erweiterungen: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 4, 2026