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-26119

CVE-2023-26119: Htmlunit RCE Vulnerability via XSLT

CVE-2023-26119 is a remote code execution flaw in Htmlunit that allows attackers to execute arbitrary code via XSLT when users browse malicious webpages. This article covers technical details, affected versions, and mitigation.

Published: February 4, 2026

CVE-2023-26119 Overview

CVE-2023-26119 is a Remote Code Execution (RCE) vulnerability affecting HtmlUnit, a popular headless browser library for Java. Versions of the package net.sourceforge.htmlunit:htmlunit from version 0 up to (but not including) 3.0.0 are vulnerable to Remote Code Execution via XSLT processing when browsing an attacker-controlled webpage. This vulnerability allows attackers to execute arbitrary code on systems running vulnerable HtmlUnit versions by serving malicious XSLT content.

Critical Impact

Attackers can achieve full remote code execution by luring applications using HtmlUnit to process maliciously crafted XSLT content, potentially leading to complete system compromise.

Affected Products

  • HtmlUnit versions prior to 3.0.0
  • Applications using net.sourceforge.htmlunit:htmlunit dependency
  • Java applications leveraging HtmlUnit for web scraping or headless browser automation

Discovery Timeline

  • 2023-04-03 - CVE-2023-26119 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-26119

Vulnerability Analysis

This vulnerability exists in HtmlUnit's XSLT (Extensible Stylesheet Language Transformations) processor implementation. The core issue stems from the XSLT processor not having secure processing features enabled, which allows malicious XSLT stylesheets to execute arbitrary Java code through extension functions. When HtmlUnit processes a webpage containing malicious XSLT content, the attacker can leverage XSLT's extensibility features to invoke arbitrary Java methods, effectively achieving code execution within the context of the application.

The vulnerability is classified under CWE-94 (Improper Control of Generation of Code / Code Injection), as attackers can inject and execute code through the XSLT processing mechanism. This attack requires no authentication or user interaction beyond the target application visiting a malicious webpage controlled by the attacker.

Root Cause

The root cause is the absence of the FEATURE_SECURE_PROCESSING flag in HtmlUnit's XSLT processor configuration. Without this security feature enabled, the XSLT processor permits dangerous operations including:

  • Execution of arbitrary Java extension functions
  • Access to external resources and file systems
  • Invocation of runtime commands through Java reflection

The secure processing feature is designed specifically to prevent such dangerous operations by restricting the XSLT processor's capabilities to safe transformations only.

Attack Vector

The attack vector is network-based and requires no privileges or user interaction. An attacker hosts a malicious webpage containing crafted XSLT content. When a vulnerable HtmlUnit application browses or processes this page, the XSLT processor parses the malicious stylesheet and executes the embedded code. This makes the vulnerability particularly dangerous for web scraping applications, automated testing frameworks, and any service that uses HtmlUnit to render or process external web content.

The security patch enables FEATURE_SECURE_PROCESSING for the XSLT processor:

java
import java.util.HashMap;
import java.util.Map;

import javax.xml.XMLConstants;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.OutputKeys;
import javax.xml.transform.Result;

Source: HtmlUnit GitHub Commit

The changelog entry documenting the fix:

text
 
     <body>
         <release version="2.70.0" date="Febuary xx, 2023" description="Bugfixes">
+            <action type="fix" dev="rbri">
+                Enable FEATURE_SECURE_PROCESSING for the XSLT processor.
+            </action>
             <action type="add" dev="rbri">
                 Document disabling of website certificate check in the FAQ.
             </action>

Source: HtmlUnit GitHub Commit

Detection Methods for CVE-2023-26119

Indicators of Compromise

  • Unexpected outbound network connections from Java applications using HtmlUnit
  • Suspicious XSLT processing activity in application logs
  • Unusual Java process spawning or command execution traced to HtmlUnit components
  • Malicious XSLT stylesheets containing Java extension function calls in processed web content

Detection Strategies

  • Monitor for HtmlUnit dependency versions below 3.0.0 in Maven/Gradle dependency trees using software composition analysis (SCA) tools
  • Implement application logging to track XSLT transformations and flag suspicious extension function usage
  • Deploy network monitoring to detect connections to known malicious domains from HtmlUnit-based applications
  • Use runtime application self-protection (RASP) solutions to detect code injection attempts

Monitoring Recommendations

  • Enable detailed logging for XSLTProcessor class activities within HtmlUnit applications
  • Monitor Java process behavior for signs of code injection such as unexpected subprocess creation
  • Implement allowlisting for domains that HtmlUnit applications are permitted to access
  • Review application dependencies regularly with automated vulnerability scanning tools

How to Mitigate CVE-2023-26119

Immediate Actions Required

  • Upgrade HtmlUnit to version 3.0.0 or later immediately
  • Audit all applications using HtmlUnit to identify vulnerable deployments
  • Restrict network access for HtmlUnit-based applications to trusted domains only
  • Consider implementing input validation for URLs processed by HtmlUnit

Patch Information

The vulnerability has been addressed in HtmlUnit version 3.0.0 and later releases. The fix involves enabling FEATURE_SECURE_PROCESSING for the XSLT processor, which restricts dangerous XSLT operations. Organizations should update their Maven or Gradle dependencies to use the patched version. For detailed patch information, refer to the HtmlUnit security commit and the Snyk vulnerability advisory.

Workarounds

  • If immediate upgrade is not possible, implement strict URL allowlisting to prevent HtmlUnit from accessing untrusted domains
  • Deploy network-level controls to block access to external or unknown websites from systems running vulnerable HtmlUnit versions
  • Consider isolating HtmlUnit applications in sandboxed environments with limited permissions
  • Implement content security policies to validate and sanitize XSLT content before processing
bash
# Maven dependency update example
# Update pom.xml to use patched version:
# <dependency>
#     <groupId>net.sourceforge.htmlunit</groupId>
#     <artifactId>htmlunit</artifactId>
#     <version>3.0.0</version>
# </dependency>

# Verify current HtmlUnit version in project
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

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability4.69%

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

  • NVD-CWE-noinfo
  • Technical References
  • Snyk Vuln Advisory

  • SiebenE Blog Analysis
  • Vendor Resources
  • GitHub Commit Details
  • Related CVEs
  • CVE-2023-49093: 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