# DRUPAL-CONTRIB-2026-314: 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

- Database: Drupal
- Published: 2026-11-04
- Modified: 2026-11-04

## Affected versions

- drupal/htmlawed (Packagist): from 3.0.0, fixed in 3.9.0; from 4.0.0, fixed in 4.1.8

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

## References

- https://www.drupal.org/sa-contrib-2026-314

Page: https://cve.now/DRUPAL-CONTRIB-2026-314

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
