CVE-2026-122079htmLawed
Drupal
Vulnerability Summary
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.
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 & Patched Versions
- htmLawed >=4.1.0 <4.1.11
- If you use version 4.1.x, upgrade to 4.1.11. 8.x-3.x versions are not affected. Review configuration and update: For Text Formats that use the htmLawed filter, check that the filter's Config. setting includes data-hx-* for the deny_attribute parameter. E.g.: 'safe'=>1, 'elements'=>'a, em, strong, cite, code, ol, ul, li, dl, dt, dd', 'deny_attribute'=>'data-hx-*, id, style'
What to do
Fix it during your normal patch cycle. No exploitation is confirmed yet.
- Check whether you run htmLawed and which version.
- Update to a patched version listed above, then confirm the new version.
Timeline
- Nov 4, 2026Published
- Nov 4, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new htmLawed CVEsYou are reading CVE-2026-122079. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsMore htmLawed CVEs
External References
Data last checked: Nov 18, 2026 23:01 UTC