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.
Remediation
References
https://jvn.jp/en/jp/JVN34535327/
https://github.com/HtmlUnit/htmlunit/releases/tag/2.37.0
https://lists.debian.org/debian-lts-announce/2020/08/msg00023.html
https://usn.ubuntu.com/4584-1/
https://lists.apache.org/thread.html/ra2cd7f8e61dc6b8a2d9065094cd1f46aa63ad10f237ee363e26e8563%40%3Ccommits.camel.apache.org%3E
Related Vulnerabilities
CVE-2017-15010 Vulnerability in maven package org.webjars.npm:tough-cookie
CVE-2019-1003032 Vulnerability in maven package org.jenkins-ci.plugins:email-ext
CVE-2021-21293 Vulnerability in maven package org.http4s:blaze-core_2.13
CVE-2022-25875 Vulnerability in npm package svelte
CVE-2019-17558 Vulnerability in maven package org.apache.solr:solr-velocity