Skip to main content

Red Hat CVE-2026-34043

MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-03-27 https://github.com/yahoo/serialize-javascript
5.9
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

CVSS 5.9 (High) with vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H indicates a network-accessible vulnerability requiring high attack complexity with no authentication, resulting in high availability impact but no confidentiality or integrity compromise. The attack complexity qualifier is significant: exploitation requires either direct control over serialized objects or a chaining vulnerability (prototype pollution or YAML deserialization). While the CVSS rating is elevated, real-world risk depends on application architecture-backend services accepting untrusted serialization are at higher risk than typical frontend consumers. No publicly available exploit code has been identified, and no CISA KEV active exploitation status is indicated. The remediation path is straightforward (upgrade to 7.0.5), reducing long-term risk for patched deployments. This is a legitimate priority for affected applications but not an emergency critical severity issue given the exploitation barriers and availability of patches.

Exploit ScenarioDerived

An attacker controlling or influencing user-submitted data in an application vulnerable to prototype pollution could inject an array-like object with a large length property into the serialization pipeline. When serialize-javascript processes this object, it enters an unbounded loop that consumes 100% CPU, causing the application to hang or become unresponsive, denying service to legitimate users. Alternatively, if the application deserializes untrusted YAML that is later serialized by serialize-javascript, the attacker could craft YAML that produces a malicious array-like object triggering the same effect. No public proof-of-concept exploit code is currently known, but the attack scenario is plausible in backend API contexts or microservices relying on object serialization for data interchange.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 27, 2026

The serialize-javascript npm library versions prior to 7.0.5 contain a CPU exhaustion denial-of-service vulnerability triggered when processing specially crafted array-like objects with artificially large length properties, causing the serialization process to hang indefinitely and consume 100% CPU. The vulnerability affects npm package serialize-javascript (pkg:npm/serialize-javascript) and impacts applications that serialize untrusted or user-controlled objects, particularly those also vulnerable to prototype pollution or YAML deserialization attacks that could inject malicious payloads. No public exploit code has been identified, but the attack vector is network-accessible with high complexity, posing a moderate real-world threat in supply-chain and backend service contexts.

RemediationAI

Upgrade serialize-javascript to version 7.0.5 or later immediately via npm update. Consult the vendor security advisory at https://github.com/yahoo/serialize-javascript/security/advisories/GHSA-qj8w-gfj5-8c6v for confirmation. Until patching is feasible, implement input validation and sanitization on all untrusted data before passing it to the serialize() function, and audit the application for prototype pollution and unsafe YAML deserialization patterns that could be chained to inject malicious objects. In high-risk environments, consider rate-limiting or timeout enforcement on serialization operations to mitigate CPU exhaustion attacks.

Affected Packages

npm serialize-javascript fix: 7.0.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exists in the serialize-javascript npm library, identified via CPE pkg:npm/serialize-javascript. The root cause is classified under CWE-400 (Uncontrolled Resource Consumption), stemming from the library's use of instanceof Array checks that can be bypassed by objects inheriting from Array.prototype with maliciously large length properties. When such objects are serialized, the library enters an intensive loop attempting to process array indices up to the artificial length value, exhausting CPU cycles. The patch, committed to the Yahoo serialize-javascript repository and released in version 7.0.5, replaces instanceof Array checks with the more robust Array.isArray() method and uses Object.keys() for sparse array detection, preventing the bypass mechanism and ensuring bounded iteration.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE MEDIUM
Red Hat 5.9 MEDIUM

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch released
Mar 27, 2026 - 18:30 nvd
Patch available
CVE Published
Mar 27, 2026 - 18:18 nvd
MEDIUM 5.9

DescriptionGitHub Advisory

Impact

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.

Patches

Has the problem been patched?

Yes, the issue has been patched by replacing instanceof Array checks with Array.isArray() and using Object.keys() for sparse array detection.

What versions should users upgrade to?

Users should upgrade to v7.0.5 or later.

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

There is no direct code-level workaround within the library itself. However, users can mitigate the risk by:

  • Validating and sanitizing all input before passing it to the serialize() function.
  • Ensuring the environment is protected against Prototype Pollution.
  • Upgrading to v7.0.5 as soon as possible.

Acknowledgements

Serialize JavaScript thanks Tomer Aberbach (@TomerAberbach) for discovering and privately disclosing this issue.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 npm packages depend on serialize-javascript (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 5.0.0.

Executive ViewAI

Why It Matters

CVE-2026-34043 presents moderate security risk, a resource exhaustion vulnerability rated CVSS 5.9. Service availability could be impacted. A patch is available and should be applied during regular vulnerability management.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: implement rate limiting and resource quotas.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Data Quality
4 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Defer
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Low
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)GitHub Advisory

pkg:npm/serialize-javascript

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Liberty Linux 8 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy