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

CVE-2026-3979: QuickJS-ng Use After Free Vulnerability

CVE-2026-3979 is a use after free vulnerability in QuickJS-ng up to version 0.12.1 affecting the js_iterator_concat_return function. This post covers the technical details, affected versions, security impact, and patching guidance.

Published: March 13, 2026

CVE-2026-3979 Overview

A use after free vulnerability has been discovered in quickjs-ng QuickJS up to version 0.12.1. This memory corruption flaw affects the function js_iterator_concat_return within the file quickjs.c. When exploited, an attacker with local access can manipulate the affected function to trigger a use after free condition, potentially leading to arbitrary code execution, information disclosure, or denial of service.

Critical Impact

This use after free vulnerability in the JavaScript engine's iterator concatenation handling could allow local attackers to corrupt memory, potentially enabling code execution or causing application crashes in systems using QuickJS-ng for JavaScript parsing and execution.

Affected Products

  • quickjs-ng QuickJS versions up to 0.12.1
  • Applications and systems embedding QuickJS-ng JavaScript engine

Discovery Timeline

  • 2026-03-12 - CVE CVE-2026-3979 published to NVD
  • 2026-03-12 - Last updated in NVD database

Technical Details for CVE-2026-3979

Vulnerability Analysis

This vulnerability is classified under CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer), which encompasses memory safety issues including use after free conditions. The flaw resides in the js_iterator_concat_return function within quickjs.c, a core component of the QuickJS JavaScript engine.

Use after free vulnerabilities occur when a program continues to reference memory after it has been freed, allowing an attacker to potentially control the contents of that memory region when it is reallocated. In this case, the iterator concatenation return handling does not properly manage object lifetimes, leading to a dangling pointer scenario.

The attack requires local access to the system, meaning an attacker must already have the ability to execute code or provide malicious JavaScript input to an application using the vulnerable QuickJS-ng library.

Root Cause

The root cause of CVE-2026-3979 lies in improper memory management within the js_iterator_concat_return function. The function fails to correctly handle object references during iterator concatenation operations, resulting in a scenario where memory is freed prematurely while references to that memory still exist. When the code subsequently attempts to access this freed memory, it results in undefined behavior that can be exploited by an attacker.

The fix has been implemented in commit daab4ad4bae4ef071ed0294618d6244e92def4cd, which addresses the object lifetime management issue in the iterator concatenation logic.

Attack Vector

The attack vector for this vulnerability requires local access to the target system. An attacker would need to either:

  1. Execute malicious JavaScript code through an application using the vulnerable QuickJS-ng engine
  2. Provide crafted input that triggers the vulnerable code path in js_iterator_concat_return

The vulnerability can be triggered through manipulation of iterator objects during concatenation operations. When the vulnerable function processes specially crafted iterator chains, the use after free condition can be triggered, potentially allowing the attacker to:

  • Execute arbitrary code within the context of the affected application
  • Cause denial of service through application crashes
  • Potentially leak sensitive information from memory

For technical details on the vulnerability mechanism, refer to the GitHub Issue #1368 and the associated commit that addresses the flaw.

Detection Methods for CVE-2026-3979

Indicators of Compromise

  • Unexpected crashes or segmentation faults in applications using QuickJS-ng JavaScript engine
  • Memory corruption errors in system logs related to QuickJS-ng processes
  • Abnormal memory access patterns or heap corruption detected by memory sanitizers
  • Suspicious JavaScript execution patterns involving iterator operations

Detection Strategies

  • Deploy memory sanitizers (AddressSanitizer, Valgrind) in testing environments to detect use after free conditions
  • Monitor application logs for signs of memory corruption or unexpected termination in QuickJS-ng-dependent applications
  • Implement runtime memory protection mechanisms that can detect heap corruption
  • Review application code for untrusted JavaScript input handling that could trigger the vulnerable code path

Monitoring Recommendations

  • Enable verbose logging for applications embedding QuickJS-ng to capture potential exploitation attempts
  • Monitor system stability and crash reports for patterns indicating memory corruption
  • Implement application-level monitoring for unusual iterator operation patterns
  • Consider deploying endpoint detection solutions capable of identifying memory corruption exploit techniques

How to Mitigate CVE-2026-3979

Immediate Actions Required

  • Update quickjs-ng QuickJS to a version that includes the security patch (commit daab4ad4bae4ef071ed0294618d6244e92def4cd)
  • Audit applications using QuickJS-ng to identify potential exposure points
  • Restrict the ability to execute untrusted JavaScript code through affected QuickJS-ng installations
  • Consider implementing sandboxing for applications that must process untrusted JavaScript

Patch Information

A patch has been released by the quickjs-ng project to address this vulnerability. The fix is available in commit daab4ad4bae4ef071ed0294618d6244e92def4cd. Organizations should apply this patch immediately or update to a version of QuickJS-ng that includes this fix.

For detailed information on the patch, refer to:

  • GitHub Commit Detail
  • GitHub Pull Request #1370

Workarounds

  • Limit exposure by disabling or restricting JavaScript execution capabilities in affected applications where possible
  • Implement input validation and sanitization for any JavaScript code processed by QuickJS-ng
  • Run QuickJS-ng in a sandboxed environment to limit the impact of potential exploitation
  • Monitor and restrict local access to systems running vulnerable QuickJS-ng versions
bash
# Update QuickJS-ng to the patched version
cd /path/to/quickjs-ng
git fetch origin
git checkout daab4ad4bae4ef071ed0294618d6244e92def4cd
make clean && make

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechQuickjs

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/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
  • AvailabilityLow
  • CWE References
  • CWE-119
  • Technical References
  • GitHub QuickJS Repository

  • GitHub Commit Detail

  • GitHub Issue #1368

  • GitHub Issue Comment

  • GitHub Pull Request #1370

  • VulDB Ctiid #350414

  • VulDB #350414

  • VulDB Submission #769600
  • Related CVEs
  • CVE-2026-1144: QuickJS-NG Use After Free Vulnerability

  • CVE-2025-69654: QuickJS Interpreter DOS Vulnerability

  • CVE-2025-69653: QuickJS Denial-of-Service Vulnerability

  • CVE-2026-1145: QuickJS-NG Buffer Overflow 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