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-4598

CVE-2026-4598: Jsrsasign DoS Vulnerability

CVE-2026-4598 is a denial of service flaw in Jsrsasign caused by an infinite loop in the bnModInverse function. Attackers can hang processes by supplying zero or negative inputs. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 27, 2026

CVE-2026-4598 Overview

CVE-2026-4598 is a Denial of Service vulnerability affecting the jsrsasign cryptographic library for Node.js. Versions of the package before 11.1.1 are vulnerable to an infinite loop via the bnModInverse function in ext/jsbn2.js. When the BigInteger.modInverse implementation receives zero or negative inputs, an attacker can hang the process permanently by supplying crafted values such as modInverse(0, m) or modInverse(-1, m).

Critical Impact

Applications using vulnerable versions of jsrsasign can be rendered completely unresponsive through malicious input, causing service outages for cryptographic operations dependent on modular inverse calculations.

Affected Products

  • jsrsasign versions prior to 11.1.1
  • Node.js applications utilizing the vulnerable jsrsasign package
  • Web applications implementing jsrsasign for cryptographic operations

Discovery Timeline

  • 2026-03-23 - CVE-2026-4598 published to NVD
  • 2026-03-23 - Last updated in NVD database

Technical Details for CVE-2026-4598

Vulnerability Analysis

The vulnerability resides in the bnModInverse function within the ext/jsbn2.js file of the jsrsasign library. This function is responsible for computing the modular multiplicative inverse, a fundamental cryptographic operation used in various algorithms including RSA key generation and digital signature schemes.

The root cause is an improper input validation flaw (CWE-835: Loop with Unreachable Exit Condition) where the function fails to validate that input values are positive integers before entering its computational loop. When zero or negative values are passed to the function, the algorithm enters an infinite loop because the termination condition can never be satisfied with these edge-case inputs.

Root Cause

The BigInteger.modInverse implementation lacks boundary checks for zero and negative input values. The modular inverse operation is mathematically undefined for zero (since 0 has no multiplicative inverse) and the implementation does not handle negative integers appropriately. Without proper input validation at the function entry point, the extended Euclidean algorithm used internally loops indefinitely, never reaching its exit condition.

Attack Vector

An attacker can exploit this vulnerability remotely over the network without requiring authentication or user interaction. The attack involves supplying specially crafted input values to any application endpoint that processes user-controlled data through the modInverse function. This could occur in:

  • Certificate validation routines
  • Digital signature verification
  • Custom cryptographic implementations using jsrsasign's BigInteger library
  • Any API endpoint accepting numeric input for cryptographic operations

The vulnerability allows an attacker to trigger the infinite loop by supplying values like modInverse(0, m) or modInverse(-1, m) where m is any modulus value. Once triggered, the affected Node.js process becomes permanently unresponsive, effectively denying service to all users of the application.

For technical details on the vulnerability mechanism, refer to the GitHub Gist PoC and the GitHub Pull Request Discussion.

Detection Methods for CVE-2026-4598

Indicators of Compromise

  • Node.js processes consuming 100% CPU indefinitely without completing requests
  • Application health checks failing due to unresponsive server threads
  • Increasing memory consumption in processes handling cryptographic operations
  • Request timeouts occurring specifically on endpoints utilizing modular arithmetic functions

Detection Strategies

  • Monitor application performance metrics for sudden CPU spikes correlated with specific API calls
  • Implement request logging to identify patterns of zero or negative values being submitted to cryptographic endpoints
  • Use application performance monitoring (APM) tools to detect hanging requests in cryptographic code paths
  • Set up dependency scanning to identify jsrsasign versions below 11.1.1 in your software supply chain

Monitoring Recommendations

  • Configure alerting for Node.js process CPU utilization exceeding normal thresholds for extended periods
  • Implement request timeout monitoring to detect endpoints that fail to respond
  • Enable process-level monitoring to identify processes stuck in infinite loops
  • Deploy SentinelOne Singularity Platform for real-time detection of anomalous process behavior and denial of service conditions

How to Mitigate CVE-2026-4598

Immediate Actions Required

  • Upgrade jsrsasign to version 11.1.1 or later immediately
  • Audit application code to identify all uses of BigInteger.modInverse function
  • Implement input validation to reject zero and negative values before they reach the vulnerable function
  • Consider implementing request timeouts as a defensive measure against similar DoS vulnerabilities

Patch Information

The jsrsasign project has addressed this vulnerability in version 11.1.1. The fix adds proper input validation to the bnModInverse function to check for zero and negative inputs before processing. For details on the patch implementation, see the GitHub Commit Update. Additional technical information is available in the Snyk Vulnerability Advisory.

Workarounds

  • Implement application-level input validation to reject zero and negative values before calling cryptographic functions
  • Deploy a Web Application Firewall (WAF) rule to filter requests containing suspicious numeric values targeting cryptographic endpoints
  • Configure process-level timeouts to automatically restart hung processes
  • Isolate cryptographic operations in separate worker processes to limit the impact of a DoS attack on the main application
bash
# Update jsrsasign to patched version
npm update jsrsasign@11.1.1

# Or specify in package.json
# "jsrsasign": ">=11.1.1"

# Verify installed version
npm list jsrsasign

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechJsrsasign

  • SeverityHIGH

  • CVSS Score7.7

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-835
  • Technical References
  • GitHub Pull Request Discussion

  • Snyk Vulnerability Advisory
  • Vendor Resources
  • GitHub Gist PoC

  • GitHub Commit Update
  • Related CVEs
  • CVE-2026-4603: Jsrsasign Division by Zero DOS Vulnerability

  • CVE-2026-4600: Jsrsasign Auth Bypass Vulnerability

  • CVE-2026-4599: Jsrsasign Information Disclosure Flaw

  • CVE-2026-4601: Jsrsasign Information Disclosure Flaw
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