Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-37616

CVE-2022-37616: Xmldom Prototype Pollution Vulnerability

CVE-2022-37616 is a prototype pollution vulnerability in the Xmldom package for Node.js that affects the copy function in dom.js. This post covers the technical details, affected versions, and available mitigations.

Published: February 18, 2026

CVE-2022-37616 Overview

A prototype pollution vulnerability exists in the copy function within dom.js in the xmldom package (published as @xmldom/xmldom) for Node.js. The vulnerability allows attackers to pollute object prototypes via the p variable, potentially leading to arbitrary property injection on target objects. While the vendor has contested the classification of this vulnerability, security researchers maintain that prototype pollution occurs when a target object is polluted, regardless of whether global objects are affected through recursive merge or deep cloning operations.

Critical Impact

This prototype pollution vulnerability can allow remote attackers to manipulate object properties, potentially leading to denial of service, property injection, or in some scenarios, arbitrary code execution depending on how the polluted objects are used in the application.

Affected Products

  • xmldom_project xmldom (versions before 0.8.3 for Node.js)
  • xmldom 0.9.0-beta1 for Node.js
  • Debian Linux 10.0

Discovery Timeline

  • 2022-10-11 - CVE CVE-2022-37616 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-37616

Vulnerability Analysis

The vulnerability resides in the copy function located in dom.js within the xmldom package. Prototype pollution is a JavaScript-specific vulnerability class (CWE-1321) that occurs when user-controlled input can modify the prototype of base objects. In the case of CVE-2022-37616, the p variable within the copy function does not properly validate or sanitize property names before assignment, allowing an attacker to inject properties like __proto__, constructor, or prototype.

When exploited, this allows attackers to modify the behavior of objects throughout the application. Since xmldom is widely used for XML parsing in Node.js applications, this vulnerability could affect any application that processes untrusted XML input through affected versions.

Root Cause

The root cause of this vulnerability is improper input validation in the copy function within dom.js. The function fails to check whether property names being copied include special prototype-related properties (__proto__, constructor.prototype). Without proper sanitization, an attacker can inject malicious properties that propagate to all objects sharing the same prototype chain, leading to application-wide pollution.

Attack Vector

This vulnerability is exploitable over the network without authentication or user interaction. An attacker can craft malicious XML input that, when processed by a vulnerable xmldom instance, triggers the prototype pollution through the copy function. The attack requires the target application to process attacker-controlled XML data.

The exploitation flow involves:

  1. Attacker submits crafted XML containing specially-named elements or attributes
  2. The xmldom parser processes this input through the vulnerable copy function
  3. The p variable receives attacker-controlled property names without validation
  4. Prototype pollution occurs, affecting object behavior throughout the application

Technical details and discussion of this vulnerability can be found in the GitHub XMLDOM Issue #436 and the GitHub Security Advisory GHSA-9pgh-qqpf-7wqj.

Detection Methods for CVE-2022-37616

Indicators of Compromise

  • Unexpected properties appearing on JavaScript objects within Node.js applications using xmldom
  • Application behavior changes after processing specific XML payloads
  • Log entries showing unusual property access patterns on parsed XML objects
  • Runtime errors related to unexpected prototype properties in downstream code

Detection Strategies

  • Implement software composition analysis (SCA) to identify xmldom versions prior to 0.8.3 in your dependency tree
  • Monitor npm audit reports for CVE-2022-37616 in project dependencies
  • Deploy runtime application self-protection (RASP) solutions that can detect prototype pollution attempts
  • Review application logs for anomalous XML parsing behavior or unexpected object property modifications

Monitoring Recommendations

  • Enable verbose logging for XML parsing operations in applications using xmldom
  • Implement integrity monitoring for critical JavaScript objects to detect prototype modifications
  • Set up dependency vulnerability scanning in CI/CD pipelines to catch vulnerable xmldom versions
  • Monitor for unusual application crashes or behavior that may indicate prototype pollution exploitation

How to Mitigate CVE-2022-37616

Immediate Actions Required

  • Upgrade xmldom (@xmldom/xmldom) to version 0.8.3 or later immediately
  • Audit all Node.js applications for xmldom dependencies using npm ls xmldom or npm ls @xmldom/xmldom
  • Review transitive dependencies that may include vulnerable xmldom versions
  • Consider implementing input validation for XML data before processing with xmldom

Patch Information

The vulnerability has been addressed in xmldom version 0.8.3. Organizations should update to this version or later to remediate the vulnerability. For Debian Linux 10.0 users, refer to the Debian LTS Announcement for distribution-specific patch information. The fix involves proper validation of property names in the copy function to prevent prototype pollution through the p variable.

Workarounds

  • Implement Object.freeze() on critical object prototypes to prevent modification
  • Use Object.create(null) for objects that will receive untrusted data to create prototype-less objects
  • Deploy a web application firewall (WAF) configured to inspect and sanitize XML payloads
  • Consider using alternative XML parsing libraries until upgrade is possible
bash
# Upgrade xmldom to patched version
npm update @xmldom/xmldom

# Verify installed version
npm ls @xmldom/xmldom

# For yarn users
yarn upgrade @xmldom/xmldom

# 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/TechXmldom

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability1.50%

  • 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
  • Academic Paper on JS Vulnerability

  • ACM Article Abstract

  • ACM Article PDF Version

  • GitHub XMLDOM Issue Comment #1

  • GitHub XMLDOM Issue Comment #2

  • GitHub Security Advisory GHSA-9pgh-qqpf-7wqj

  • Debian LTS Announcement
  • Vendor Resources
  • GitHub XMLDOM Code Reference Line 1

  • GitHub XMLDOM Code Reference Line 3

  • GitHub XMLDOM Issue #436
  • Related CVEs
  • CVE-2026-34601: xmldom XML Injection Vulnerability

  • CVE-2022-39353: Xmldom_project Xmldom XXE Vulnerability

  • CVE-2021-32796: Xmldom_project Xmldom XXE Vulnerability

  • CVE-2021-21366: Xmldom_project Xmldom XXE 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