Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. serialize-javascript
  4. ›
  5. CVE-2026-34043

CVE-2026-34043: Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects

March 27, 2026 (updated May 21, 2026)

What kind of vulnerability is it?

It 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.

Who is impacted?

Applications that use serialize-javascript to serialize untrusted or user-controlled objects are at risk. While direct exploitation is difficult, it becomes a high-priority threat if the application is also vulnerable to Prototype Pollution or handles untrusted data via YAML Deserialization, as these could be used to inject the malicious object.

References

  • github.com/advisories/GHSA-qj8w-gfj5-8c6v
  • github.com/yahoo/serialize-javascript/commit/f147e90269b58bb6e539cfdf3d0e20d6ad14204b
  • github.com/yahoo/serialize-javascript/releases/tag/v5.0.0
  • github.com/yahoo/serialize-javascript/releases/tag/v7.0.5
  • github.com/yahoo/serialize-javascript/security/advisories/GHSA-qj8w-gfj5-8c6v
  • nvd.nist.gov/vuln/detail/CVE-2026-34043

Code Behaviors & Features

Detect and mitigate CVE-2026-34043 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 5.0.0 before 7.0.5

Fixed versions

  • 7.0.5

Solution

Upgrade to version 7.0.5 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-834: Excessive Iteration

Source file

npm/serialize-javascript/CVE-2026-34043.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 30 Oct 2026 12:16:26 +0000.