Allocation of Resources Without Limits or Throttling Affecting serialize-javascript package, versions <7.0.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-SERIALIZEJAVASCRIPT-15809196
  • published29 Mar 2026
  • disclosed27 Mar 2026
  • creditTomer Aberbach

Introduced: 27 Mar 2026

NewCVE-2026-34043  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade serialize-javascript to version 7.0.5 or higher.

Overview

serialize-javascript is a package to serialize JavaScript to a superset of JSON that includes regular expressions and functions.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the serialize function when handling specially crafted array-like objects with a very large length property. An attacker can cause excessive CPU consumption and make the application unresponsive by submitting such objects for serialization.

Note: While direct exploitation is difficult, it becomes a high-priority threat if the environment is also vulnerable to prototype pollution or insecure YAML deserialization.

CVSS Base Scores

version 4.0
version 3.1