CVE-2026-122079: Cross-site scripting in Drupal htmLawed HTML attribute filtering
CVE-2026-122079 is a cross-site scripting vulnerability in the Drupal htmLawed module caused by insufficient HTML attribute filtering. Versions 4.1.0 through 4.1.10 are affected on sites running Drupal core newer than 11.2, or any Drupal core version with the HTMX library. Failure to deny HTMX-related data-hx-* attributes allows attacker-controlled HTML to bypass filtering and execute script in users' browsers. The 8.x-3.x branch is not affected.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can execute attacker-controlled script in users' browser sessions, compromising confidentiality and integrity within the affected site's security context. The vulnerability is rated moderately critical at 14/25, with basic attack complexity and a user-level access requirement.
Mitigation
If you can’t patch tonight, do this now.
For every Text Format using the htmLawed filter, add data-hx-* to the filter configuration's deny_attribute parameter, preserving any existing attribute restrictions.
Remediation
Patch, then assume compromise.
Upgrade affected htmLawed 4.1.x installations to version 4.1.11 or a later fixed release. Review every Text Format using the htmLawed filter and update its configuration to deny data-hx-* attributes. The 8.x-3.x branch does not require an update for this vulnerability.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-122079 exploited in the wild?
- As of Nov 4, 2026, Mallory has no reports of CVE-2026-122079 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-122079?
- As of Nov 4, 2026, Mallory has found no public exploit for CVE-2026-122079.
- Is there a patch for CVE-2026-122079?
- Upgrade affected htmLawed 4.1.x installations to version 4.1.11 or a later fixed release. Review every Text Format using the htmLawed filter and update its configuration to deny data-hx-* attributes.
Recent activity
1 sources tracked across advisories and community write-ups. News coverage will land here when it surfaces.
No news coverage yet. Advisories and community discussion only.