CVE-2026-34043

Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects

Published Mar 31, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
Serialize JavaScript to a superset of JSON that includes regular expressions and functions. Prior to version 7.0.5, there is a Denial of Service (DoS) vulnerability caused by CPU exhaustion. When serializing a specially crafted "array-like" object (an object that inherits from Array.prototype but has a very large length property), the process enters an intensive loop that consumes 100% CPU and hangs indefinitely. This issue has been patched in version 7.0.5.

Analysis

AI-generated

Technical impact

Serializing a specially crafted object that inherits the Array prototype and has a very large length property triggers an intensive loop in the serialize-javascript library, causing the process to consume 100 % of CPU and hang indefinitely. The flaw is a resource exhaustion vulnerability where the library does not properly validate the array length during serialization, leading to unbounded CPU use.

Affected Systems

Applications using Yahoo’s serialize-javascript library prior to the 7.0.5 release are affected. Any deployment that serializes untrusted input with this older version—whether web services, command‑line tools, or embedded scripts—may experience the denial of service.

Risk and Exploitability

With a CVSS score of 5.9, the severity is considered medium, while an EPSS score of less than 1 % indicates a low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. The attack requires an attacker to supply a crafted array‑like object to the serialize function; the specific input channel depends on how the application exposes this functionality, so the vector is inferred rather than explicitly documented.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade serialize-javascript to version 7.0.5 or newer

Generated by OpenCVE AI on April 3, 2026 at 20:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-qj8w-gfj5-8c6v Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects
History
Type Values Removed Values Added
First Time appeared Yahoo serialize
CPEs cpe:2.3:a:yahoo:serialize:*:*:*:*:*:*:*:*
Vendors & Products Yahoo serialize
Type Values Removed Values Added
First Time appeared Yahoo
Yahoo serialize-javascript
Vendors & Products Yahoo
Yahoo serialize-javascript
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Serialize JavaScript to a superset of JSON that includes regular expressions and functions. Prior to version 7.0.5, there is a Denial of Service (DoS) vulnerability caused by CPU exhaustion. When serializing a specially crafted "array-like" object (an object that inherits from Array.prototype but has a very large length property), the process enters an intensive loop that consumes 100% CPU and hangs indefinitely. This issue has been patched in version 7.0.5.
Title Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects
Weaknesses CWE-400
CWE-834
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-834

    Excessive Iteration

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 31, 2026, 1:55 PM
Reserved
Mar 25, 2026, 3:29 PM
Status
Analyzed
Published
Mar 31, 2026, 3:15 AM
Modified
Jun 17, 2026, 10:38 AM
Severity
Moderate
Public date
Mar 31, 2026, 1:48 AM