ADVISORIES

GitHub Advisory Database

GHSA-5mh9-r3rr-9597

Code execution vulnerability in HtmlUnit

Details

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.

Affected packages

EcosystemPackageAffected versions
Mavennet.sourceforge.htmlunit:htmlunit
All versions before 2.37.0 (fixed in 2.37.0)

References