Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-5529

CVE-2020-5529: HtmlUnit RCE Vulnerability

CVE-2020-5529 is a remote code execution vulnerability in HtmlUnit that allows malicious JavaScript to execute arbitrary Java code due to improper Rhino engine initialization. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 4, 2026

CVE-2020-5529 Overview

CVE-2020-5529 is a code execution vulnerability affecting HtmlUnit prior to version 2.37.0. The vulnerability stems from improper initialization of the Rhino JavaScript engine, which allows malicious JavaScript code to execute arbitrary Java code on the application. Additionally, when HtmlUnit is embedded in Android applications, the Android-specific initialization of the Rhino engine is also performed improperly, creating another attack path for malicious JavaScript to execute arbitrary Java code.

Critical Impact

Attackers can leverage malicious JavaScript to execute arbitrary Java code on vulnerable applications using HtmlUnit, potentially leading to complete system compromise, data exfiltration, or further lateral movement within affected environments.

Affected Products

  • HtmlUnit versions prior to 2.37.0
  • Debian Linux 9.0
  • Canonical Ubuntu Linux 16.04 (ESM)
  • Apache Camel (when using HtmlUnit dependency)

Discovery Timeline

  • 2020-02-11 - CVE-2020-5529 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-5529

Vulnerability Analysis

This vulnerability is classified under CWE-665 (Improper Initialization) and CWE-94 (Code Injection). The core issue lies in how HtmlUnit initializes the Mozilla Rhino JavaScript engine, which is used to interpret and execute JavaScript within headless browser simulations. Due to improper initialization, the Rhino engine does not properly sandbox JavaScript execution, allowing malicious scripts to break out of the JavaScript context and invoke arbitrary Java classes and methods.

The vulnerability is exploitable over the network without requiring any user interaction or privileges. However, the attack complexity is considered high because successful exploitation requires specific conditions to be met, including the ability to inject or control JavaScript content processed by HtmlUnit.

When HtmlUnit is used in Android applications, the vulnerability is compounded by additional improper Android-specific Rhino initialization, creating a dual attack surface on mobile platforms.

Root Cause

The root cause is improper initialization of the Rhino JavaScript engine (CWE-665). HtmlUnit failed to properly configure security restrictions and sandboxing for the Rhino engine, allowing JavaScript code to access Java reflection APIs and invoke arbitrary Java code. This improper initialization effectively bridges the JavaScript execution environment with the underlying Java runtime, violating the expected security boundary between interpreted JavaScript and the host application.

Attack Vector

The attack vector is network-based, targeting applications that process untrusted or attacker-controlled JavaScript content through HtmlUnit. An attacker can craft malicious JavaScript that, when processed by a vulnerable HtmlUnit instance, escapes the JavaScript sandbox and executes arbitrary Java code. This could occur in scenarios such as:

  • Web scraping applications processing malicious web pages
  • Automated testing frameworks executing tests against compromised sites
  • Any application using HtmlUnit to render or analyze untrusted HTML/JavaScript content

The malicious JavaScript leverages the improperly initialized Rhino engine to access Java classes through reflection, enabling arbitrary Java code execution with the privileges of the running application.

Detection Methods for CVE-2020-5529

Indicators of Compromise

  • Unexpected Java process behavior or system calls originating from HtmlUnit-based applications
  • JavaScript content containing Java class references such as java.lang.Runtime or java.lang.ProcessBuilder
  • Anomalous network connections or file system access from web scraping or testing applications
  • Log entries showing JavaScript errors related to Java class access attempts

Detection Strategies

  • Monitor application dependencies for HtmlUnit versions prior to 2.37.0 using software composition analysis (SCA) tools
  • Implement runtime application self-protection (RASP) to detect JavaScript attempting to invoke Java reflection APIs
  • Review application logs for suspicious JavaScript execution patterns or unexpected Java method invocations
  • Deploy network intrusion detection to identify responses containing potentially malicious JavaScript targeting Rhino vulnerabilities

Monitoring Recommendations

  • Enable verbose logging for HtmlUnit-based applications to capture JavaScript execution details
  • Monitor system call activity from Java processes running HtmlUnit for signs of code execution
  • Implement file integrity monitoring on systems hosting vulnerable applications
  • Track outbound network connections from HtmlUnit-based services for potential data exfiltration

How to Mitigate CVE-2020-5529

Immediate Actions Required

  • Upgrade HtmlUnit to version 2.37.0 or later immediately
  • Audit all applications and dependencies that may include HtmlUnit as a transitive dependency
  • Apply operating system security patches for Debian and Ubuntu as referenced in vendor advisories
  • Review and restrict network access to applications using HtmlUnit to limit exposure to untrusted content

Patch Information

The vulnerability has been addressed in HtmlUnit version 2.37.0. The fix includes proper initialization and sandboxing of the Rhino JavaScript engine to prevent JavaScript from accessing arbitrary Java classes and methods. Users should upgrade to 2.37.0 or later.

For detailed information about the fix, see the HtmlUnit 2.37.0 Release Notes.

Additional security advisories are available from:

  • JVN Security Vulnerability Report
  • Debian LTS Security Announcement
  • Ubuntu Security Notice USN-4584-1

Workarounds

  • Restrict HtmlUnit-based applications to process only trusted content sources until patching is complete
  • Implement network segmentation to isolate applications using vulnerable HtmlUnit versions
  • Consider disabling JavaScript processing in HtmlUnit if not required for application functionality
  • Deploy web application firewalls (WAF) to filter potentially malicious JavaScript content before it reaches vulnerable applications
bash
# Maven dependency update example
# Update pom.xml to use patched HtmlUnit version
# Replace:
#   <dependency>
#     <groupId>net.sourceforge.htmlunit</groupId>
#     <artifactId>htmlunit</artifactId>
#     <version>2.36.0</version>
#   </dependency>
# With:
#   <dependency>
#     <groupId>net.sourceforge.htmlunit</groupId>
#     <artifactId>htmlunit</artifactId>
#     <version>2.37.0</version>
#   </dependency>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechHtmlunit

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability2.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-665

  • CWE-94
  • Technical References
  • GitHub Release Note 2.37.0

  • JVN Security Vulnerability Report

  • Apache Camel Commit Discussion

  • Debian LTS Security Announcement

  • Ubuntu Security Notice USN-4584-1
  • Related CVEs
  • CVE-2023-49093: HtmlUnit RCE Vulnerability via XSLT

  • CVE-2023-26119: Htmlunit RCE Vulnerability via XSLT
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English