Description
HtmlUnit prior to 2.37.0 contains code execution vulnerabilities. HtmlUnit initializes Rhino engine improperly, hence a malicious JavScript code can execute arbitrary Java code on the application. Moreover, when embedded in Android application, Android-specific initialization of Rhino engine is done in an improper way, hence a malicious JavaScript code can execute arbitrary Java code on the application.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| HtmlUnit Project | HtmlUnit | prior to 2.37.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | htmlunit | 2.8-2+deb9u1 | DLA-2326-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | htmlunit | 2.8-1ubuntu2.1 | USN-4584-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | htmlunit | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | net.sourceforge.htmlunit:htmlunit | < 2.37.0 | 2.37.0 | GHSA-5mh9-r3rr-9597 |
Advisories 2
- USN-4584-1 htmlunit vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- DLA-2326-1 htmlunit - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://github.com/HtmlUnit/htmlunit/releases/tag/2.37.0
- https://jvn.jp/en/jp/JVN34535327/ third-party-advisory
- [camel-commits] 20200520 [camel] branch camel-2.25.x updated: Updating htmlunit due to CVE-2020-5529 mailing-list
- [debian-lts-announce] 20200815 [SECURITY] [DLA 2326-1] htmlunit security update mailing-list
- USN-4584-1 vendor-advisory