CVE-2023-26119 HtmlUnit Code Injection vulnerability

Critical 9.8 Published Updated

Attacker can execute arbitrary code via XSTL when browsing a malicious webpage using the HTMLUnit library.

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-26119?

CVE-2023-26119 is a critical code injection vulnerability in net.sourceforge.htmlunit:htmlunit, published on 3 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Versions of the package net.sourceforge.htmlunit:htmlunit from 0 and before 3.0.0 are vulnerable to Remote Code Execution (RCE) via XSTL, when browsing the attacker’s webpage.

Weakness: CWE-94

Which versions are affected by CVE-2023-26119?

2 open source packages ship an affected version, including net.sourceforge.htmlunit:htmlunit. It affects 1 product.

PackageAffectedFixed in
net.sourceforge.htmlunit:htmlunit MavenAll versions3.0.0
net.sourceforge.htmlunit:htmlunit MavenAll versions3.0.0

Products include Htmlunit Htmlunit.

How do I fix CVE-2023-26119?

Upgrade net.sourceforge.htmlunit:htmlunit to 3.0.0 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2023-26119 being exploited?

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

Sources

Also known as CLSA-2025-1766534901, GHSA-3xrr-7m6p-p7xh, ROOT-APP-MAVEN-CVE-2023-26119.

Is CVE-2023-26119 in your software?

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

Check your SBOMs for free