CVE-2020-5529
published high CVSS 3.1 · 8.1htmlunit: malicious JavaScript code leads to arbitrary java code execution
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| HtmlUnit Project | — | HtmlUnitprior to 2.37.0 | Affected | Not stated | jpcert |
| Debian | stretch | htmlunit | Advisory build | 2.8-2+deb9u1 | DLA-2326-1 |
| Ubuntu | xenial | htmlunit | Advisory build | 2.8-1ubuntu2.1 | USN-4584-1 |
| Ubuntu | xenial | libhtmlunit-java | Advisory build | 2.8-1ubuntu2.1 | USN-4584-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| HtmlUnit Project | HtmlUnit | prior to 2.37.0 (affected) | jpcert · cna |
Weaknesses
2- Remote code execution
- CWE-94 CWE-94 Improper Control of Generation of Code ('Code Injection')
References
5- https://github.com/HtmlUnit/htmlunit/releases/tag/2.37.0
- https://jvn.jp/en/jp/JVN34535327/
- [camel-commits] 20200520 [camel] branch camel-2.25.x updated: Updating htmlunit due to CVE-2020-5529 https://lists.apache.org/thread.html/ra2cd7f8e61dc6b8a2d9065094cd1f46aa63ad10f237ee363e26e8563%40%3Ccommits.camel.apache.org%3E
- [debian-lts-announce] 20200815 [SECURITY] [DLA 2326-1] htmlunit security update https://lists.debian.org/debian-lts-announce/2020/08/msg00023.html
- USN-4584-1 https://usn.ubuntu.com/4584-1/
Provider assertions
3jpcert · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3ca681574143f0ffd4605e1564a6ef3ebead60f7aeb0a66a519e799a2819d627
- Ingested
- 23 Sep 2026, 07:51:02 UTC
- Source record
- Official CVE record