drupal/htmlawed - SA-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.
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/htmlawed | >= 3.0.0, < 3.9.0, >= 4.0.0, < 4.1.8 | 3.9.0, 4.1.8 |
| Drupal module | drupal/htmlawed | >= 3.0.0, < 3.9.0, >= 4.0.0, < 4.1.8 | 3.9.0, 4.1.8 |
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-314 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/htmlawed
All published vulnerabilities of this package (Composer package), 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-314 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.