drupal/htmlawed - SA-CONTRIB-2026-315
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 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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/htmlawed | >= 4.1.0, < 4.1.11 | 4.1.11 |
| Drupal module | drupal/htmlawed | >= 4.1.0, < 4.1.11 | 4.1.11 |
References
- Weakness (CWE)
-- Platform
- Composer, Drupal
- Package
drupal/htmlawed- Disclosed
- 04.11.2026
- Updated
- 04.11.2026 22:17
Sources and licenses
OSV / GitHub Advisory Database - DRUPAL-CONTRIB-2026-315 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/htmlawed
All published vulnerabilities of this package (Drupal module), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 2
- First → latest
- 11.2026 11.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Unrated 2
Disclosures per year
- 2026: 2
-
drupal/htmlawed - SA-CONTRIB-2026-315 this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.