CVE-2020-5529: Code execution vulnerability in HtmlUnit

Summary

21/05/2020
Yes i
High
8.1

CVE-2020-5529: Code execution vulnerability in HtmlUnit. Affects net.sourceforge.htmlunit:htmlunit versions < 2.37.0. Fixed in 2.37.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

HtmlUnit is a Java-based library for simulating web browsing and automating web interactions. It provides a way to interact with web pages programmatically, allowing developers to perform tasks such as form submission, page navigation, and content extraction. HtmlUnit is commonly used in web scraping, testing, and automation scenarios. However, prior to version 2.37.0, HtmlUnit is vulnerable to code execution attacks.

Vulnerability Detail

The vulnerability in HtmlUnit arises from improper initialization of the Rhino engine, which is used for JavaScript execution. This flaw allows an attacker to inject malicious JavaScript code that can execute arbitrary Java code on the application. This can lead to various security risks, including remote code execution, data theft, and unauthorized access to sensitive information. Additionally, when HtmlUnit is embedded in an Android application, the Android-specific initialization of the Rhino engine is also done improperly, making it susceptible to the same code execution vulnerability.

How To Fix

Minimum fixed version

2.37.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update HtmlUnit to the fixed version as soon as possible to ensure the security of the application.

Conclusion

The code execution vulnerability in HtmlUnit can have severe consequences, including remote code execution and unauthorized access to sensitive information. It is crucial to update HtmlUnit to version 2.37.0 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for net.sourceforge.htmlunit:htmlunit →

Share this vulnerability

FAQ

HtmlUnit is a Java-based library for simulating web browsing and automating web interactions. It allows developers to interact with web pages programmatically.

This vulnerability allows an attacker to execute arbitrary Java code on the application, potentially leading to remote code execution, data theft, and unauthorized access to sensitive information.

To fix this vulnerability, update HtmlUnit to version 2.37.0 or later. Make sure to update your Maven dependencies accordingly.

There is no known workaround for this vulnerability. It is essential to update HtmlUnit to the fixed version.

You can find more information about HtmlUnit on the official website or the project's GitHub repository.

Related vulnerabilities

Recent vulnerabilities recorded for net.sourceforge.htmlunit:htmlunit.

How To Fix

Minimum fixed version

2.37.0

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback