# DRUPAL-CONTRIB-2026-315: drupal/htmlawed cross-site scripting (XSS)

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

## Affected versions

- drupal/htmlawed (Packagist): from 4.1.0, fixed in 4.1.11

## Description

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.

## References

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

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

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