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

CVE-2026-35209: defu Prototype Pollution Vulnerability

CVE-2026-35209 is a prototype pollution vulnerability in defu that allows attackers to override object prototypes via crafted __proto__ payloads. This article covers technical details, affected versions, and mitigation.

Published: April 10, 2026

CVE-2026-35209 Overview

CVE-2026-35209 is a prototype pollution vulnerability in defu, a JavaScript library that allows users to assign default properties recursively. Prior to version 6.1.5, applications that pass unsanitized user input (such as parsed JSON request bodies, database records, or config files from untrusted sources) as the first argument to the defu() function are vulnerable to prototype pollution attacks.

A crafted payload containing a __proto__ key can override intended default values in the merged result, allowing attackers to inject malicious properties into JavaScript objects throughout the application. This vulnerability is classified as CWE-1321 (Improper Neutralization of Special Elements in Output Used by a Downstream Component).

Critical Impact

Attackers can manipulate object prototypes to bypass security controls, inject malicious properties, or cause application instability through prototype pollution via unsanitized input to the defu() function.

Affected Products

  • defu versions prior to 6.1.5
  • Applications using defu() with unsanitized user input as the first argument
  • Node.js applications processing untrusted JSON, database records, or configuration files

Discovery Timeline

  • 2026-04-06 - CVE CVE-2026-35209 published to NVD
  • 2026-04-07 - Last updated in NVD database

Technical Details for CVE-2026-35209

Vulnerability Analysis

This prototype pollution vulnerability exists in the internal _defu function of the defu library. The core issue stems from how JavaScript handles property assignment when using Object.assign() versus object spread syntax.

The vulnerable code used Object.assign({}, defaults) to copy the defaults object. When Object.assign encounters a __proto__ key in the source object, it invokes the __proto__ setter on the target object, which replaces the resulting object's [[Prototype]] with attacker-controlled values.

Properties inherited from the polluted prototype can then bypass the existing __proto__ key guard in the for...in loop and land in the final result, effectively allowing attackers to inject arbitrary properties into all objects that inherit from the polluted prototype.

Root Cause

The root cause is the use of Object.assign({}, defaults) to copy default objects. Object.assign treats __proto__ as a regular property assignment, which triggers the prototype setter and allows modification of the object's prototype chain. While the library included a guard in its for...in loop to skip __proto__ and constructor keys, this protection was bypassed because the prototype pollution occurred during the Object.assign operation before the loop executed.

Attack Vector

An attacker can exploit this vulnerability by providing malicious input containing a __proto__ key to any application that passes unsanitized data to the defu() function. Common attack vectors include:

  • Malicious JSON payloads in HTTP request bodies
  • Crafted database records containing __proto__ properties
  • Untrusted configuration files processed by the application
  • Any user-controllable data merged using defu()

The fix in version 6.1.5 replaces Object.assign({}, defaults) with object spread syntax ({ ...defaults }), which uses [[DefineOwnProperty]] internally and does not invoke the __proto__ setter:

typescript
     return _defu(baseObject, {}, namespace, merger);
   }
 
-  const object = Object.assign({}, defaults);
+  const object = { ...defaults };
 
   for (const key in baseObject) {
     if (key === "__proto__" || key === "constructor") {

Source: GitHub Commit Update

Detection Methods for CVE-2026-35209

Indicators of Compromise

  • Unexpected properties appearing in application objects that were not explicitly defined
  • Application behavior changes or security control bypasses without code modifications
  • JSON payloads in logs containing __proto__, constructor, or prototype keys
  • Error messages indicating unexpected object property access or type mismatches

Detection Strategies

  • Implement input validation logging to detect __proto__, constructor, and prototype keys in incoming JSON data
  • Monitor application dependencies using software composition analysis (SCA) tools to identify vulnerable defu versions
  • Deploy runtime application self-protection (RASP) solutions to detect prototype pollution attempts
  • Review code for patterns where user input flows directly into defu() function calls

Monitoring Recommendations

  • Enable verbose logging for JSON parsing operations to capture suspicious payloads
  • Set up alerts for npm audit warnings related to the defu package
  • Monitor for unusual object property access patterns in application performance monitoring (APM) tools
  • Implement Content Security Policy (CSP) headers and monitor violations that may indicate exploitation attempts

How to Mitigate CVE-2026-35209

Immediate Actions Required

  • Upgrade defu to version 6.1.5 or later immediately
  • Audit all code paths where user-controlled data is passed to defu() function calls
  • Implement input validation to reject or sanitize objects containing __proto__, constructor, or prototype keys
  • Review and update any downstream dependencies that may include vulnerable defu versions

Patch Information

The vulnerability has been patched in defu version 6.1.5. The fix replaces the vulnerable Object.assign({}, defaults) pattern with object spread syntax ({ ...defaults }), which uses [[DefineOwnProperty]] and does not invoke the __proto__ setter.

For detailed information about the patch, see:

  • GitHub Security Advisory GHSA-737v-mqg7-c878
  • GitHub Release v6.1.5
  • GitHub Pull Request #156

Workarounds

  • If immediate upgrade is not possible, implement a wrapper function that sanitizes input objects before passing to defu()
  • Use Object.freeze(Object.prototype) as a defense-in-depth measure (may cause compatibility issues with some libraries)
  • Validate and filter incoming JSON to remove dangerous keys like __proto__, constructor, and prototype before processing
bash
# Upgrade defu to patched version
npm update defu@6.1.5

# Verify installed version
npm list defu

# Audit for vulnerable dependencies
npm audit

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechDefu

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.03%

  • 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-1321
  • Technical References
  • GitHub Commit Update

  • GitHub Pull Request #156

  • GitHub Release v6.1.5

  • GitHub Security Advisory GHSA-737v-mqg7-c878
  • Latest CVEs
  • CVE-2026-46333: Linux Kernel Privilege Escalation Flaw

  • CVE-2026-2586: Eclipse Glassfish RCE Vulnerability

  • CVE-2026-2587: Eclipse Glassfish RCE Vulnerability

  • CVE-2026-45255: FreeBSD bsdinstall/bsdconfig RCE Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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