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-2023-26136

CVE-2023-26136: Tough-cookie Prototype Pollution Flaw

CVE-2023-26136 is a prototype pollution vulnerability in the tough-cookie package affecting versions before 4.1.3. The flaw occurs in CookieJar when rejectPublicSuffixes is disabled. This article covers technical details.

Published: February 11, 2026

CVE-2023-26136 Overview

CVE-2023-26136 is a Prototype Pollution vulnerability affecting the Salesforce tough-cookie package, a popular Node.js library used for HTTP cookie handling. Versions prior to 4.1.3 are vulnerable due to improper handling of Cookies when using CookieJar in rejectPublicSuffixes=false mode. This issue arises from the manner in which objects are initialized, allowing attackers to inject properties into Object prototypes that can lead to denial of service, property injection, or in some cases remote code execution.

Critical Impact

This vulnerability allows attackers to pollute JavaScript Object prototypes via specially crafted cookie values, potentially leading to remote code execution, denial of service, or application logic bypass in Node.js applications using the affected library.

Affected Products

  • salesforce tough-cookie (versions prior to 4.1.3)
  • Node.js applications using vulnerable tough-cookie versions
  • Applications with CookieJar configured in rejectPublicSuffixes=false mode

Discovery Timeline

  • 2023-07-01 - CVE-2023-26136 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-26136

Vulnerability Analysis

The vulnerability exists in the tough-cookie library's memory store implementation (lib/memstore.js). When the CookieJar is instantiated, the internal index object (this.idx) was initialized using an empty object literal {}. This seemingly innocuous initialization creates an object that inherits from Object.prototype, making it susceptible to prototype pollution attacks.

When cookies are stored with specially crafted domain or path values (such as __proto__), an attacker can inject arbitrary properties into the base Object prototype. Since all JavaScript objects inherit from Object.prototype, these injected properties become accessible across the entire application, potentially allowing attackers to modify application behavior, bypass security checks, or cause denial of service conditions.

Root Cause

The root cause is the use of a standard object literal {} for initializing the cookie storage index. This creates an object with a prototype chain connected to Object.prototype. When cookie domains are used as keys to store cookie data, an attacker-controlled domain value of __proto__ causes properties to be written directly to the Object prototype rather than the intended storage object.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by sending HTTP responses with malicious Set-Cookie headers to an application using the vulnerable tough-cookie library with rejectPublicSuffixes=false. The crafted cookie domain or path values can target the __proto__ property, injecting malicious properties into the global Object prototype.

javascript
// Vulnerable code pattern (before fix):
constructor() {
  super();
  this.synchronous = true;
  this.idx = {};  // Vulnerable: inherits from Object.prototype
  const customInspectSymbol = getCustomInspectSymbol();
  if (customInspectSymbol) {
    this[customInspectSymbol] = this.inspect;
  }
}

// Fixed code pattern (after patch):
constructor() {
  super();
  this.synchronous = true;
  this.idx = Object.create(null);  // Secure: no prototype chain
  const customInspectSymbol = getCustomInspectSymbol();
  if (customInspectSymbol) {
    this[customInspectSymbol] = this.inspect;
  }
}

Source: GitHub Commit Update

Detection Methods for CVE-2023-26136

Indicators of Compromise

  • Unexpected application behavior or crashes in Node.js applications using tough-cookie
  • Cookie values containing __proto__, constructor, or prototype keywords in HTTP requests/responses
  • Unusual modifications to global object properties during runtime
  • Application logic bypasses or authentication anomalies

Detection Strategies

  • Implement Software Composition Analysis (SCA) scanning to identify vulnerable tough-cookie versions in your dependency tree
  • Monitor for HTTP traffic containing suspicious cookie domain/path values targeting prototype properties
  • Use runtime application self-protection (RASP) solutions to detect prototype pollution attempts
  • Review application logs for unexpected type errors or property access patterns

Monitoring Recommendations

  • Enable verbose logging for cookie handling operations in applications using tough-cookie
  • Implement alerts for dependency vulnerabilities using tools like npm audit, Snyk, or SentinelOne's application security monitoring
  • Monitor network traffic for anomalous Set-Cookie headers with unusual domain patterns
  • Deploy SentinelOne Singularity to detect exploitation attempts at runtime

How to Mitigate CVE-2023-26136

Immediate Actions Required

  • Upgrade tough-cookie to version 4.1.3 or later immediately
  • Run npm audit or yarn audit to identify vulnerable packages in your Node.js projects
  • Review applications for use of rejectPublicSuffixes=false configuration and assess if it's necessary
  • Scan container images and production deployments for vulnerable library versions

Patch Information

Salesforce has released version 4.1.3 of tough-cookie which addresses this vulnerability. The fix replaces the vulnerable object initialization this.idx = {} with this.idx = Object.create(null), creating an object with no prototype chain that is immune to prototype pollution attacks.

Patch resources:

  • GitHub Release v4.1.3
  • GitHub Commit Update
  • GitHub Issue Discussion

Additional advisories have been published by Debian LTS, Fedora, and NetApp.

Workarounds

  • If immediate upgrade is not possible, avoid using rejectPublicSuffixes=false mode in CookieJar configuration
  • Implement input validation to reject cookies with domains containing __proto__, constructor, or prototype
  • Use Object.freeze() on critical application objects to prevent prototype modification
  • Consider implementing a Content Security Policy to limit the impact of potential exploitation
bash
# Update tough-cookie to the patched version
npm update tough-cookie

# Or specify the minimum safe version in package.json
npm install tough-cookie@^4.1.3

# Audit your project for vulnerable dependencies
npm audit fix

# For yarn users
yarn upgrade tough-cookie@^4.1.3
yarn audit

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechSalesforce

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability6.87%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1321
  • Technical References
  • GitHub Release v4.1.3

  • Debian LTS Security Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory

  • Snyk Vulnerability Report
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Issue Discussion
  • Related CVEs
  • CVE-2026-2298: Salesforce Marketing Cloud RCE Vulnerability

  • CVE-2026-25650: MCP Salesforce Connector Info Disclosure

  • CVE-2026-22585: Salesforce Marketing Cloud Cryptographic Flaw

  • CVE-2025-43698: Salesforce OmniStudio Auth Bypass Flaw
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