REDHAT-BUG-2449872: Npm/flatted vulnerability

Published Mar 21, 2026
·
Updated

flatted is a circular JSON parser. Prior to version 3.4.2, the parse() function in flatted can use attacker-controlled string values from the parsed JSON as direct array index keys, without validating that they are numeric. Since the internal input buffer is a JavaScript Array, accessing it with the key "proto" returns Array.prototype via the inherited getter. This object is then treated as a legitimate parsed value and assigned as a property of the output object, effectively leaking a live reference to Array.prototype to the consumer. Any code that subsequently writes to that property will pollute the global prototype. This issue has been patched in version 3.4.2.

Affected Software

1 affected component
npm/flatted<3.4.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade flatted to a version that resolves this vulnerability.

    Fixed in 3.4.2

Event History

Mar 21, 2026
Data Sourced
via Red Hat·12:02 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2449872?

The severity of REDHAT-BUG-2449872 is rated at 55.

2

How do I fix REDHAT-BUG-2449872?

To fix REDHAT-BUG-2449872, upgrade the flatted npm package to version 3.4.2 or later.

3

What software is affected by REDHAT-BUG-2449872?

The affected software is the npm package flatted, specifically versions prior to 3.4.2.

4

What are the risks associated with REDHAT-BUG-2449872?

The risks associated with REDHAT-BUG-2449872 include potential exploitation through attacker-controlled string values used as array index keys.

5

When was REDHAT-BUG-2449872 published?

REDHAT-BUG-2449872 was published on March 21, 2026.

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