The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2022-24891

CVE-2022-24891: OWASP ESAPI XSS Vulnerability

CVE-2022-24891 is a cross-site scripting vulnerability in OWASP Enterprise Security API caused by incorrect regex in antisamy-esapi.xml that fails to sanitize javascript: URLs. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 17, 2026

CVE-2022-24891 Overview

CVE-2022-24891 is a Cross-Site Scripting (XSS) vulnerability affecting OWASP ESAPI (Enterprise Security API), a widely used open-source web application security control library. The vulnerability exists in versions prior to 2.3.0.0 due to an incorrect regular expression for "onsiteURL" in the antisamy-esapi.xml configuration file. This flaw allows javascript: URLs to bypass the sanitization process, enabling attackers to inject malicious scripts into web applications that rely on ESAPI for input validation.

Critical Impact

Applications using vulnerable ESAPI versions may be susceptible to XSS attacks, allowing attackers to execute arbitrary JavaScript in users' browsers, potentially leading to session hijacking, credential theft, or defacement.

Affected Products

  • OWASP Enterprise Security API (versions prior to 2.3.0.0)
  • Oracle WebLogic Server (versions 12.2.1.3.0, 12.2.1.4.0, 14.1.1.0.0)
  • NetApp Active IQ Unified Manager (Linux, VMware vSphere, Windows)
  • NetApp OnCommand Workflow Automation

Discovery Timeline

  • April 27, 2022 - CVE-2022-24891 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2022-24891

Vulnerability Analysis

The vulnerability stems from a flawed regular expression pattern used to validate on-site URLs within the AntiSamy component of ESAPI. The antisamy-esapi.xml configuration file contains regex patterns designed to sanitize user input and prevent XSS attacks. However, the regular expression for the "onsiteURL" directive fails to properly identify and block javascript: protocol URLs.

When a web application processes user-supplied URLs through ESAPI's validation routines, the defective regex pattern allows certain malformed javascript: URLs to pass through the sanitization filter. This creates an opportunity for attackers to inject executable JavaScript code into the application, which will then be rendered in victims' browsers.

The vulnerability is particularly concerning because ESAPI is explicitly designed as a security library. Developers integrating ESAPI into their applications expect it to protect against XSS attacks, making this bypass especially dangerous as it undermines the security assumptions of the application.

Root Cause

The root cause is an incorrect regular expression pattern in the antisamy-esapi.xml configuration file. The "onsiteURL" regex was designed to match and allow legitimate site URLs while blocking potentially dangerous protocols. However, the pattern did not account for all variations of javascript: URL encoding or formatting, allowing certain payloads to evade detection.

The AntiSamy library uses these regex patterns during HTML sanitization to determine which URL schemes are safe. When the pattern fails to match a malicious URL, it may be incorrectly classified as safe and passed through to the output without proper encoding or rejection.

Attack Vector

The attack vector is network-based and requires user interaction. An attacker can exploit this vulnerability by crafting a malicious URL containing JavaScript code that bypasses the flawed regex pattern. The attack scenario typically involves:

  1. The attacker identifies a web application using a vulnerable version of ESAPI for input sanitization
  2. The attacker crafts a specially formatted javascript: URL that evades the "onsiteURL" regex pattern
  3. The malicious URL is submitted to the application through a form field, URL parameter, or other input mechanism
  4. ESAPI's antisamy module processes the input but fails to sanitize the malicious URL
  5. The unsanitized URL is rendered in the victim's browser, executing the attacker's JavaScript code

The vulnerability requires the victim to interact with the malicious content, such as clicking a link or viewing a page containing the injected script. Once executed, the attacker's script runs with the same privileges as the legitimate application code in the victim's browser context.

Detection Methods for CVE-2022-24891

Indicators of Compromise

  • Unusual JavaScript execution patterns in web application logs that include encoded javascript: protocol handlers
  • HTTP requests containing obfuscated or unusual URL-encoded sequences targeting input fields processed by ESAPI
  • Web application firewall logs showing attempted XSS payloads that bypass standard sanitization
  • User reports of unexpected browser behavior or redirects when interacting with application forms

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block javascript: protocol variations in URL parameters and form inputs
  • Enable detailed logging for ESAPI validation operations to identify sanitization bypass attempts
  • Conduct regular code audits to identify applications using vulnerable ESAPI versions (prior to 2.3.0.0)
  • Deploy runtime application self-protection (RASP) solutions to detect anomalous script execution patterns

Monitoring Recommendations

  • Monitor web server access logs for URL patterns containing encoded or obfuscated javascript: strings
  • Configure security information and event management (SIEM) alerts for XSS attack signatures specific to ESAPI bypass techniques
  • Implement Content Security Policy (CSP) headers and monitor for violations that may indicate exploitation attempts
  • Review browser console errors and CSP violation reports for signs of blocked script injection

How to Mitigate CVE-2022-24891

Immediate Actions Required

  • Upgrade ESAPI to version 2.3.0.0 or later, which contains the corrected regular expression pattern
  • Review and audit all applications using ESAPI to identify affected deployments
  • Implement additional input validation layers as defense-in-depth while upgrades are scheduled
  • Apply vendor patches for Oracle WebLogic Server and NetApp products as documented in their respective security advisories

Patch Information

The vulnerability is addressed in ESAPI version 2.3.0.0. Organizations should upgrade to this version or later to remediate the vulnerability. Detailed information about the fix is available in the ESAPI Release Notes 2.3.0.0 and the GitHub Security Advisory GHSA-q77q-vx4q-xx6q.

For Oracle WebLogic Server deployments, refer to the Oracle Security Alert CPU July 2022 for applicable patches. NetApp customers should review the NetApp Security Advisory NTAP-20230127-0014 for guidance on affected products.

Workarounds

  • Manually edit the antisamy-esapi.xml configuration file to correct the "onsiteURL" regular expression as detailed in the maintainers' security bulletin
  • Implement Content Security Policy (CSP) headers that restrict inline script execution and limit script sources to trusted domains
  • Add application-level URL validation that explicitly blocks javascript: protocol URLs before passing input to ESAPI
  • Deploy a web application firewall with rules specifically targeting javascript: URL variations to provide an additional layer of protection
bash
# Verify ESAPI version in Maven project
mvn dependency:tree | grep esapi

# Check for vulnerable versions in Gradle projects
gradle dependencies | grep esapi

# Locate antisamy-esapi.xml configuration files for manual review
find /path/to/application -name "antisamy-esapi.xml" -type f

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechOwasp Enterprise Security Api

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability1.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79

  • NVD-CWE-Other
  • Technical References
  • GitHub ESAPI Release Notes 2.3.0.0

  • GitHub Security Advisory GHSA-q77q-vx4q-xx6q

  • NetApp Security Advisory NTAP-20230127-0014

  • Debian LTS Announcement July 2025
  • Vendor Resources
  • GitHub ESAPI Security Bulletin 8

  • Oracle Security Alert CPU July 2022
  • Related CVEs
  • CVE-2022-23457: OWASP ESAPI Path Traversal 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