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

CVE-2025-59936: get-jwks Auth Bypass Vulnerability

CVE-2025-59936 is an authentication bypass flaw in get-jwks that allows cache poisoning in JWKS key-fetching, enabling attackers to bypass issuer validation. This post covers the technical details, affected versions, and mitigations.

Published: April 1, 2026

CVE-2025-59936 Overview

CVE-2025-59936 is a cache poisoning vulnerability in the get-jwks library, a utility package for fetching JSON Web Key Sets (JWKS) keys. In versions prior to 11.0.2, a design flaw in the JWKS key-fetching mechanism allows cached keys from an unexpected issuer to be reused when the iss (issuer) claim is validated only after keys are retrieved from the cache. This authentication bypass enables malicious actors to craft JWT pairs that leverage cached public keys to pass signature validation for arbitrary issuer values.

Critical Impact

Attackers can bypass JWT issuer validation by poisoning the shared JWKS cache, potentially gaining unauthorized access to protected resources through forged authentication tokens.

Affected Products

  • get-jwks versions prior to 11.0.2

Discovery Timeline

  • 2025-09-27 - CVE CVE-2025-59936 published to NVD
  • 2025-09-29 - Last updated in NVD database

Technical Details for CVE-2025-59936

Vulnerability Analysis

The vulnerability exists in the cache key generation mechanism of get-jwks. When fetching JWKS keys, the library stores retrieved public keys in a shared cache without properly incorporating the normalized domain (issuer) into the cache key. This design flaw creates a race condition where an attacker can pre-populate the cache with their own public key by presenting a crafted JWT from an attacker-controlled domain first.

The attack works only when iss validation occurs after get-jwks retrieves keys from cache. In this scenario, the attacker crafts two JWTs: the first ensures a chosen public key is fetched and cached, while the second leverages that cached key to pass signature validation for a different, targeted issuer value.

Root Cause

The root cause is classified under CWE-116 (Improper Encoding or Escaping of Output). The vulnerability stems from insufficient isolation of cache entries across different issuers. The cache key structure did not include the normalized domain as a differentiator, allowing keys from one issuer to be inadvertently used for validating tokens claiming a different issuer.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker exploiting this vulnerability would:

  1. Set up a malicious JWKS endpoint with a controlled key pair
  2. Send an initial request with a JWT pointing to the attacker's issuer, causing the malicious public key to be cached
  3. Craft a second JWT claiming a legitimate target issuer but signed with the attacker's private key
  4. The cached attacker key is used for validation since cache lookup occurs before issuer validation
  5. The signature validates successfully, bypassing issuer authentication

The patch introduces a CACHE_KEY_DELIMITER and a generateCacheKey function that properly incorporates the normalized domain into cache keys:

typescript
type GetJwks = {
+  generateCacheKey: (alg: string, kid: string, normalizedDomain: string) => string
   getPublicKey: (options?: GetPublicKeyOptions) => Promise<string>
   getJwk: (signature: JWKSignature) => Promise<JWK>
   getJwksUri: (normalizedDomain: string) => Promise<string>

Source: GitHub Commit

javascript
const ONE_MINUTE = 60 * 1000
const FIVE_SECONDS = 5 * 1000
+const CACHE_KEY_DELIMITER = ':'

function ensureTrailingSlash(domain) {
  return domain[domain.length - 1] === '/' ? domain : `${domain}/`

Source: GitHub Commit

Detection Methods for CVE-2025-59936

Indicators of Compromise

  • Unusual JWT validation attempts with mismatched issuer claims and signing key sources
  • Multiple authentication requests from the same source using different issuer values in short succession
  • JWKS endpoint requests to unexpected or previously unseen domains
  • Authentication success logs where token issuer doesn't match expected application configuration

Detection Strategies

  • Monitor dependency versions and alert on applications using get-jwks versions below 11.0.2
  • Implement logging around JWT validation to track issuer claims and key retrieval sources
  • Deploy runtime application security monitoring to detect authentication anomalies
  • Use software composition analysis (SCA) tools to identify vulnerable library versions in your codebase

Monitoring Recommendations

  • Review authentication logs for patterns indicating cache poisoning attempts
  • Monitor network traffic to JWKS endpoints for requests to unauthorized domains
  • Set up alerts for authentication successes with untrusted or unexpected issuer values
  • Implement rate limiting on JWKS fetching to reduce attack surface for cache poisoning

How to Mitigate CVE-2025-59936

Immediate Actions Required

  • Upgrade get-jwks to version 11.0.2 or later immediately
  • Review application code to ensure issuer validation occurs before or during key retrieval, not after
  • Audit recent authentication logs for potential exploitation attempts
  • Clear existing JWKS caches after patching to remove potentially poisoned entries

Patch Information

The vulnerability has been patched in get-jwks version 11.0.2. The fix introduces proper cache key generation that includes the normalized domain, ensuring cache isolation between different issuers. The patch commit is available at the GitHub repository. Additional details are available in the GitHub Security Advisory.

Workarounds

  • Implement issuer validation before calling get-jwks key retrieval functions
  • Restrict allowed issuers to a predefined allowlist in your application configuration
  • Add middleware validation to reject JWTs with unexpected issuer claims before JWKS lookup
  • Consider implementing separate cache instances per trusted issuer if immediate upgrade is not possible
bash
# Update get-jwks to patched version
npm update get-jwks@11.0.2

# Or install specific patched version
npm install get-jwks@^11.0.2

# Verify installed version
npm list get-jwks

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechGet Jwks

  • SeverityCRITICAL

  • CVSS Score9.4

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-116
  • Technical References
  • GitHub Commit Log

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs 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