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-2026-23965

CVE-2026-23965: sm-crypto Auth Bypass Vulnerability

CVE-2026-23965 is an authentication bypass flaw in sm-crypto that allows attackers to forge valid signatures for arbitrary public keys. This article covers the technical details, affected versions, and mitigation.

Published: January 23, 2026

CVE-2026-23965 Overview

CVE-2026-23965 is a signature forgery vulnerability affecting the sm-crypto JavaScript library, which provides implementations of Chinese cryptographic algorithms SM2, SM3, and SM4. A critical flaw exists in the SM2 signature verification logic that allows attackers to forge valid signatures for arbitrary public keys under default configurations. When the message space contains sufficient redundancy, attackers can manipulate the message prefix associated with forged signatures to satisfy specific formatting requirements, potentially enabling authentication bypass and data integrity compromise.

Critical Impact

Attackers can forge valid cryptographic signatures for arbitrary public keys, undermining the fundamental security guarantees of SM2 digital signatures and enabling potential authentication bypass in systems relying on this library.

Affected Products

  • sm-crypto versions prior to 0.4.0
  • Applications using sm-crypto for SM2 signature verification
  • Systems implementing Chinese cryptographic standards via sm-crypto

Discovery Timeline

  • 2026-01-22 - CVE CVE-2026-23965 published to NVD
  • 2026-01-22 - Last updated in NVD database

Technical Details for CVE-2026-23965

Vulnerability Analysis

The vulnerability stems from improper verification of cryptographic signatures in the SM2 implementation (CWE-347: Improper Verification of Cryptographic Signature). The flaw exists in the default configuration of the doSignature function within src/sm2/index.js, where the hash parameter defaults to an insecure value that allows signature forgery attacks.

SM2 is part of the Chinese Commercial Cryptography Suite and is widely used in applications requiring compliance with Chinese cryptographic standards. The signature verification process in vulnerable versions of sm-crypto fails to properly validate that signatures were generated by the claimed private key holder, allowing attackers to construct signatures that pass verification checks without possessing the corresponding private key.

Root Cause

The root cause of this vulnerability is the insecure default value for the hash parameter in the signature functions. Prior to version 0.4.0, the hash parameter was not explicitly set to true by default, causing the signature verification logic to accept forged signatures. This oversight in the cryptographic implementation allows attackers to exploit the mathematical properties of the SM2 algorithm to construct valid-looking signatures without knowledge of the private key.

Attack Vector

This vulnerability is exploitable over the network without requiring any authentication or user interaction. An attacker can craft malicious signatures that will be accepted as valid by any application using vulnerable versions of sm-crypto for SM2 signature verification. The attack is particularly dangerous in scenarios where:

  1. SM2 signatures are used for authentication or authorization decisions
  2. Message integrity relies on SM2 signature verification
  3. The message format allows for controlled redundancy that attackers can exploit

The security patch modifies the default behavior by setting hash = true in the function signature:

javascript
  * 签名
  */
 function doSignature(msg, privateKey, {
-  pointPool, der, hash, publicKey, userId
+  pointPool, der, hash = true, publicKey, userId
 } = {}) {
   let hashHex = typeof msg === 'string' ? _.utf8ToHex(msg) : _.arrayToHex(msg)

Source: GitHub Commit

Detection Methods for CVE-2026-23965

Indicators of Compromise

  • Unusual authentication events with valid signatures from unknown or suspicious sources
  • Signature verification successes for messages that should fail validation
  • Application logs showing SM2 signature operations with unexpected parameter configurations
  • Evidence of signature replay or manipulation in transaction logs

Detection Strategies

  • Audit application dependencies for sm-crypto versions prior to 0.4.0
  • Review code paths using the doSignature and doVerifySignature functions for explicit hash parameter settings
  • Implement monitoring for signature verification patterns that deviate from normal application behavior
  • Use software composition analysis (SCA) tools to identify vulnerable sm-crypto installations

Monitoring Recommendations

  • Enable detailed logging for all cryptographic signature operations in applications using sm-crypto
  • Monitor for anomalous patterns in signature verification success rates
  • Set up alerts for authentication events from unexpected geographic locations or IP addresses
  • Implement integrity monitoring for npm package versions in deployed environments

How to Mitigate CVE-2026-23965

Immediate Actions Required

  • Upgrade sm-crypto to version 0.4.0 or later immediately
  • Audit all code using sm-crypto signature functions and explicitly set hash: true if upgrading is not immediately possible
  • Review historical signature verification logs for potential exploitation
  • Regenerate and reissue any credentials or certificates that relied on SM2 signatures from vulnerable implementations

Patch Information

The vulnerability has been addressed in sm-crypto version 0.4.0. The fix modifies the default value of the hash parameter to true in the doSignature function, ensuring that signature verification operates securely by default. Users should upgrade to this version or later to remediate the vulnerability.

For more details, see the GitHub Security Advisory and the patch commit.

Workarounds

  • If immediate upgrade is not possible, explicitly pass hash: true to all doSignature and doVerifySignature function calls
  • Implement additional signature validation layers outside of sm-crypto as a defense-in-depth measure
  • Consider temporarily using an alternative SM2 implementation until the upgrade can be completed
  • Restrict network access to services using vulnerable sm-crypto installations
bash
# Upgrade sm-crypto to patched version
npm update sm-crypto@0.4.0

# Verify installed version
npm list sm-crypto

# Alternative: Audit all installed packages 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/TechSm Crypto

  • 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-2026-23967: sm-crypto Signature Malleability Vulnerability

  • CVE-2026-23966: sm-crypto Private Key Recovery 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