Read the docs
TI-2020-04499 Aliases CVE-2020-5529GHSA-5mh9-r3rr-9597

Code injection in HtmlUnit

Priority MEDIUM 45CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-94.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.04719 91st percentileScored 2026-11-07
Fix Fixed HtmlUnit (HtmlUnit Project): 2.37.0net.sourceforge.htmlunit:htmlunit (Maven): 2.37.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
HtmlUnit ProjectHtmlUnitbefore 2.37.02.37.0Patch availableCNA
—net.sourceforge.htmlunit:htmlunit (Maven)before 2.37.02.37.0Patch availableGHSA-5mh9-r3rr-9597
  • HtmlUnit VendorHtmlUnit Project Affected before 2.37.0 Fixed in 2.37.0 Patch available CNA
  • net.sourceforge.htmlunit:htmlunit (Maven) Vendor— Affected before 2.37.0 Fixed in 2.37.0 Patch available GHSA-5mh9-r3rr-9597

CPE configurations NVD · 4

CPEVersionsRoleVendor
cpe:2.3:a:htmlunit:htmlunit:*:*:*:*:*:*:*:*before 2.37.0VulnerableHtmlUnit
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*9.0VulnerableDebian
cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*16.04VulnerableCanonical
cpe:2.3:a:apache:camel:-:*:*:*:*:*:*:*not specified by NVDVulnerableApache
  • cpe:2.3:a:htmlunit:htmlunit:*:*:*:*:*:*:*:* Versions before 2.37.0 Vulnerable ·HtmlUnit
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
  • cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:* Versions 16.04 Vulnerable ·Canonical
  • cpe:2.3:a:apache:camel:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·Apache

Remediation

  • Fix · CNA HtmlUnit (HtmlUnit Project) Fixed in 2.37.0
  • Fix · GHSA-5mh9-r3rr-9597 net.sourceforge.htmlunit:htmlunit (Maven) Fixed in 2.37.0 Advisory →

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat Single Sign-On 7

Timeline

  1. 2026-10-02 Threatist record created from CVE-2020-5529
  2. 2026-10-03 Alias added: GHSA-5mh9-r3rr-9597

References

Sources