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

CVE-2022-23540: Auth0 Jsonwebtoken Auth Bypass Vulnerability

CVE-2022-23540 is an authentication bypass vulnerability in Auth0 Jsonwebtoken library that allows signature validation bypass when algorithms are not specified. This post covers technical details, affected versions, and mitigation.

Published: February 17, 2026

CVE-2022-23540 Overview

CVE-2022-23540 is an authentication bypass vulnerability in the Auth0 jsonwebtoken library for Node.js. In versions <=8.5.1, the lack of algorithm definition in the jwt.verify() function can lead to signature validation bypass due to defaulting to the none algorithm for signature verification. This allows attackers to forge JWT tokens without valid signatures, potentially gaining unauthorized access to protected resources.

Critical Impact

Attackers can bypass JWT signature validation by exploiting the default none algorithm behavior, allowing forged tokens to be accepted as valid, leading to authentication bypass and unauthorized access to protected systems.

Affected Products

  • Auth0 jsonwebtoken library versions <=8.5.1 for Node.js
  • Applications using jwt.verify() without explicitly specifying allowed algorithms
  • Node.js applications relying on jsonwebtoken for authentication

Discovery Timeline

  • 2022-12-22 - CVE-2022-23540 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2022-23540

Vulnerability Analysis

This vulnerability stems from improper authentication logic in the jsonwebtoken library's signature verification process. When developers call jwt.verify() without explicitly defining which cryptographic algorithms are acceptable, the library defaults to accepting the none algorithm. The none algorithm, as defined in the JWT specification, indicates an unsigned token—meaning no cryptographic signature is required for validation.

This design flaw creates a critical authentication bypass scenario. An attacker can craft a malicious JWT token, set its algorithm header to none, remove or omit the signature portion entirely, and the vulnerable jwt.verify() function will accept it as valid. This effectively negates the entire purpose of JWT signature verification, which is to ensure token integrity and authenticity.

The vulnerability is classified under CWE-287 (Improper Authentication) and CWE-347 (Improper Verification of Cryptographic Signature), reflecting its dual nature as both an authentication and cryptographic validation failure.

Root Cause

The root cause is the library's default acceptance of the none algorithm when no specific algorithms are configured in the jwt.verify() options. This permissive default behavior violates the principle of secure defaults, as it allows unsigned tokens to pass verification unless developers explicitly restrict allowed algorithms.

Attack Vector

An attacker can exploit this vulnerability remotely over the network by:

  1. Intercepting or observing a legitimate JWT token structure
  2. Creating a forged JWT with arbitrary claims (e.g., elevated privileges, different user identity)
  3. Setting the token's alg header to none
  4. Omitting or leaving the signature portion empty
  5. Submitting the forged token to the vulnerable application

The vulnerable jwt.verify() call without algorithm specification will accept the unsigned token as valid, granting the attacker unauthorized access.

javascript
// Security patch adding Node.js version checks for asymmetric key support
const semver = require('semver');

module.exports = semver.satisfies(process.version, '>=15.7.0');

Source: GitHub Commit

javascript
// RSA-PSS key details support check added in security patch
const semver = require('semver');

module.exports = semver.satisfies(process.version, '>=16.9.0');

Source: GitHub Commit

Detection Methods for CVE-2022-23540

Indicators of Compromise

  • JWT tokens with "alg": "none" appearing in authentication logs
  • Tokens with missing or empty signature segments (tokens ending with a period followed by nothing)
  • Unusual authentication patterns where token signatures don't match expected algorithm types
  • Increased authentication success rates without corresponding valid credential usage

Detection Strategies

  • Scan application dependencies for jsonwebtoken versions <=8.5.1 using npm audit or Snyk
  • Implement logging that captures the algorithm used in each JWT verification attempt
  • Deploy Web Application Firewalls (WAF) with rules to detect alg: none in JWT headers
  • Use static code analysis tools to identify jwt.verify() calls without explicit algorithm parameters

Monitoring Recommendations

  • Enable detailed authentication logging to capture JWT algorithm headers and verification outcomes
  • Monitor for sudden increases in successful authentications without corresponding valid sessions
  • Set up alerts for any JWT tokens processed with the none algorithm
  • Review application logs for tokens with malformed or missing signature segments

How to Mitigate CVE-2022-23540

Immediate Actions Required

  • Upgrade jsonwebtoken library to version 9.0.0 or later immediately
  • Audit all jwt.verify() calls in your codebase to ensure explicit algorithm specification
  • Add input validation to reject tokens with alg: none at the application level
  • Review recent authentication logs for potential exploitation attempts

Patch Information

Auth0 has addressed this vulnerability in jsonwebtoken version 9.0.0, which removes the default support for the none algorithm in the jwt.verify() method. Users should update to version 9.0.0 or later to remediate this issue. The fix is available via the GitHub commit e1fa9dcc12054a8681db4e6373da1b30cf7016e3. Additional details are available in the GitHub Security Advisory.

Workarounds

  • Explicitly specify allowed algorithms in all jwt.verify() calls (e.g., { algorithms: ['RS256'] })
  • Implement middleware to reject any incoming JWT with alg header set to none
  • Add pre-verification checks to validate the algorithm header before calling jwt.verify()
bash
# Update jsonwebtoken to patched version
npm update jsonwebtoken@^9.0.0

# Or install specific patched version
npm install jsonwebtoken@9.0.0

# Audit dependencies for vulnerable versions
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 Score7.6

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-287

  • CWE-347
  • Technical References
  • GitHub Security Advisory

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

  • CVE-2022-23539: 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