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-2025-62410

CVE-2025-62410: happy-dom RCE Vulnerability

CVE-2025-62410 is a remote code execution flaw in happy-dom that allows prototype pollution attacks despite code generation restrictions. This post explains its impact, affected versions, and mitigation steps.

Published: April 8, 2026

CVE-2025-62410 Overview

CVE-2025-62410 is a critical prototype pollution vulnerability affecting happy-dom, a JavaScript DOM implementation commonly used for server-side rendering and testing. The vulnerability exists because the --disallow-code-generation-from-strings flag is insufficient for isolating untrusted JavaScript code. Since both the untrusted script and the main application execute within the same Isolate/process, attackers can leverage prototype pollution payloads to hijack critical references such as the process object or manipulate control flow by modifying undefined property checks.

This vulnerability represents an incomplete fix for CVE-2025-61927, indicating that the previous remediation did not fully address the underlying security concern.

Critical Impact

Attackers can execute arbitrary code by exploiting prototype pollution to hijack critical JavaScript references and manipulate application control flow, potentially leading to full system compromise.

Affected Products

  • happy-dom versions prior to 20.0.2

Discovery Timeline

  • 2025-10-15 - CVE-2025-62410 published to NVD
  • 2025-10-16 - Last updated in NVD database

Technical Details for CVE-2025-62410

Vulnerability Analysis

This vulnerability falls under CWE-1321 (Improperly Controlled Modification of Object Prototype Attributes), commonly known as Prototype Pollution. The core issue stems from the shared execution context between untrusted scripts and the main application within happy-dom's architecture.

When happy-dom processes JavaScript code, even with the --disallow-code-generation-from-strings flag enabled, the security boundary between trusted and untrusted code is not properly enforced. The flag was intended to prevent dynamic code generation attacks but fails to account for prototype pollution vectors that operate within the same JavaScript Isolate.

Prototype pollution attacks work by manipulating the prototype chain of JavaScript objects, allowing attackers to inject or modify properties that will be inherited by all objects. In the context of happy-dom, this enables attackers to hijack references to critical objects like process, potentially enabling remote code execution in Node.js environments.

Root Cause

The root cause is the incomplete isolation between untrusted JavaScript execution and the application's trusted context. The --disallow-code-generation-from-strings flag addresses only one attack vector (dynamic code generation via eval() and Function constructors) while leaving the prototype chain accessible and modifiable by untrusted code.

This represents an architectural limitation where both execution contexts share the same JavaScript Isolate, making it impossible to fully segregate object prototypes and prevent pollution attacks without more comprehensive sandboxing.

Attack Vector

The attack is network-accessible and requires an attacker to supply malicious JavaScript content that gets processed by happy-dom. The exploitation typically involves:

  1. Crafting a JavaScript payload that modifies Object.prototype or other built-in prototypes
  2. Injecting properties that will be accessed by the application's trusted code
  3. Hijacking critical references (such as process) or manipulating undefined property checks to alter control flow
  4. Achieving code execution or other malicious outcomes depending on the application's behavior

The vulnerability is particularly dangerous in scenarios where happy-dom processes user-controlled HTML or JavaScript content, such as server-side rendering of untrusted data or automated testing environments that execute external scripts.

Detection Methods for CVE-2025-62410

Indicators of Compromise

  • Unexpected modifications to JavaScript object prototypes in application logs or debugging output
  • Unusual property access patterns on Object.prototype or other built-in prototypes
  • Attempts to access or modify the process object from untrusted script contexts
  • Anomalous control flow behavior indicating manipulated undefined property checks

Detection Strategies

  • Monitor for prototype pollution patterns in JavaScript execution, particularly modifications to __proto__, constructor.prototype, or direct Object.prototype assignments
  • Implement runtime integrity checks for critical objects like process before sensitive operations
  • Deploy application-level logging to detect unexpected property access patterns on prototype chains
  • Use static analysis tools to identify potentially vulnerable code paths that process untrusted JavaScript

Monitoring Recommendations

  • Enable detailed logging for happy-dom script execution in production environments
  • Monitor dependency versions and implement automated alerts for outdated packages
  • Track failed security checks or unexpected exceptions that may indicate exploitation attempts
  • Implement behavioral analysis to detect anomalous JavaScript execution patterns

How to Mitigate CVE-2025-62410

Immediate Actions Required

  • Upgrade happy-dom to version 20.0.2 or later immediately
  • Audit applications using happy-dom to identify exposure to untrusted JavaScript content
  • Implement additional input validation for any user-controlled data processed by happy-dom
  • Consider isolating happy-dom execution in separate processes or containers as a defense-in-depth measure

Patch Information

The vulnerability is fixed in happy-dom version 20.0.2. The security patch addresses the incomplete isolation issue from CVE-2025-61927.

For detailed information about the fix, refer to the GitHub Commit and the GitHub Security Advisory GHSA-qpm2-6cq5-7pq5.

Workarounds

  • Avoid processing untrusted JavaScript content with happy-dom until the patch is applied
  • Implement prototype freezing by calling Object.freeze(Object.prototype) before executing untrusted code (may break some functionality)
  • Run happy-dom in isolated worker threads or separate Node.js processes to limit the impact of prototype pollution
  • Use Content Security Policy (CSP) and other input sanitization measures to reduce exposure to malicious scripts
bash
# Upgrade happy-dom to patched version
npm update happy-dom@20.0.2

# Verify installed version
npm list happy-dom

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechHappy Dom

  • SeverityCRITICAL

  • CVSS Score9.4

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/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
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-1321
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-qpm2-6cq5-7pq5
  • Related CVEs
  • CVE-2026-33943: Happy DOM RCE Vulnerability

  • CVE-2024-51757: happy-dom 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