CVE-2026-122080: XSS

Published Nov 4, 2026
·
Updated

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

2 affected componentsFixes available
composer/drupal/htmlawed>=3.0.0<3.9.0
3.9.0
composer/drupal/htmlawed>=4.0.0<4.1.8
4.1.8

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/drupal/htmlawed to a version that resolves this vulnerability.

    Fixed in 3.9.0
  2. Upgrade

    Upgrade composer/drupal/htmlawed to a version that resolves this vulnerability.

    Fixed in 4.1.8
  3. Upgrade

    Upgrade htmLawed to a version that resolves this vulnerability.

    Fixed in 1.2.17

Event History

Nov 4, 2026
Advisory Published
via OSV·05:52 PM
Data Sourced
via OSV·05:52 PM
DescriptionAffected Software

Frequently Asked Questions

1

Which deployments are affected?

Only sites that use the htmLawed module with an SQLite database are affected, and only when the bundled or installed htmLawed library version is earlier than 1.2.17.

2

What must an attacker be able to do to exploit this issue?

An attacker must be able to submit textual input that is processed by a Text Format using htmLawed. The bypass relies on a malformed UTF-8 character in input that would otherwise be filtered as malicious HTML.

3

Is a site affected merely by having the module installed?

No. The affected condition requires use of SQLite and a version of the htmLawed library prior to 1.2.17; exploitation also depends on attacker-controlled content being filtered through a Text Format that uses htmLawed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203