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
    • 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-2026-34240

CVE-2026-34240: JOSE Library Auth Bypass Vulnerability

CVE-2026-34240 is an authentication bypass vulnerability in the JOSE library that allows attackers to forge valid JWS/JWT tokens using malicious keys in headers. This article covers technical details, affected versions, and mitigations.

Published: April 2, 2026

CVE-2026-34240 Overview

A critical authentication bypass vulnerability has been identified in the JOSE (Javascript Object Signing and Encryption) library for Dart. Prior to version 0.3.5+1, the library contains a flaw that allows unauthenticated, remote attackers to forge valid JWS (JSON Web Signature) and JWT (JSON Web Token) tokens by exploiting improper key selection during signature verification.

Critical Impact

Attackers can forge valid authentication tokens, potentially gaining unauthorized access to protected resources and impersonating legitimate users across any application relying on this library for token verification.

Affected Products

  • JOSE Dart library versions prior to 0.3.5+1
  • Applications using affected JOSE versions for JWT/JWS token verification
  • Systems relying on header-embedded JWK for cryptographic operations

Discovery Timeline

  • 2026-03-31 - CVE CVE-2026-34240 published to NVD
  • 2026-04-01 - Last updated in NVD database

Technical Details for CVE-2026-34240

Vulnerability Analysis

This vulnerability stems from improper verification of cryptographic signatures (CWE-347) in the JOSE library's token validation process. The core issue lies in how the library handles the jwk (JSON Web Key) parameter embedded within JOSE headers during signature verification.

When processing a signed token, the library's key selection mechanism incorrectly treats a jwk value present in the token header as a valid verification candidate, even when that specific key does not exist in the application's configured trusted key store. Since JOSE headers are considered untrusted input by design, this behavior creates a significant security gap that undermines the entire trust model of JWT-based authentication.

The vulnerability allows network-based exploitation without requiring any authentication or user interaction. The impact is primarily to integrity, as attackers can forge tokens that applications will accept as legitimate.

Root Cause

The root cause is a flawed key selection algorithm in the JOSE library's verification logic. The library fails to enforce a critical security boundary: the distinction between keys provided by the application's trusted key store and keys embedded in the untrusted token header itself.

Specifically, when the verification routine encounters a jwk parameter in the header, it erroneously adds this attacker-controllable key to the pool of candidate verification keys. This design flaw violates the fundamental principle that cryptographic keys used for verification must originate from a trusted source controlled by the application, not from the data being verified.

Attack Vector

An attacker can exploit this vulnerability through the following attack pattern:

  1. Token Payload Construction: The attacker crafts a malicious JWT payload containing claims that grant unauthorized access or elevated privileges
  2. Key Generation: The attacker generates their own RSA or EC key pair
  3. Header Manipulation: The attacker embeds their public key in the JWT header using the jwk parameter
  4. Token Signing: The attacker signs the token using their own private key
  5. Token Submission: The forged token is submitted to the target application

The vulnerable JOSE library will verify the signature using the attacker-provided public key from the header, treating it as a legitimate verification key. Since the signature is mathematically valid (signed with the matching private key), verification succeeds, and the application accepts the forged token as authentic.

This attack requires no prior access to the target system's cryptographic keys and can be executed entirely remotely over the network.

Detection Methods for CVE-2026-34240

Indicators of Compromise

  • JWT/JWS tokens containing jwk header parameters that do not match keys in the application's trusted key store
  • Unexpected or anomalous authentication events from previously unknown key identifiers
  • Tokens with claims granting elevated privileges that were not issued by legitimate identity providers
  • Authentication logs showing successful verification of tokens with unrecognized key fingerprints

Detection Strategies

  • Implement logging and alerting for any token that contains a jwk header parameter during verification
  • Monitor for authentication patterns where the verifying key does not match any pre-registered trusted keys
  • Deploy application-level detection to flag tokens where the header-embedded key differs from expected key material
  • Review audit logs for privilege escalation patterns following JWT-based authentication

Monitoring Recommendations

  • Enable verbose logging in authentication middleware to capture full token header details
  • Implement real-time alerting for tokens verified with non-trusted key sources
  • Establish baseline metrics for normal authentication patterns and alert on deviations
  • Correlate authentication events across services to identify potential token forgery campaigns

How to Mitigate CVE-2026-34240

Immediate Actions Required

  • Upgrade the JOSE Dart library to version 0.3.5+1 or later immediately
  • Audit application code to identify all instances where the JOSE library is used for token verification
  • Review authentication logs for any evidence of exploitation using header-embedded keys
  • Implement the recommended workaround if immediate patching is not possible

Patch Information

The vulnerability has been addressed in JOSE library version 0.3.5+1. The fix ensures that header-provided jwk values are no longer automatically considered as verification candidates unless explicitly allowed and validated against the trusted key store.

For detailed patch changes, refer to the GitHub Commit Changes. Additional context and security guidance is available in the GitHub Security Advisory.

Workarounds

  • Implement pre-verification checks to reject any tokens where the jwk header parameter is present
  • Validate that any jwk in the header exactly matches a key already present in the application's trusted key store before proceeding with verification
  • Add custom token validation middleware that strips or blocks untrusted header parameters before passing tokens to the JOSE library
  • Consider implementing an allowlist of acceptable key identifiers (kid) and reject tokens with unknown key references
bash
# Configuration example
# Update pubspec.yaml to use patched version
# Ensure JOSE library is at minimum version 0.3.5+1
dependencies:
  jose: ^0.3.5+1

# Run dependency update
dart pub upgrade jose

# Verify installed version
dart pub deps | grep jose

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechJose

  • 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
  • Technical References
  • GitHub Commit Changes

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-45767: jose Library Weak Encryption Vulnerability
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