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-2022-23395

CVE-2022-23395: jQuery.cookie XSS Vulnerability

CVE-2022-23395 is a prototype pollution vulnerability in jQuery Cookie 1.4.1 that enables DOM-based cross-site scripting attacks. This article covers the technical details, affected versions, security impact, and mitigation.

Published: February 18, 2026

CVE-2022-23395 Overview

jQuery Cookie 1.4.1 is affected by a prototype pollution vulnerability that can lead to DOM cross-site scripting (XSS). This JavaScript library, widely used for handling browser cookies, contains a flaw that allows attackers to manipulate the Object prototype, potentially injecting malicious properties that can be exploited to execute arbitrary JavaScript code in the context of a user's browser session.

Critical Impact

Attackers can exploit this prototype pollution vulnerability to achieve DOM-based XSS, potentially stealing session tokens, performing actions on behalf of users, or redirecting victims to malicious sites.

Affected Products

  • jQuery.cookie version 1.4.1
  • jquery.cookie_project jquery.cookie (Node.js package)
  • Applications and websites utilizing the vulnerable jQuery.cookie library

Discovery Timeline

  • 2022-03-02 - CVE CVE-2022-23395 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-23395

Vulnerability Analysis

This vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes) affects jQuery Cookie version 1.4.1. Prototype pollution occurs when an attacker can inject properties into JavaScript Object prototypes, which are then inherited by all objects in the application. In the context of jQuery.cookie, this vulnerability enables an attacker to pollute the prototype chain through specially crafted cookie values or names.

The exploitation requires user interaction, as the attack is network-based and typically delivered through malicious links or compromised web pages. When successfully exploited, the prototype pollution chain can lead to DOM-based cross-site scripting, allowing arbitrary JavaScript execution within the victim's browser context. This can result in unauthorized access to sensitive data, session hijacking, or manipulation of page content.

Root Cause

The root cause lies in improper handling of user-controlled input when processing cookie data. The jQuery.cookie library fails to adequately sanitize or validate input before using it in operations that can modify object prototypes. When cookie names or values containing special properties like __proto__, constructor, or prototype are processed, they can inadvertently modify the base Object prototype, affecting all objects in the JavaScript runtime environment.

Attack Vector

The attack is delivered over the network and requires user interaction to trigger. An attacker can craft a malicious URL or inject cookie data that, when processed by the vulnerable jQuery.cookie library, pollutes the Object prototype. This pollution can then be leveraged to inject malicious scripts into the DOM.

The vulnerability exploits the way JavaScript handles property assignment on objects. When the library processes a cookie with a specially crafted name containing prototype-pollution payloads, the malicious properties are added to the Object prototype. These properties can then be used to inject script content when the application subsequently renders dynamic content based on object properties.

Detection Methods for CVE-2022-23395

Indicators of Compromise

  • Presence of jQuery.cookie version 1.4.1 in application dependencies or CDN includes
  • Unusual cookie names containing __proto__, constructor, or prototype strings in HTTP requests
  • JavaScript errors related to unexpected object properties in browser console logs
  • Signs of XSS exploitation such as unauthorized script execution or DOM manipulation

Detection Strategies

  • Scan application dependencies using software composition analysis (SCA) tools to identify vulnerable jQuery.cookie versions
  • Monitor web application logs for suspicious cookie values containing prototype pollution payloads
  • Implement Content Security Policy (CSP) headers to detect and block unauthorized script execution
  • Use browser-based XSS auditors and security extensions to identify potential exploitation attempts

Monitoring Recommendations

  • Enable detailed JavaScript error logging to capture prototype pollution attempts
  • Monitor network traffic for HTTP requests containing suspicious cookie patterns
  • Implement real-time alerting for CSP violations that may indicate XSS attempts
  • Regularly audit frontend dependencies for known vulnerabilities using automated security scanning

How to Mitigate CVE-2022-23395

Immediate Actions Required

  • Identify all applications using jQuery.cookie version 1.4.1 through dependency audits
  • Consider removing or replacing the vulnerable library with a maintained alternative such as js-cookie
  • Implement input validation and sanitization for all cookie-related operations
  • Deploy Content Security Policy (CSP) headers to mitigate potential XSS impact

Patch Information

No official patch has been released for this vulnerability. The jQuery.cookie project appears to be unmaintained. Organizations should migrate to alternative cookie handling libraries that are actively maintained and do not contain this vulnerability. The recommended alternative is the js-cookie library, which provides similar functionality without the prototype pollution vulnerability.

For additional security information, refer to the NetApp Security Advisory NTAP-20220325-0008 and the Snyk Vulnerability Test for jQuery.Cookie.

Workarounds

  • Replace jQuery.cookie with a secure alternative library such as js-cookie
  • Implement object freezing using Object.freeze(Object.prototype) to prevent prototype modification
  • Use Object.create(null) for objects that process untrusted cookie data to prevent prototype chain access
  • Deploy strict Content Security Policy headers to limit the impact of any XSS exploitation
bash
# Configuration example - NPM dependency replacement
# Remove vulnerable jQuery.cookie package
npm uninstall jquery.cookie

# Install secure alternative
npm install js-cookie

# Verify no vulnerable packages remain
npm audit

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechJquery.cookie

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-1321
  • Technical References
  • NetApp Security Advisory NTAP-20220325-0008

  • Snyk Vulnerability Test for jQuery.Cookie
  • 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