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-2023-49093

CVE-2023-49093: HtmlUnit RCE Vulnerability via XSLT

CVE-2023-49093 is a remote code execution vulnerability in HtmlUnit that enables attackers to execute arbitrary code via XSLT when users browse malicious webpages. This article covers technical details, affected versions, and mitigations.

Published: February 11, 2026

CVE-2023-49093 Overview

CVE-2023-49093 is a Remote Code Execution (RCE) vulnerability affecting HtmlUnit, a GUI-less browser library for Java programs. The vulnerability allows attackers to execute arbitrary code on systems running vulnerable versions of HtmlUnit when the library processes malicious XSLT stylesheets embedded in attacker-controlled web pages. This represents a significant security risk for applications using HtmlUnit for web scraping, automated testing, or headless browsing operations.

Critical Impact

Applications using HtmlUnit to browse untrusted web content are vulnerable to complete system compromise through malicious XSLT processing, potentially leading to unauthorized data access, system manipulation, and lateral movement within enterprise environments.

Affected Products

  • HtmlUnit versions prior to 3.9.0
  • Java applications integrating vulnerable HtmlUnit library versions
  • Automated testing frameworks and web scrapers built on HtmlUnit

Discovery Timeline

  • 2023-12-04 - CVE-2023-49093 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-49093

Vulnerability Analysis

This vulnerability stems from insecure XSLT processing within HtmlUnit's rendering engine. When HtmlUnit browses a webpage containing a malicious XSLT stylesheet, the library fails to properly restrict XSLT extension functions that can execute arbitrary Java code. XSLT (Extensible Stylesheet Language Transformations) is commonly used for XML document transformations, but when improperly configured, XSLT processors can be leveraged to invoke system commands or instantiate arbitrary Java classes.

The attack requires user interaction in the sense that a victim application must navigate to or process content from an attacker-controlled webpage. Once the malicious page is loaded, the XSLT payload executes within the context of the Java application using HtmlUnit, inheriting all permissions of the host process.

Root Cause

The root cause is classified as CWE-94 (Improper Control of Generation of Code). HtmlUnit's XSLT processor was configured without adequate security restrictions, allowing XSLT stylesheets to invoke Java extension functions. This design permits attackers to craft XSLT payloads that leverage Java's reflection capabilities or Runtime execution methods to achieve arbitrary code execution on the target system.

Attack Vector

The attack vector is network-based, requiring the victim application to fetch and process web content from an attacker-controlled source. An attacker would:

  1. Host a malicious webpage containing a crafted XSLT stylesheet with embedded Java code execution payloads
  2. Entice or wait for a vulnerable HtmlUnit-based application to browse the malicious page
  3. When HtmlUnit processes the XSLT content, the malicious code executes with the privileges of the Java application

The vulnerability is exploited through XSLT extension mechanisms that allow calling Java methods from within stylesheets. Attackers can leverage functions like java.lang.Runtime.exec() to execute system commands or instantiate arbitrary classes to perform malicious operations. For detailed technical information on the exploitation mechanism, refer to the GitHub Security Advisory.

Detection Methods for CVE-2023-49093

Indicators of Compromise

  • Unusual outbound network connections from Java applications that typically perform web scraping or testing
  • Unexpected child processes spawned by Java applications using HtmlUnit
  • XSLT-related exceptions or errors in application logs indicating attempted exploitation
  • Suspicious XML/XSLT content in network traffic destined for HtmlUnit-based applications

Detection Strategies

  • Monitor Java application logs for XSLT processing errors or unusual transformation requests
  • Implement network traffic analysis to detect XSLT payloads containing suspicious Java class references (e.g., java.lang.Runtime, java.lang.ProcessBuilder)
  • Deploy endpoint detection rules to identify Java processes spawning unexpected child processes
  • Use SentinelOne's behavioral AI to detect anomalous code execution patterns from Java applications

Monitoring Recommendations

  • Enable verbose logging for applications using HtmlUnit to capture XSLT processing activities
  • Implement egress filtering to restrict network access from web scraping and testing infrastructure
  • Configure alerting for any Java application attempting to execute system commands or access sensitive system resources
  • Regularly audit dependencies in Java applications to identify vulnerable HtmlUnit versions

How to Mitigate CVE-2023-49093

Immediate Actions Required

  • Upgrade HtmlUnit to version 3.9.0 or later immediately across all affected applications
  • Conduct an inventory of all applications using HtmlUnit as a dependency
  • Restrict HtmlUnit-based applications from accessing untrusted web content until patching is complete
  • Review application logs for signs of exploitation attempts

Patch Information

The vulnerability has been patched in HtmlUnit version 3.9.0. Organizations should update their Maven, Gradle, or other dependency management configurations to require the patched version. Detailed information about the security fix is available in the HtmlUnit Change Report and the GitHub Security Advisory.

Workarounds

  • Isolate applications using vulnerable HtmlUnit versions in sandboxed environments with restricted system access
  • Implement URL allowlisting to prevent HtmlUnit from accessing untrusted domains
  • Deploy Web Application Firewalls (WAF) to filter XSLT content in HTTP responses before reaching HtmlUnit
  • Consider running HtmlUnit-based applications with minimal operating system privileges to limit impact of potential exploitation
bash
# Update HtmlUnit dependency in Maven pom.xml
# Ensure version is 3.9.0 or later
mvn versions:use-latest-versions -Dincludes=org.htmlunit:htmlunit

# Verify the updated version
mvn dependency:tree | grep htmlunit

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.8

  • EPSS Probability5.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-94

  • NVD-CWE-noinfo
  • Technical References
  • HtmlUnit Change Report
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2023-26119: Htmlunit RCE Vulnerability via XSLT

  • CVE-2020-5529: HtmlUnit RCE Vulnerability
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