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

CVE-2026-24910: Bun Auth Bypass Vulnerability

CVE-2026-24910 is an authentication bypass flaw in Bun before version 1.3.5 that allows attackers to spoof the trusted dependencies list. This article covers technical details, affected versions, and mitigation.

Published: January 30, 2026

CVE-2026-24910 Overview

CVE-2026-24910 is a trust validation bypass vulnerability in Bun, a fast JavaScript runtime and package manager. The vulnerability allows attackers to spoof the default trusted dependencies list (trust allow list) by creating non-npm packages with matching names. This affects file, link, git, or github package sources, potentially enabling malicious code to execute under the guise of trusted dependencies.

Critical Impact

Attackers can bypass Bun's trust mechanism to execute malicious lifecycle scripts by spoofing trusted package names through alternative package sources, potentially compromising build pipelines and development environments.

Affected Products

  • Bun versions prior to 1.3.5
  • Development environments using Bun package manager with trusted dependencies
  • CI/CD pipelines leveraging Bun for JavaScript/TypeScript builds

Discovery Timeline

  • 2026-01-27 - CVE CVE-2026-24910 published to NVD
  • 2026-01-29 - Last updated in NVD database

Technical Details for CVE-2026-24910

Vulnerability Analysis

This vulnerability stems from insufficient validation of package source types when checking against the trusted dependencies allow list (CWE-348: Use of Less Trusted Source). Bun maintains a default list of trusted packages that are permitted to run lifecycle scripts during installation. However, the trust verification mechanism fails to properly distinguish between npm registry packages and packages sourced from file paths, symbolic links, git repositories, or GitHub URLs.

When a package is installed, Bun checks if the package name appears on the trusted list. The flaw occurs because this check only validates the package name without verifying the package source origin. An attacker can create a malicious package with the same name as a trusted dependency but distribute it through an alternative source (file, link, git, or github). Since the name matches the allow list, Bun grants the malicious package the same trust privileges as the legitimate npm package, allowing its lifecycle scripts to execute.

Root Cause

The root cause is improper validation in Bun's trust verification system (CWE-348). The trusted dependencies list check compares only package names without considering the package source type or origin. This design assumes all packages with matching names are equivalent, regardless of their distribution channel, creating a name collision vulnerability that can be exploited for trust spoofing.

Attack Vector

The attack requires local access and involves the following scenario: An attacker with the ability to influence a project's package.json or dependency resolution can introduce a malicious package using a file path, symlink, git URL, or GitHub reference. By naming this package identically to one on Bun's trusted dependencies list, the attacker bypasses the trust verification mechanism. When the package is installed, Bun's lifecycle script execution protections are circumvented, allowing arbitrary code execution during the install phase.

The attack complexity is high as it requires the attacker to influence dependency resolution or have write access to project configuration files. However, in supply chain attack scenarios targeting shared development environments or compromised repositories, this vulnerability presents a significant integrity risk.

Detection Methods for CVE-2026-24910

Indicators of Compromise

  • Unexpected packages installed from file, link, git, or github sources with names matching known trusted packages
  • Unusual lifecycle script execution during bun install operations
  • Package.json entries referencing local paths or git URLs for commonly trusted npm packages
  • Discrepancies between expected npm registry packages and actual installed package sources

Detection Strategies

  • Audit package.json and lockfiles for dependencies using file, link, git, or github protocols that match trusted package names
  • Implement package source verification in CI/CD pipelines to flag non-npm sources for trusted dependency names
  • Monitor bun.lockb or package lockfiles for unexpected source changes on known packages
  • Use SentinelOne's behavioral detection to identify suspicious script execution during package installation

Monitoring Recommendations

  • Enable verbose logging for Bun package installations to track package source origins
  • Implement file integrity monitoring on project configuration files (package.json, bun.lockb)
  • Deploy runtime protection to detect and block unexpected child process spawning during build operations
  • Review development environment activity logs for anomalous package installation patterns

How to Mitigate CVE-2026-24910

Immediate Actions Required

  • Upgrade Bun to version 1.3.5 or later immediately
  • Audit all existing projects for dependencies using file, link, git, or github sources
  • Review and verify the legitimacy of any non-npm packages with names matching trusted dependencies
  • Temporarily disable lifecycle script execution using --ignore-scripts flag until patched

Patch Information

The vulnerability has been addressed in Bun version 1.3.5. The fix implements proper source validation when checking packages against the trusted dependencies list, ensuring that only packages from the npm registry are granted trust privileges based on the allow list. Users should update immediately by running their preferred update mechanism.

For detailed information about the fix, see the Bun v1.3.5 Release Notes. Additional context on this vulnerability as part of a broader set of JavaScript package manager issues is available in the Koi.ai security research blog.

Workarounds

  • Use the --ignore-scripts flag during package installation to prevent lifecycle script execution
  • Manually specify trusted packages using explicit npm registry URLs rather than relying on name matching
  • Implement a pre-install hook to validate package sources before installation proceeds
  • Restrict write access to package.json and lockfiles in shared development environments
bash
# Configuration example
# Install packages with lifecycle scripts disabled
bun install --ignore-scripts

# Verify Bun version after upgrade
bun --version
# Expected output: 1.3.5 or higher

# Audit installed packages for non-npm sources
grep -E '"(file|link|git|github):' package.json

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechBun

  • SeverityMEDIUM

  • CVSS Score5.9

  • EPSS Probability0.00%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-348
  • Technical References
  • Bun Blog Release Notes

  • Koi.ai Blog on Zero-Day Vulnerabilities

  • SCWorld News on Javascript Bugs
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE 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