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

CVE-2020-28042: ServiceStack Auth Bypass Vulnerability

CVE-2020-28042 is an authentication bypass flaw in ServiceStack affecting JWT signature verification. Attackers can exploit weak signature validation to bypass authentication. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 4, 2026

CVE-2020-28042 Overview

CVE-2020-28042 is an authentication bypass vulnerability in ServiceStack before version 5.9.2 that mishandles JWT signature verification. The flaw allows attackers to bypass signature validation unless an application implements a custom ValidateToken function that enforces a minimum length requirement for signatures. This vulnerability enables attackers to forge authentication tokens and potentially gain unauthorized access to protected resources.

Critical Impact

Attackers can bypass JWT signature verification to forge authentication tokens, potentially gaining unauthorized access to protected endpoints and sensitive data within ServiceStack-based applications.

Affected Products

  • ServiceStack versions prior to 5.9.2
  • Applications using ServiceStack JWT authentication without custom ValidateToken implementations
  • ServiceStack-based web services and APIs relying on default JWT verification

Discovery Timeline

  • 2020-11-02 - CVE CVE-2020-28042 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-28042

Vulnerability Analysis

This vulnerability falls under CWE-347 (Improper Verification of Cryptographic Signature). The root issue lies in the EquivalentTo function within ServiceStack's EnumerableExtensions.cs file, which performs byte array comparisons for JWT signature verification. The original implementation failed to properly validate null values and length mismatches before performing the comparison operation.

The vulnerable code would iterate through the other byte array without first verifying that both arrays are non-null and of equal length. This creates a scenario where an attacker could supply a signature of any length (including an empty signature), and the comparison logic would not properly reject it. The comparison loop used XOR operations to compare bytes, but without length validation, this approach is fundamentally flawed.

Root Cause

The vulnerability stems from missing null checks and length validation in the EquivalentTo byte array comparison function. Before the patch, the function would begin XOR comparisons immediately without verifying that both byte arrays exist and have matching lengths. This oversight allowed malformed JWT signatures to potentially pass verification.

Attack Vector

The attack exploits the network-accessible JWT authentication mechanism. An attacker can craft a JWT token with a manipulated or empty signature and submit it to a ServiceStack application. Due to the improper signature verification logic, tokens that should be rejected may be accepted as valid, allowing unauthorized access without requiring any user interaction or special privileges.

The vulnerability is exploitable over the network with low attack complexity, requiring no privileges or user interaction to execute.

text
         [MethodImpl(MethodImplOptions.AggressiveInlining)]
         public static bool EquivalentTo(this byte[] bytes, byte[] other)
         {
+            if (bytes == null || other == null)
+                return bytes == other;
+
+            if (bytes.Length != other.Length)
+                return false;
+
             var compare = 0;
             for (var i = 0; i < other.Length; i++)
                 compare |= other[i] ^ bytes[i];

Source: ServiceStack Commit Update

Detection Methods for CVE-2020-28042

Indicators of Compromise

  • Authentication events with abnormally short or empty JWT signatures in request logs
  • Successful authentication for tokens that contain malformed or missing signature components
  • Unexpected access patterns to protected resources without valid credentials
  • JWT tokens with signature lengths that deviate from expected cryptographic output sizes

Detection Strategies

  • Implement logging and alerting on JWT validation events, specifically monitoring for tokens with zero-length or unusually short signatures
  • Review authentication logs for successful logins that bypass normal JWT signature validation paths
  • Deploy application-level monitoring to detect authentication anomalies and unusual access patterns
  • Audit ServiceStack version deployments across your infrastructure to identify vulnerable instances

Monitoring Recommendations

  • Enable verbose logging for JWT authentication events in ServiceStack applications
  • Monitor for authentication attempts with malformed JWT structures using web application firewalls
  • Set up alerts for successful authentication events that originate from unusual sources or patterns
  • Track and baseline normal JWT token sizes to identify statistical anomalies

How to Mitigate CVE-2020-28042

Immediate Actions Required

  • Upgrade ServiceStack to version 5.9.2 or later immediately to receive the security fix
  • Audit all applications using ServiceStack JWT authentication for potential exploitation
  • Review authentication logs for any evidence of signature bypass attempts
  • Implement additional authentication controls as a defense-in-depth measure while patching

Patch Information

The vulnerability has been addressed in ServiceStack version 5.9.2. The fix adds proper null checks and length validation to the EquivalentTo function before performing byte array comparisons. The security patch is available through the ServiceStack Release Announcement and the ServiceStack Commit Update can be reviewed for technical details.

For additional security context and advisory information, refer to the Shielder Security Advisory and Shielder Blog on JWT Bypass.

Workarounds

  • Implement a custom ValidateToken function that enforces minimum signature length requirements
  • Add application-layer validation to reject JWT tokens with signatures shorter than expected cryptographic output
  • Deploy a reverse proxy or web application firewall rule to inspect and reject malformed JWT tokens
  • Consider implementing additional authentication mechanisms as a temporary secondary validation layer
bash
# Update ServiceStack to patched version
dotnet add package ServiceStack --version 5.9.2

# Verify installed version
dotnet list package | grep ServiceStack

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechServicestack

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability35.99%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-347
  • Technical References
  • Shielder Security Advisory

  • Shielder Blog on JWT Bypass
  • Vendor Resources
  • ServiceStack Release Announcement

  • ServiceStack Commit Update
  • Related CVEs
  • CVE-2025-6445: ServiceStack FindType 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