REDHAT-BUG-2453284: Medium severity npm/serialize-javascript vulnerability

Published Mar 31, 2026
·
Updated

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.

Affected Software

1 affected component
npm/serialize-javascript<7.0.5

Event History

Mar 31, 2026
Data Sourced
via Red Hat·03:02 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What input is required to trigger the CPU exhaustion?

The vulnerable serializer must process a specially crafted array-like object that inherits from Array.prototype and has a very large length property. Processing this object causes an intensive loop that can consume 100% CPU and hang indefinitely.

2

Which deployments are affected?

Deployments using npm/serialize-javascript before version 7.0.5 are affected when they serialize attacker-controlled or otherwise untrusted objects. The provided data does not identify any configuration prerequisite beyond use of a vulnerable version.

3

What is the remediation?

Update npm/serialize-javascript to version 7.0.5 or later, where the issue is patched.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203