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
    • 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-59140

CVE-2025-59140: Backslash npm Package Malware Injection

CVE-2025-59140 involves malicious code injected into backslash npm package version 0.2.1 that targets cryptocurrency wallets in browsers. This article covers the attack details, affected environments, and remediation steps.

Published: May 11, 2026

CVE-2025-59140 Overview

CVE-2025-59140 affects the backslash npm package, which parses collected strings with escapes. On 8 September 2025, attackers took over the maintainer's npm publishing account through a phishing attack. The threat actor published version 0.2.1, functionally identical to the prior release but carrying a malware payload that redirects cryptocurrency transactions to attacker-controlled wallet addresses inside browser environments. The malicious payload specifically targets browser-based crypto wallets such as MetaMask. Server-side, command-line, and local Node.js usage is not affected. npm removed the compromised version on the same day, and maintainers later released 0.2.2 to resolve the issue and cache-bust private registry mirrors.

Critical Impact

Browser bundles built with the compromised backslash@0.2.1 package silently rewrite cryptocurrency transaction destinations, redirecting funds to attacker wallets without user awareness.

Affected Products

  • backslash npm package version 0.2.1
  • Browser bundles built with bundlers such as Babel, Rollup, Vite, or Next.js that include the compromised version
  • Private npm registries and mirrors caching the compromised version

Discovery Timeline

  • 8 September 2025 - npm publishing account compromised via phishing; malicious 0.2.1 published and later removed by npm
  • 13 September 2025 - Package owner published new patch versions to cache-bust private registries
  • 2025-09-15 - CVE-2025-59140 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-59140

Vulnerability Analysis

The issue is classified under [CWE-506] Embedded Malicious Code. The legitimate backslash package logic was preserved in version 0.2.1, which allowed the trojanized release to pass functional tests and reach downstream consumers. Attackers injected a payload that activates only in browser execution contexts, evading detection in typical CI pipelines that run Node.js unit tests. Once bundled into a web application, the payload hooks cryptocurrency wallet APIs and transaction-signing flows. It intercepts outbound transactions and substitutes destination addresses with attacker-controlled wallets before the user confirms the transfer.

Root Cause

The root cause is a maintainer account compromise rather than a code-level defect. A phishing campaign harvested credentials for the npm account responsible for backslash, granting the attacker authority to publish trojanized versions to the public registry. The npm ecosystem's trust model assumes maintainer accounts remain under legitimate control, so any package consumer that resolved 0.2.1 automatically pulled the malicious payload through normal dependency resolution.

Attack Vector

Exploitation is passive from the victim's perspective. Developers installing or updating dependencies that resolve to backslash@0.2.1 ingested the payload through npm install. When the resulting JavaScript executed inside a browser, the malware inspected the global environment for wallet objects such as window.ethereum and hooked transaction APIs to rewrite recipient addresses. The malware did not execute in Node.js server or CLI contexts, narrowing the blast radius to web front-ends. See the GitHub Security Advisory and the Socket.dev Supply Chain Attack Analysis for additional payload details.

Detection Methods for CVE-2025-59140

Indicators of Compromise

  • Presence of backslash@0.2.1 in package-lock.json, yarn.lock, or pnpm-lock.yaml
  • Browser bundles containing obfuscated code referencing wallet provider objects such as window.ethereum injected by the malicious payload
  • Outbound cryptocurrency transactions with substituted destination addresses observed by end users
  • Cached copies of backslash@0.2.1 in private registry mirrors or proxy caches

Detection Strategies

  • Run software composition analysis across all repositories to flag any direct or transitive dependency on backslash@0.2.1
  • Compare deployed browser bundle hashes against known-good builds produced before 8 September 2025
  • Audit npm registry mirror caches and CDN-hosted artifacts for the compromised version
  • Review CI/CD logs for installations of backslash@0.2.1 between 8 September and the registry takedown

Monitoring Recommendations

  • Monitor application telemetry for unexpected hooks on wallet APIs inside front-end JavaScript
  • Track outbound traffic from build infrastructure for connections to unknown domains during bundling
  • Enable npm audit signals and dependency drift alerts in development pipelines
  • Subscribe to GitHub Security Advisories for ecosystem-level supply chain events

How to Mitigate CVE-2025-59140

Immediate Actions Required

  • Upgrade backslash to version 0.2.2 or later across all projects and lockfiles
  • Delete node_modules directories and reinstall dependencies from a clean state
  • Purge global package manager caches with npm cache clean --force, yarn cache clean, or pnpm store prune
  • Rebuild and redeploy any browser bundles produced while 0.2.1 was available
  • Notify users of affected web applications and recommend reviewing recent cryptocurrency transactions

Patch Information

The issue is resolved in backslash@0.2.2. The maintainer published this version on 13 September 2025 to cache-bust private registries that may still hold the compromised artifact. Refer to the GitHub Security Advisory GHSA-53mq-f4w3-f7qv for the official fix details.

Workarounds

  • Pin backslash to a known-clean version prior to 0.2.1 if upgrade is blocked
  • Purge the compromised version from any private registry, Verdaccio, Nexus, or Artifactory cache
  • Enforce package signing verification and require two-factor authentication for all npm publish operations
  • Use lockfile linting to block reintroduction of backslash@0.2.1 in future builds
bash
# Configuration example
npm uninstall backslash
rm -rf node_modules package-lock.json
npm cache clean --force
npm install backslash@^0.2.2
npm rebuild

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechBackslash

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N/E:A/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:Red
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-506
  • Technical References
  • GitHub Security Advisory

  • GitHub Issue Discussion

  • Socket.dev Supply Chain Attack Analysis

  • Aikido.dev Package Compromise Blog

  • Ox.Security NPM Package Compromise Analysis
  • Latest CVEs
  • CVE-2025-52479: HTTP.jl & URIs.jl CRLF Injection Flaw

  • CVE-2026-31740: Linux Kernel Race Condition Vulnerability

  • CVE-2026-31743: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-31744: Linux Kernel NULL Pointer 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