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
    • 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-29577

CVE-2022-29577: Antisamy XSS Vulnerability via HTML Tag

CVE-2022-29577 is an XSS vulnerability in OWASP AntiSamy that allows attackers to inject malicious scripts via HTML tag smuggling on STYLE content. This article covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-29577 Overview

CVE-2022-29577 is a Cross-Site Scripting (XSS) vulnerability affecting OWASP AntiSamy before version 1.6.7. The vulnerability allows attackers to inject malicious scripts via HTML tag smuggling on STYLE content with crafted input. The output serializer does not properly encode the supposed Cascading Style Sheets (CSS) content, enabling XSS attacks that bypass AntiSamy's sanitization mechanisms. This issue exists because of an incomplete fix for CVE-2022-28367.

Critical Impact

Applications using vulnerable versions of AntiSamy for HTML sanitization may be susceptible to XSS attacks, allowing attackers to execute arbitrary JavaScript in users' browsers, potentially leading to session hijacking, credential theft, or malicious actions performed on behalf of authenticated users.

Affected Products

  • OWASP AntiSamy versions prior to 1.6.7
  • Oracle Enterprise Manager Base Platform versions 13.4.0.0 and 13.5.0.0
  • Oracle WebLogic Server versions 12.2.1.3.0, 12.2.1.4.0, and 14.1.1.0.0

Discovery Timeline

  • April 21, 2022 - CVE-2022-29577 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2022-29577

Vulnerability Analysis

This vulnerability stems from improper encoding of CSS content within STYLE tags during the HTML sanitization process. OWASP AntiSamy is a Java library designed to sanitize HTML input to prevent XSS attacks. However, in versions prior to 1.6.7, the output serializer fails to properly encode CSS content, creating an opportunity for attackers to smuggle malicious HTML tags within STYLE elements.

The vulnerability represents an incomplete fix for the previously disclosed CVE-2022-28367. While the initial patch addressed certain aspects of the tag smuggling technique, it did not fully remediate all attack vectors, allowing sophisticated payloads to still bypass the sanitization logic.

Root Cause

The root cause lies in the AntiSamyDOMScanner.java class, specifically in how child nodes within style tags are processed. The vulnerability occurs because the child node count was being recalculated during iteration, which could lead to improper handling of STYLE tag content. When processing style elements, the scanner failed to properly track and remove child nodes that contained smuggled HTML content, allowing malicious payloads to survive the sanitization process.

Attack Vector

The attack vector is network-based and requires user interaction. An attacker can craft malicious input containing specially formatted STYLE content that exploits the improper encoding in the output serializer. When this input passes through AntiSamy's sanitization and is subsequently rendered in a victim's browser, the smuggled HTML tags execute, resulting in XSS. The attack typically targets web applications that accept user-generated HTML content and rely on AntiSamy for sanitization.

java
         CssScanner styleScanner = new CssScanner(policy, messages, policy.isEmbedStyleSheets());
 
         try {
-            if (ele.getChildNodes().getLength() > 0) {
+            int childNodesCount = ele.getChildNodes().getLength();
+            if (childNodesCount > 0) {
                 StringBuffer toScan = new StringBuffer();
 
                 for (int i = 0; i < ele.getChildNodes().getLength(); i++) {

Source: GitHub Commit

The patch captures the child node count before iteration begins, preventing issues that arise from the collection being modified during processing.

Detection Methods for CVE-2022-29577

Indicators of Compromise

  • Unusual STYLE tag content in user-submitted HTML that contains HTML-like structures or encoded characters
  • Web application logs showing attempts to inject malformed CSS content with embedded script fragments
  • Browser console errors indicating unexpected script execution from sanitized content

Detection Strategies

  • Implement web application firewall (WAF) rules to detect HTML tag smuggling patterns within STYLE elements
  • Monitor application logs for unusual STYLE content submissions containing angle brackets or script-related keywords
  • Conduct periodic dependency scans to identify applications using AntiSamy versions prior to 1.6.7
  • Deploy content security policy (CSP) headers to detect and report unexpected inline script execution

Monitoring Recommendations

  • Enable verbose logging for HTML sanitization operations to capture suspicious input patterns
  • Monitor client-side error reporting for unexpected JavaScript execution in user-generated content areas
  • Track dependency versions across your application portfolio using software composition analysis (SCA) tools
  • Implement real-time alerting for CSP violation reports that may indicate attempted XSS exploitation

How to Mitigate CVE-2022-29577

Immediate Actions Required

  • Upgrade OWASP AntiSamy to version 1.6.7 or later immediately across all affected applications
  • For Oracle products, apply the patches referenced in the Oracle Security Alert July 2022
  • Review and audit any applications that process user-submitted HTML content for potential exposure
  • Implement defense-in-depth measures including Content Security Policy (CSP) headers to mitigate XSS impact

Patch Information

The vulnerability has been patched in AntiSamy version 1.6.7. The fix properly handles child node counting during style tag processing to prevent HTML tag smuggling. The patch commit is available in the AntiSamy GitHub repository. For Oracle products, patches are available through the Oracle Critical Patch Update July 2022.

Workarounds

  • If immediate patching is not possible, implement additional input validation layers before content reaches AntiSamy
  • Deploy strict Content Security Policy headers to prevent execution of any inline scripts
  • Consider temporarily disabling STYLE tag acceptance in AntiSamy policy configuration until upgrade is complete
  • Implement output encoding as an additional layer when rendering AntiSamy-sanitized content
bash
# Maven dependency update example
# Update your pom.xml to use the patched version:
# <dependency>
#     <groupId>org.owasp.antisamy</groupId>
#     <artifactId>antisamy</artifactId>
#     <version>1.6.7</version>
# </dependency>

# Verify the upgrade with:
mvn dependency:tree | grep antisamy

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechOracle Weblogic Server

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.24%

  • 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
  • Technical References
  • GitHub Release v1.6.7
  • Vendor Resources
  • GitHub Commit Update

  • Oracle Security Alert July 2022
  • Related CVEs
  • CVE-2020-14882: Oracle WebLogic Server RCE Vulnerability

  • CVE-2020-14883: Oracle WebLogic Server RCE Vulnerability

  • CVE-2020-2551: Oracle WebLogic Server RCE Vulnerability

  • CVE-2020-2883: Oracle WebLogic Server 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