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-2020-1695

CVE-2020-1695: Redhat Resteasy XSS Vulnerability

CVE-2020-1695 is an XSS flaw in Redhat Resteasy caused by improper input validation that allows header injection. This vulnerability affects versions 3.x.x prior to 3.12.0.Final and 4.x.x prior to 4.6.0.Final.

Published: March 4, 2026

CVE-2020-1695 Overview

A flaw was found in all RESTEasy 3.x.x versions prior to 3.12.0.Final and all RESTEasy 4.x.x versions prior to 4.6.0.Final, where an improper input validation results in returning an illegal header that integrates into the server's response. This flaw may result in an injection, which leads to unexpected behavior when the HTTP response is constructed.

Critical Impact

Attackers can exploit improper input validation in RESTEasy to inject malicious headers into HTTP responses, potentially leading to HTTP response splitting attacks, cache poisoning, or cross-site scripting vulnerabilities.

Affected Products

  • Red Hat RESTEasy versions 3.x.x prior to 3.12.0.Final
  • Red Hat RESTEasy versions 4.x.x prior to 4.6.0.Final
  • Fedora 32 and Fedora 33

Discovery Timeline

  • 2020-05-19 - CVE-2020-1695 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-1695

Vulnerability Analysis

This vulnerability stems from improper input validation (CWE-20) in RESTEasy, a JAX-RS implementation and framework for building RESTful web services on the Java platform. When processing user-controlled input that becomes part of HTTP response headers, RESTEasy fails to properly sanitize or validate the input, allowing attackers to inject newline characters (CRLF) or other control characters that can manipulate the HTTP response structure.

The vulnerability affects the header generation mechanism within RESTEasy, where untrusted data can be incorporated into response headers without adequate validation. This creates an HTTP Response Splitting condition where an attacker can terminate the legitimate header section and inject arbitrary headers or even a complete HTTP response body.

Root Cause

The root cause lies in RESTEasy's failure to validate and sanitize input data before incorporating it into HTTP response headers. Specifically, the framework does not properly filter or reject header values containing carriage return (\r) and line feed (\n) characters, which are used as delimiters in the HTTP protocol. This allows attackers to craft malicious input that breaks out of the intended header context.

Attack Vector

The attack can be conducted remotely over the network without requiring authentication or user interaction. An attacker would submit specially crafted input through any RESTEasy endpoint that reflects user-controlled data in HTTP response headers. This could include:

  • Custom header values set from request parameters
  • Cookie values reflected in responses
  • Redirect URLs or location headers derived from user input

By injecting CRLF sequences followed by malicious headers or content, an attacker can achieve HTTP response splitting, potentially leading to cache poisoning, session fixation, or cross-site scripting attacks depending on the application context.

The vulnerability mechanism involves crafting input with embedded CRLF sequences that, when processed by RESTEasy, terminate the current header and allow injection of additional headers. For example, an attacker might provide a value like legitimate-value\r\nX-Injected-Header: malicious-value which, when not properly sanitized, would result in two separate headers being sent to the client. For detailed technical analysis, refer to the Red Hat Bug Report CVE-2020-1695.

Detection Methods for CVE-2020-1695

Indicators of Compromise

  • Unusual HTTP response headers appearing in web server logs that contain unexpected newline characters or multiple header values
  • Evidence of CRLF injection patterns (%0d%0a, \r\n) in application request logs
  • Cache entries containing unexpected or duplicated content that may indicate cache poisoning
  • Reports of XSS or session manipulation from users despite proper input sanitization elsewhere in the application

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block CRLF injection patterns in incoming requests
  • Deploy runtime application self-protection (RASP) solutions to monitor header generation and flag anomalous patterns
  • Use dependency scanning tools to identify vulnerable RESTEasy versions (3.x.x < 3.12.0.Final and 4.x.x < 4.6.0.Final) in your Java applications
  • Review application code for endpoints that reflect user input in response headers

Monitoring Recommendations

  • Enable detailed logging for HTTP response headers in web servers and application frameworks
  • Configure SIEM rules to alert on patterns indicative of HTTP response splitting attempts
  • Monitor for unusual cache behavior that could indicate successful cache poisoning attacks
  • Implement anomaly detection for HTTP response sizes and header counts that deviate from expected baselines

How to Mitigate CVE-2020-1695

Immediate Actions Required

  • Upgrade RESTEasy 3.x.x installations to version 3.12.0.Final or later
  • Upgrade RESTEasy 4.x.x installations to version 4.6.0.Final or later
  • Audit application code for endpoints that incorporate user input into HTTP response headers
  • Deploy WAF rules to block CRLF injection patterns as a temporary mitigation while patching

Patch Information

Red Hat has released patched versions of RESTEasy that address this vulnerability. The fix is included in RESTEasy 3.12.0.Final for the 3.x branch and 4.6.0.Final for the 4.x branch. Fedora users should apply the updates announced in the Fedora Package Announcement. For additional details, consult the Red Hat Bug Report CVE-2020-1695.

Workarounds

  • Implement custom input validation filters at the application level to reject header values containing CRLF characters before they reach RESTEasy
  • Use a reverse proxy or WAF configured to sanitize or reject requests containing HTTP response splitting patterns
  • Review and restrict which application endpoints can set custom HTTP headers based on user input
  • Consider implementing Content Security Policy (CSP) headers to mitigate potential XSS impact from successful exploitation
bash
# Example: Check RESTEasy version in Maven project
mvn dependency:tree | grep resteasy

# Update RESTEasy dependency in pom.xml to patched version
# For 3.x branch: <version>3.12.0.Final</version>
# For 4.x branch: <version>4.6.0.Final</version>

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechResteasy

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.75%

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

  • NVD-CWE-Other
  • Technical References
  • Fedora Package Announcement

  • Fedora Package Announcement
  • Vendor Resources
  • Red Hat Bug Report CVE-2020-1695
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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