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-2025-65945

CVE-2025-65945: Auth0 Node-jws Auth Bypass Vulnerability

CVE-2025-65945 is an authentication bypass flaw in Auth0 Node-jws affecting HS256 signature verification. Attackers can bypass authentication when user data is used in HMAC secret lookup. This article covers technical details, affected versions, impact, and mitigation.

Published: April 1, 2026

CVE-2025-65945 Overview

CVE-2025-65945 is an improper signature verification vulnerability affecting auth0/node-jws, a JSON Web Signature (JWS) implementation for Node.js. In versions 3.2.2 and earlier and version 4.0.0, applications using the jws.createVerify() function with HMAC algorithms (specifically HS256) are vulnerable when user-provided data from the JSON Web Signature protected header or payload is used in HMAC secret lookup routines. This flaw allows attackers to bypass signature verification, potentially leading to unauthorized access or data tampering.

Critical Impact

Attackers can bypass JWT signature verification in affected applications, enabling authentication bypass and unauthorized access to protected resources.

Affected Products

  • auth0 node-jws versions 3.2.2 and earlier
  • auth0 node-jws version 4.0.0
  • Applications using jws.createVerify() with HS256 algorithm and user-controlled secret lookups

Discovery Timeline

  • 2025-12-04 - CVE-2025-65945 published to NVD
  • 2026-03-09 - Last updated in NVD database

Technical Details for CVE-2025-65945

Vulnerability Analysis

This vulnerability falls under CWE-347 (Improper Verification of Cryptographic Signature). The issue exists in how the node-jws library handles secret key validation when using HMAC-based signing algorithms like HS256.

The vulnerability specifically impacts applications that implement dynamic secret key lookups based on user-controllable data extracted from the JWT header or payload. When the secret resolution logic relies on attacker-influenced values, the signature verification process can be manipulated to accept forged tokens.

The network-accessible nature of this vulnerability combined with no required authentication makes it particularly dangerous for authentication systems relying on JWTs for session management.

Root Cause

The root cause lies in the SignStream constructor in lib/sign-stream.js, where the secret parameter handling used short-circuit evaluation (||) that could inadvertently allow empty or null secrets under specific conditions. The original code used opts.secret||opts.privateKey||opts.key, which could lead to unexpected behavior when secrets were falsy values but still valid in certain contexts.

The patch addresses this by implementing explicit null checks and adding a type validation guard that throws a TypeError when HMAC algorithms are used without a properly defined secret.

Attack Vector

The attack exploits applications where HMAC secret lookup is performed using data derived from the JWT itself. An attacker can craft a malicious JWT where:

  1. The protected header or payload contains manipulated data used in secret resolution
  2. The application's secret lookup routine returns a predictable or null value based on attacker input
  3. The signature verification passes despite the token being forged

This is a network-based attack requiring no authentication or user interaction, making it exploitable remotely against any exposed endpoint accepting JWTs.

javascript
// Security patch in lib/sign-stream.js
// Source: https://github.com/auth0/node-jws/commit/34c45b2c04434f925b638de6a061de9339c0ea2e

 }
 
 function SignStream(opts) {
-  var secret = opts.secret||opts.privateKey||opts.key;
+  var secret = opts.secret;
+  secret = secret == null ? opts.privateKey : secret;
+  secret = secret == null ? opts.key : secret;
+  if (/^hs/i.test(opts.header.alg) === true && secret == null) {
+    throw new TypeError('secret must be a string or buffer or a KeyObject')
+  }
   var secretStream = new DataStream(secret);
   this.readable = true;
   this.header = opts.header;

Detection Methods for CVE-2025-65945

Indicators of Compromise

  • Unexpected successful authentications with malformed or suspicious JWT tokens
  • JWT tokens with unusual header or payload structures in authentication logs
  • Application logs showing secret lookup failures followed by successful verifications
  • Authentication events from unknown sources using tokens with manipulated kid or similar header claims

Detection Strategies

  • Implement logging for all JWT verification attempts, including header and payload content (excluding sensitive data)
  • Monitor for JWT tokens where the alg header is HS256 with unusual kid or custom header values
  • Deploy application-level monitoring to detect authentication anomalies
  • Audit code paths where JWT data influences secret key selection

Monitoring Recommendations

  • Review authentication logs for tokens with inconsistent signature patterns
  • Set up alerts for authentication rate anomalies that could indicate bypass attempts
  • Monitor package dependency versions using npm audit or similar tools to detect vulnerable node-jws installations
  • Implement runtime integrity checking for JWT verification outcomes

How to Mitigate CVE-2025-65945

Immediate Actions Required

  • Upgrade node-jws to version 3.2.3 or 4.0.1 immediately
  • Audit all applications using node-jws for vulnerable versions using npm ls jws
  • Review code that uses jws.createVerify() with HMAC algorithms to ensure secrets are not derived from user-controlled input
  • Consider implementing additional token validation beyond signature verification

Patch Information

Auth0 has released patched versions that address this vulnerability. The fix adds explicit null checking for HMAC secrets and throws a TypeError if the secret is not properly defined when using HS algorithms.

Patched versions:

  • Version 3.2.3 for the 3.x branch
  • Version 4.0.1 for the 4.x branch

For detailed patch information, see the GitHub Security Advisory and the security patch commit.

Workarounds

  • Never use user-controllable data from JWT headers or payloads for secret key lookups
  • Implement a static secret key or use a pre-defined mapping that cannot be influenced by token contents
  • Add explicit null/undefined checks before passing secrets to jws.createVerify()
  • Consider using asymmetric algorithms (RS256, ES256) instead of HMAC-based algorithms where feasible
bash
# Upgrade node-jws to patched version
npm update jws

# Or install specific patched version
npm install jws@3.2.3
# For 4.x users:
npm install jws@4.0.1

# Verify installed version
npm ls jws

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 Node Jws

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.01%

  • 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-347
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-869p
  • Latest CVEs
  • CVE-2025-11419: Keycloak TLS DoS Vulnerability

  • CVE-2025-13947: WebKitGTK Information Disclosure Flaw

  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal 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