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-2020-7660

CVE-2020-7660: Serialize-javascript RCE Vulnerability

CVE-2020-7660 is a remote code execution vulnerability in Serialize-javascript that allows attackers to inject arbitrary code through the deleteFunctions function. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-7660 Overview

CVE-2020-7660 is a remote code injection vulnerability affecting serialize-javascript versions prior to 3.1.0. This Node.js library, maintained by Verizon (originally Yahoo), is widely used to serialize JavaScript objects to a superset of JSON. The vulnerability allows remote attackers to inject arbitrary code via the deleteFunctions function within index.js, potentially leading to complete system compromise in affected applications.

Critical Impact

Remote attackers can inject and execute arbitrary code on systems running vulnerable versions of serialize-javascript, potentially gaining full control of affected Node.js applications.

Affected Products

  • Verizon serialize-javascript versions prior to 3.1.0
  • Node.js applications utilizing vulnerable serialize-javascript package
  • Web applications and build tools incorporating the affected library

Discovery Timeline

  • 2020-06-01 - CVE-2020-7660 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-7660

Vulnerability Analysis

This vulnerability is classified as Insecure Deserialization (CWE-502), which occurs when untrusted data is used to abuse the logic of an application, inflict denial-of-service attacks, or execute arbitrary code. The serialize-javascript library is designed to convert JavaScript objects into serialized string representations that can be safely embedded in HTML or transmitted across networks.

The flaw exists within the deleteFunctions function in index.js, where improper handling of specially crafted input can lead to code injection. When the library processes malicious payloads, attackers can inject arbitrary JavaScript code that gets executed during the deserialization process. This is particularly dangerous in server-side rendering scenarios and build pipelines where serialized data may come from untrusted sources.

Root Cause

The root cause stems from insufficient input validation and sanitization within the deleteFunctions function. The function fails to properly escape or validate user-controlled data before processing, allowing specially crafted payloads to break out of the intended serialization context and inject executable code. This type of deserialization vulnerability is common in JavaScript libraries that handle dynamic code generation or evaluation without proper security controls.

Attack Vector

The attack is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability by sending a malicious payload to an application that uses the vulnerable serialize-javascript library. The exploitation complexity is high as it requires specific conditions to be met, including the presence of the vulnerable function in the code path and the ability to control input that reaches the deserialization logic.

The attack flow typically involves:

  1. Identifying an application endpoint that processes serialized data using the vulnerable library
  2. Crafting a malicious payload that exploits the deleteFunctions function
  3. Sending the payload to the target application
  4. Achieving arbitrary code execution when the malicious data is processed

Detection Methods for CVE-2020-7660

Indicators of Compromise

  • Unexpected JavaScript execution or unusual process spawning from Node.js applications
  • Anomalous network connections originating from application servers
  • Suspicious modifications to application files or configurations
  • Unexplained CPU or memory spikes in Node.js processes
  • Error logs indicating deserialization failures or unexpected code evaluation

Detection Strategies

  • Audit package dependencies using npm audit or yarn audit to identify vulnerable serialize-javascript versions
  • Implement static analysis tools to scan for usage patterns of the vulnerable deleteFunctions function
  • Deploy runtime application self-protection (RASP) solutions to detect code injection attempts
  • Monitor application logs for deserialization errors or unusual execution patterns

Monitoring Recommendations

  • Enable verbose logging for applications using serialize-javascript to capture processing events
  • Implement network traffic analysis to detect suspicious payloads targeting serialization endpoints
  • Set up alerts for dependency vulnerability scanners in CI/CD pipelines
  • Monitor for unexpected child process creation from Node.js applications

How to Mitigate CVE-2020-7660

Immediate Actions Required

  • Update serialize-javascript to version 3.1.0 or later immediately
  • Audit all projects and build dependencies for vulnerable serialize-javascript versions
  • Review application code for direct or transitive dependencies on the affected package
  • Implement input validation for any data processed by serialization functions

Patch Information

The vulnerability has been addressed in serialize-javascript version 3.1.0. The fix is available through the GitHub commit f21a6fb3ace2353413761e79717b2d210ba6ccbd. Organizations should update to the patched version through their package manager:

bash
npm update serialize-javascript

or explicitly install the fixed version:

bash
npm install serialize-javascript@^3.1.0

Workarounds

  • If immediate patching is not possible, implement strict input validation before passing data to serialize-javascript
  • Consider wrapping the library with a sanitization layer that validates input before serialization
  • Restrict network access to application endpoints that process serialized data
  • Implement Content Security Policy (CSP) headers to limit the impact of potential code injection
bash
# Check current serialize-javascript version in your project
npm list serialize-javascript

# Update to the patched version
npm install serialize-javascript@latest

# Verify the update
npm list serialize-javascript

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechVerizon

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability2.90%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-502
  • Vendor Resources
  • GitHub Commit Log
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server CSRF 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