Remote code execution in HtmlUnit library

Published: 2020-02-10
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2020-5529
Exploitation vector Network
Public exploit N/A
Vulnerable software
Web applications / JS libraries

Vendor HtmlUnit

Security Bulletin

This security bulletin contains one high risk vulnerability.

1) Improper access control

EUVDB-ID: #VU25096

Risk: High

CVSSv3.1: 7.1 [CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2020-5529

CWE-ID: CWE-284 - Improper Access Control

Exploit availability: No


The vulnerability allows a remote attacker to gain unauthorized access to otherwise restricted functionality.

The vulnerability exists due to improper access restrictions in Rhino engine. When embedded in Android application, Android-specific initialization of Rhino engine is done in an improper way, hence a remote attacker can use a malicious JavaScript code and execute arbitrary Java code on the application.


Install updates from vendor's website.

Vulnerable software versions

HtmlUnit: 2.0 - 2.36.0

CPE2.3 External links

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.