CVE-2023-4241 lol-html panics on certain HTML inputs

High 7.5 Published Updated

Attackers can cause a denial of service by providing specific HTML inputs to the lol-html library, affecting applications processing untrusted HTML.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-4241?

CVE-2023-4241 is a high-severity denial of service vulnerability in Cloudflare lol-html, published on 16 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

lol-html can cause panics on certain HTML inputs. Anyone processing arbitrary 3rd party HTML with the library is affected.

Weakness: CWE-20

Which versions are affected by CVE-2023-4241?

2 open source packages ship an affected version, including lol-html. It affects 1 product.

PackageAffectedFixed in
lol-html crates.ioAll versions1.1.1
lol-html crates.ioAll versions1.1.1

Products include Cloudflare Lol-Html.

How do I fix CVE-2023-4241?

Upgrade lol-html to 1.1.1 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-4241 being exploited?

There is no known exploitation of CVE-2023-4241 in the wild and no public exploit code.

Sources

Also known as GHSA-c3x7-354f-4p2x.

Is CVE-2023-4241 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free