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

CVE-2022-45143: Apache Tomcat XSS Vulnerability

CVE-2022-45143 is an XSS flaw in Apache Tomcat's JsonErrorReportValve that allows attackers to inject malicious content through unescaped error values. This article covers technical details, affected versions, and mitigation.

Published: February 18, 2026

CVE-2022-45143 Overview

The JsonErrorReportValve in Apache Tomcat contains an improper output encoding vulnerability that allows attackers to inject or manipulate JSON output. The vulnerability exists because the type, message, and description values are not properly escaped before being included in the JSON error response. Since these values can be constructed from user-provided data in certain circumstances, malicious users can supply crafted input that invalidates or manipulates the JSON output structure.

Critical Impact

Attackers can exploit this vulnerability to manipulate JSON error responses, potentially leading to JSON injection attacks that could compromise data integrity or enable further exploitation of downstream systems parsing the malformed JSON.

Affected Products

  • Apache Tomcat 8.5.83
  • Apache Tomcat 9.0.40 to 9.0.68
  • Apache Tomcat 10.1.0-M1 to 10.1.1

Discovery Timeline

  • 2023-01-03 - CVE CVE-2022-45143 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-45143

Vulnerability Analysis

This vulnerability is classified under CWE-116 (Improper Encoding or Escaping of Output), which occurs when software constructs output using user-controlled input without properly neutralizing special elements that could be interpreted incorrectly by downstream components.

The JsonErrorReportValve is a Tomcat valve that formats error responses as JSON for client applications expecting JSON-formatted error messages. When an error occurs, the valve constructs a JSON response containing the error type, message, and description. The flaw lies in the valve's failure to properly escape these values before embedding them in the JSON structure.

This vulnerability can be exploited over the network without requiring authentication or user interaction. While it does not directly compromise confidentiality or availability, it poses a significant integrity risk by allowing manipulation of the application's JSON output.

Root Cause

The root cause of this vulnerability is the lack of proper JSON escaping routines applied to user-controllable input values before they are concatenated into the JSON error response. The JsonErrorReportValve directly inserts the type, message, and description values into the JSON output without sanitizing special characters such as quotes, backslashes, or control characters that have special meaning in JSON syntax.

Attack Vector

An attacker can exploit this vulnerability by providing specially crafted input that contains JSON control characters or structure elements. When this input is reflected in an error response through the JsonErrorReportValve, it can break out of the intended JSON string context and inject arbitrary JSON content.

The attack can be executed by triggering an error condition where user-supplied data is included in the error message, type, or description fields. For example, submitting a request that causes an exception where the exception message contains attacker-controlled content could result in JSON injection.

When exploited, this vulnerability can manipulate the structure of the JSON response, potentially injecting additional JSON keys/values, corrupting the response parsing by downstream systems, or enabling more sophisticated attacks against applications that consume and trust the JSON error responses without additional validation.

Detection Methods for CVE-2022-45143

Indicators of Compromise

  • Malformed JSON responses from Apache Tomcat error pages containing unexpected JSON structures
  • Error logs showing unusual characters or escape sequences in error messages processed by JsonErrorReportValve
  • Downstream systems reporting JSON parsing failures when processing Tomcat error responses

Detection Strategies

  • Monitor application logs for error responses containing suspicious characters such as unescaped quotes, backslashes, or newlines within JSON error messages
  • Implement JSON schema validation on downstream systems to detect malformed or manipulated error responses
  • Deploy web application firewall (WAF) rules to detect potential JSON injection payloads in incoming requests

Monitoring Recommendations

  • Enable verbose logging for the JsonErrorReportValve component to capture all error response generation events
  • Configure alerting for any JSON parsing exceptions in systems that consume Tomcat error responses
  • Review access logs for patterns of requests designed to trigger error conditions with crafted payloads

How to Mitigate CVE-2022-45143

Immediate Actions Required

  • Upgrade Apache Tomcat to a patched version: 8.5.84 or later, 9.0.69 or later, or 10.1.2 or later
  • If immediate upgrade is not possible, consider disabling the JsonErrorReportValve and using the default HTML error reporting instead
  • Review and audit any downstream systems that parse JSON error responses from Tomcat for additional input validation

Patch Information

Apache has released security patches addressing this vulnerability. Organizations should upgrade to the following fixed versions:

  • Apache Tomcat 8.5.x: Upgrade to version 8.5.84 or later
  • Apache Tomcat 9.0.x: Upgrade to version 9.0.69 or later
  • Apache Tomcat 10.1.x: Upgrade to version 10.1.2 or later

For detailed information, see the Apache Mailing List Thread. Additional advisories are available from Gentoo GLSA 2023-05-37 and NetApp Security Advisory NTAP-20230216-0009.

Workarounds

  • Disable the JsonErrorReportValve in the Tomcat configuration if JSON error reporting is not required
  • Implement a custom error valve that properly escapes all user-controllable values before including them in JSON output
  • Add an intermediary reverse proxy or WAF that sanitizes error responses before they reach clients
bash
# Configuration example: Disable JsonErrorReportValve in server.xml
# Comment out or remove any JsonErrorReportValve configuration
# <Valve className="org.apache.catalina.valves.JsonErrorReportValve" />

# Alternative: Use the default ErrorReportValve instead
# Ensure your Host or Engine element uses the standard valve:
# <Valve className="org.apache.catalina.valves.ErrorReportValve" 
#        showReport="false" 
#        showServerInfo="false" />

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechApache Tomcat

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability1.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-116
  • Technical References
  • Gentoo GLSA 2023-05-37

  • NetApp Security Advisory NTAP-20230216-0009
  • Vendor Resources
  • Apache Mailing List Thread
  • Related CVEs
  • CVE-2022-34305: Apache Tomcat XSS Vulnerability

  • CVE-2016-20026: ZKTeco ZKBioSecurity RCE Vulnerability

  • CVE-2026-24734: Apache Tomcat Auth Bypass Vulnerability

  • CVE-2025-66614: Apache Tomcat Auth Bypass Vulnerability
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