CVE-2020-5529
Java vulnerability analysis and mitigation

Overview

HtmlUnit prior to version 2.37.0 contained a code execution vulnerability (CVE-2020-5529). The vulnerability was discovered in early 2020 and disclosed on February 10, 2020. HtmlUnit, a Java-based library providing web browser functionality to Java programs, improperly initialized the Mozilla Rhino engine, which could allow malicious JavaScript code execution (JVN Report).

Technical details

The vulnerability stems from improper initialization of the Mozilla Rhino engine in HtmlUnit. The Rhino engine offers functionality to make Java objects available from JavaScript, but due to incorrect initialization, malicious JavaScript code could execute arbitrary Java code on the application (CWE-284). Additionally, when embedded in Android applications, Android-specific initialization of the Rhino engine was done improperly, creating another vector for arbitrary code execution. The vulnerability has been assigned a CVSS v3.0 base score of 5.6 (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L) (JVN Report).

Impact

An attacker could potentially execute arbitrary Java code on the target application through man-in-the-middle attacks or other methods that lead to the evaluation of malicious JavaScript code. This could result in unauthorized access to system resources and potential system compromise (JVN Report).

Mitigation and workarounds

The vulnerability was fixed in HtmlUnit version 2.37.0. Users are advised to update to this version or later to mitigate the risk. Various Linux distributions have also released security updates to address this vulnerability, including Ubuntu 16.04 ESM (libhtmlunit-java - 2.8-1ubuntu2.1) and Debian 9 stretch (version 2.8-2+deb9u1) (Ubuntu Notice, Debian LTS).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68931HIGH8.7
  • JavaJava
  • net.gleske:jervis
NoYesJan 13, 2026
CVE-2025-68703HIGH8.7
  • JavaJava
  • net.gleske:jervis
NoYesJan 13, 2026
CVE-2025-68704HIGH8.2
  • JavaJava
  • net.gleske:jervis
NoYesJan 13, 2026
CVE-2025-66169MEDIUM6.9
  • JavaJava
  • org.apache.camel:camel-neo4j
NoYesJan 14, 2026
CVE-2025-68925MEDIUM6.9
  • JavaJava
  • net.gleske:jervis
NoYesJan 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management