REDHAT-BUG-2498122: High severity npm/js-yaml vulnerability

Published Jul 8, 2026
·
Updated

js-yaml is a JavaScript YAML parser and dumper. From 3.0.0 before 3.15.0 and from 4.0.0 before 4.3.0, js-yaml can spend quadratic CPU time parsing a document whose size grows only linearly when a chain of mappings uses merge keys where each mapping merges the previous one. This issue is fixed in versions 3.15.0 and 4.3.0.

Affected Software

1 affected component
npm/js-yaml>3.0.0<3.15.0, >4.0.0<4.3.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade js-yaml to a version that resolves this vulnerability.

    Fixed in 3.15.0
  2. Upgrade

    Upgrade js-yaml to a version that resolves this vulnerability.

    Fixed in 4.3.0

Event History

Jul 8, 2026
Data Sourced
via Red Hat·04:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2498122?

The severity of REDHAT-BUG-2498122 is rated as high with a score of 7.

2

How do I fix REDHAT-BUG-2498122?

To fix REDHAT-BUG-2498122, update js-yaml to version 3.15.0 or later, or to version 4.3.0 or later.

3

What software is affected by REDHAT-BUG-2498122?

The affected software for REDHAT-BUG-2498122 is the js-yaml package used in JavaScript for parsing and dumping YAML.

4

What kind of problem does REDHAT-BUG-2498122 cause?

REDHAT-BUG-2498122 causes a performance issue where CPU time may increase quadratically when parsing specific YAML documents.

5

When was REDHAT-BUG-2498122 published?

REDHAT-BUG-2498122 was published on July 8, 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