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

CVE-2025-59330: error-ex NPM Package Malware Vulnerability

CVE-2025-59330 involves malware injected into error-ex npm package v1.3.3 that targets cryptocurrency transactions in browser environments. This article covers the technical details, affected versions, and mitigation steps.

Published: May 11, 2026

CVE-2025-59330 Overview

CVE-2025-59330 affects the error-ex npm package, a widely used JavaScript library for error subclassing and stack customization. On 8 September 2025, attackers phished the maintainer's npm publishing account and released version 1.3.3. The malicious release was functionally identical to the prior patch but carried an embedded payload that targets cryptocurrency transactions in browser environments. The injected code attempts to redirect transactions and intercept wallets such as MetaMask. Server-side, command line, and local Node.js usage are not affected. npm removed the package from the registry the same day, and the maintainer published 1.3.4 on 13 September to cache-bust private registries.

Critical Impact

Browser bundles built with error-ex@1.3.3 may silently reroute cryptocurrency transactions to attacker-controlled wallet addresses.

Affected Products

  • error-ex npm package version 1.3.3
  • Browser bundles built with bundlers such as Babel, Rollup, Vite, webpack, or Next.js that included error-ex@1.3.3
  • Private npm registries or mirrors caching the compromised version

Discovery Timeline

  • 8 September 2025 - Maintainer npm account compromised via phishing; malicious error-ex@1.3.3 published and later removed by npm
  • 13 September 2025 - Maintainer publishes patched version 1.3.4 to cache-bust private registries
  • 2025-09-15 - CVE-2025-59330 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-59330

Vulnerability Analysis

The issue is a software supply chain compromise classified as embedded malicious code [CWE-506]. The attacker obtained publishing rights to the error-ex package through a phishing campaign against the maintainer's npm account. They then published a tampered patch release containing wallet-stealing logic alongside the original library code, so dependents installed the malicious version transparently through normal semver resolution. Because error-ex is a transitive dependency of many popular packages, the blast radius extends well beyond direct consumers.

Root Cause

The root cause is account takeover of a trusted npm maintainer rather than a code defect in error-ex itself. The compromised credentials allowed the attacker to push 1.3.3 to the public registry, bypassing all consumer-side trust assumptions about the publisher. The malicious build was functionally indistinguishable from the legitimate prior release except for the appended payload.

Attack Vector

The payload activates only inside browser execution contexts. It hooks JavaScript APIs used by cryptocurrency wallets including MetaMask, inspects pending transactions, and rewrites destination addresses to attacker-controlled wallets before the user signs. Local Node.js processes, command-line tools, and server-side applications never execute the malicious branch. The attack reaches end users when a vulnerable bundle is shipped to the browser, meaning any production deployment that compiled in error-ex@1.3.3 between 8 September and the rebuild remains exposed until the artifact is regenerated.

No public proof-of-concept code is required because the malicious build itself is the exploit. See the GitHub Security Advisory GHSA-6jp5-hh4c-8c5h and the Socket analysis of the qix compromise for payload details.

Detection Methods for CVE-2025-59330

Indicators of Compromise

  • Presence of error-ex@1.3.3 in package-lock.json, yarn.lock, or pnpm-lock.yaml
  • Browser bundles built between 8 September 2025 and the package rebuild that include error-ex code referencing wallet address regular expressions
  • Outbound requests from end-user browsers to unfamiliar domains coinciding with wallet activity on production web applications
  • Cached copies of error-ex@1.3.3 in private npm registries, Verdaccio, Artifactory, or Nexus mirrors

Detection Strategies

  • Audit dependency trees with npm ls error-ex, yarn why error-ex, or pnpm why error-ex and flag any 1.3.3 resolution
  • Scan committed lockfiles and built artifacts in CI for the string error-ex paired with version 1.3.3
  • Inspect browser bundles for injected wallet-targeting code such as 0x[a-fA-F0-9]{40} address substitution patterns
  • Compare published tarball hashes against the maintainer's republished 1.3.4 release to identify tampered caches

Monitoring Recommendations

  • Continuously monitor SCA (Software Composition Analysis) tooling for advisories tagged GHSA-6jp5-hh4c-8c5h
  • Alert on browser telemetry showing modifications to window.ethereum or wallet provider objects
  • Track egress traffic from web frontends for cryptocurrency-related domain lookups initiated from user sessions
  • Review npm publish logs and 2FA enforcement status for all maintainer accounts in your supply chain

How to Mitigate CVE-2025-59330

Immediate Actions Required

  • Upgrade error-ex to version 1.3.4 or later across all projects and lockfiles
  • Delete node_modules entirely and reinstall dependencies after clearing npm cache clean --force or the equivalent for yarn and pnpm
  • Rebuild every browser bundle from scratch and redeploy; do not reuse artifacts produced while 1.3.3 was resolvable
  • Purge error-ex@1.3.3 from private registries, mirrors, and CDN caches

Patch Information

The maintainer resolved the issue in error-ex@1.3.4, published on 13 September 2025. The patched release is functionally equivalent to 1.3.2 without the injected payload and was issued specifically to cache-bust private registries still serving the compromised tarball. Refer to the GitHub Security Advisory for the authoritative remediation guidance.

Workarounds

  • Pin error-ex to a known-good version such as 1.3.2 or >=1.3.4 using overrides in package.json or resolutions for yarn
  • Enforce npm package provenance and require 2FA on all maintainer accounts in your organization's supply chain
  • Use a vetted internal registry mirror that blocks installation of yanked or advisory-flagged versions
  • For high-risk frontends handling cryptocurrency, add Subresource Integrity (SRI) and Content Security Policy (CSP) controls to constrain third-party script behavior
bash
# Remediation example
npm uninstall error-ex
rm -rf node_modules package-lock.json
npm cache clean --force
npm install error-ex@^1.3.4
npm run build  # Rebuild browser bundles from clean dependencies

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechError Ex

  • 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 Blog Post on Supply Chain Attack

  • Aikido Blog on Compromised Packages

  • OX Security Blog on Compromised Packages
  • Latest CVEs
  • CVE-2026-8468: Elixir Plug Library DoS Vulnerability

  • CVE-2026-8295: simdjson Information Disclosure Vulnerability

  • CVE-2025-68421: Comarch ERP Optima Auth Bypass Vulnerability

  • CVE-2025-68420: Comarch ERP Optima Privilege Escalation
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