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-2022-23539

CVE-2022-23539: Auth0 Jsonwebtoken Auth Bypass Vulnerability

CVE-2022-23539 is an auth bypass vulnerability in Auth0 Jsonwebtoken that allows insecure key types for signature verification. This weakness enables attackers to bypass authentication. This article covers technical details, affected versions, security impact, and mitigation strategies.

Published: February 18, 2026

CVE-2022-23539 Overview

CVE-2022-23539 is a cryptographic vulnerability in the Auth0 jsonwebtoken library for Node.js that allows misconfiguration of key types used for signature verification. Versions <=8.5.1 of the library could be configured to use legacy, insecure key types with incompatible algorithms, such as using DSA keys with the RS256 algorithm. This algorithm/key type mismatch can lead to improper token validation and potential authentication bypass scenarios.

Critical Impact

Applications using affected versions may incorrectly validate JWT tokens due to insecure key type and algorithm combinations, potentially allowing attackers to forge authentication tokens or bypass security controls.

Affected Products

  • Auth0 jsonwebtoken versions <=8.5.1 for Node.js
  • Applications implementing JWT authentication using the vulnerable library
  • Any downstream dependencies relying on auth0/node-jsonwebtoken

Discovery Timeline

  • 2022-12-23 - CVE CVE-2022-23539 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-23539

Vulnerability Analysis

This vulnerability is classified under CWE-327 (Use of a Broken or Risky Cryptographic Algorithm). The core issue lies in the library's failure to properly validate that the cryptographic key type matches the specified signing algorithm during token verification. When an application specifies an algorithm like RS256 (RSA with SHA-256), the library should only accept RSA keys for verification. However, vulnerable versions allow other key types, such as DSA keys, to be used with incompatible algorithms.

This misconfiguration creates a dangerous situation where cryptographic operations may fail silently or produce unexpected results, potentially leading to tokens being validated when they should be rejected. Attackers who can influence the key material or algorithm selection could exploit this weakness to bypass authentication mechanisms.

Root Cause

The root cause is insufficient validation of asymmetric key type and algorithm combinations within the sign() and verify() functions. The library lacked proper checks to ensure that the provided cryptographic key matched the expected key type for the specified algorithm, allowing insecure combinations to be processed.

Attack Vector

The vulnerability is exploitable over the network and requires low privileges to exploit. An attacker could exploit this vulnerability in scenarios where:

  1. The application accepts user-controlled or external key material
  2. Algorithm negotiation is possible through the JWT header
  3. Key confusion attacks can be mounted against the verification process

The attack does not require user interaction and can result in complete compromise of confidentiality and integrity of the authentication system.

javascript
// Security patch in lib/asymmetricKeyDetailsSupported.js
// Source: https://github.com/auth0/node-jsonwebtoken/commit/e1fa9dcc12054a8681db4e6373da1b30cf7016e3
+const semver = require('semver');
+
+module.exports = semver.satisfies(process.version, '>=15.7.0');

The patch introduces version checking for Node.js to ensure asymmetric key details are properly supported, enabling validation of key types against algorithms.

javascript
// Security patch in lib/rsaPssKeyDetailsSupported.js
// Source: https://github.com/auth0/node-jsonwebtoken/commit/e1fa9dcc12054a8681db4e6373da1b30cf7016e3
+const semver = require('semver');
+
+module.exports = semver.satisfies(process.version, '>=16.9.0');

This additional patch ensures RSA-PSS key details validation is only enabled on Node.js versions that properly support these features.

Detection Methods for CVE-2022-23539

Indicators of Compromise

  • Unexpected JWT validation successes with mismatched key types and algorithms
  • Authentication logs showing tokens signed with unusual algorithm/key combinations
  • Application errors related to cryptographic operations during token verification
  • Evidence of DSA keys being used with RSA algorithms (RS256, RS384, RS512)

Detection Strategies

  • Audit package.json and package-lock.json files for jsonwebtoken versions <=8.5.1
  • Use software composition analysis (SCA) tools to identify vulnerable dependencies
  • Monitor authentication systems for anomalous token validation patterns
  • Review application code for explicit algorithm and key type configurations

Monitoring Recommendations

  • Implement logging for JWT verification operations including algorithm and key type used
  • Set up alerts for authentication failures or unexpected successes that may indicate exploitation attempts
  • Monitor dependency management systems for outdated jsonwebtoken packages
  • Review application security logs for cryptographic operation anomalies

How to Mitigate CVE-2022-23539

Immediate Actions Required

  • Upgrade jsonwebtoken library to version 9.0.0 or later immediately
  • Audit all applications using jsonwebtoken for vulnerable configurations
  • Review the GitHub Security Advisory GHSA-8cf7-32gw-wr33 to verify your algorithm/key combinations are secure
  • Test authentication flows after upgrading to ensure compatibility

Patch Information

The vulnerability has been fixed in jsonwebtoken version 9.0.0. This version implements proper validation for asymmetric key type and algorithm combinations. The fix is available via the GitHub commit e1fa9dcc12054a8681db4e6373da1b30cf7016e3.

After upgrading, if you intentionally need to use non-standard key type/algorithm combinations (not recommended), you must explicitly set the allowInvalidAsymmetricKeyTypes option to true in the sign() and/or verify() functions.

Workarounds

  • If immediate upgrade is not possible, manually validate that key types match expected algorithms before calling verification functions
  • Restrict the algorithms accepted by your application to a known-secure list
  • Ensure all cryptographic keys are sourced from trusted, controlled locations
  • Implement additional validation layers around JWT verification operations
bash
# Upgrade jsonwebtoken to the patched version
npm update jsonwebtoken@^9.0.0

# Verify the installed version
npm list jsonwebtoken

# Check for other vulnerable dependencies
npm audit

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechAuth0 Jsonwebtoken

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-327
  • Technical References
  • GitHub Security Advisory GHSA-8cf7-32gw-wr33

  • NetApp Security Advisory ntap-20240621-0007
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2022-23540: Auth0 Jsonwebtoken Auth Bypass Vulnerability

  • CVE-2022-23541: Auth0 Jsonwebtoken Auth Bypass 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