PatchClock

PHP security digest · 4 Nov 2026

The htmLawed module enables use of the [htmLawed](https://bioinformatics.org/phplabware/internal_utilities/htmLawed/index.php) PHP library as a filter in a Text...

Unrated CVE-2026-122080

Package
drupal/htmlawed
Fixed in
3.9.0, 4.1.8
Published
Wed 4 Nov 2026, 17:52 LisbonUpdated Mon 16 Nov 2026, 00:45 Lisbon

In plain words

An attacker can bypass the htmLawed module's HTML filtering with a malformed UTF8 character, allowing cross-site scripting (XSS). This affects sites using an SQLite database and an htmLawed library version prior to 1.2.17, where the module is used as a Text Format filter.

How serious is it?

The source record has no severity score, so the rating is yours to make. Read the description for two things: what an attacker needs (an account, a particular setting, a user who clicks a link) and what they get. Drupal security advisories carry their own risk score on drupal.org, which is not in the OSV record. When the advisory gives no details at all, assume the worst until you know more: an unfixed issue with an unknown impact is not a low one.

Am I affected?

Look for drupal/htmlawed and its installed version in composer.lock. The advisory lists fixed package versions 3.9.0 and 4.1.8 but gives no affected package range. Check whether your site uses SQLite, whether htmLawed is used as a Text Format filter, and whether the htmLawed library version is prior to 1.2.17. The SQLite and library-version conditions must both apply for the site to be affected.

Did you install drupal/htmlawed, or did a dependency?

Composer says why a package is in your project:

composer why drupal/htmlawed

If the output names your own project, you required drupal/htmlawed directly and the update is yours to make. If it names another package, drupal/htmlawed came in through it, and that package's version constraint decides which release you can install. To see what stands between you and the fix, ask Composer directly:

composer why-not drupal/htmlawed 3.9.0

Every line it prints is a constraint that blocks 3.9.0. Update the package it names, or raise your own constraint, and run it again until it prints nothing. If you stay on an older branch, ask about its fix instead: 4.1.8.

What to do

Check which version you have, then update to a fixed release for your branch (3.9.0, 4.1.8):

composer show drupal/htmlawed | grep versions
composer update drupal/htmlawed

If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.

Check the whole project at once

Composer 2.4 and later can list every installed package with a known advisory, this one included once Packagist has it:

composer audit --locked

--locked reads composer.lock instead of the vendor folder, so you can run it on a release tag or in CI without installing anything. It exits with a non-zero code when it finds an advisory, which is enough to fail a build. Run it on every branch you still support, not only the newest: an older release your customers run is affected in the same way.

Under the Cyber Resilience Act

CRA Article 14 timeline: aware of exploitation at hour 0, early warning within 24 hours, notification within 72 hours, final report within 14 days after the fix.

No exploitation of this vulnerability is known, so on its own it does not start the Article 14 reporting clock, which covers actively exploited vulnerabilities. That changes if you learn it is being exploited through your product: then the 24-hour early warning applies.

Either way, if drupal/htmlawed ships inside a product you sell, the CRA treats its vulnerabilities as yours. Article 13(5) asks for due diligence on the components you include, and from 11 December 2027 Annex I asks you to ship security fixes without delay and free of charge for the support period you declared. A short note in your changelog saying which release updated drupal/htmlawed, and why, is the evidence you will want later.

What goes in each Article 14 report · Does the CRA apply to your product?

drupal/htmlawed's record

This is one of 2 advisories for drupal/htmlawed in the digest, the first published on 4 November 2026. A package with several advisories is not worse than one with none, which often just means nobody looked; it does tell you to keep it on your update list and to run composer audit after each update.

Other advisories for drupal/htmlawed

  • CVE-2026-122079 · 4 Nov 2026 · Unrated · fixed in 4.1.11 The htmLawed module enables use of the [htmLawed](https://bioinformatics.org/phplabware/internal_utilities/htmLawed/index.php "htmLawed website") PHP library as...

The advisory's description

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.

The advisory

From OSV.dev, which gathers the GitHub Advisory Database, FriendsOfPHP and Drupal security advisories; the summary is theirs. The description is OSV's record of the advisory. "In plain words", "Am I affected?" and "If you cannot update yet" are based on that advisory, and checked to name no version it does not.