REDHAT-BUG-1936427: XSS

Published Mar 8, 2021
·
Updated

The npm package ansiup converts ANSI escape codes into HTML. In ansiup v4, ANSI escape codes can be used to create HTML hyperlinks. Due to insufficient URL sanitization, this feature is affected by a cross-site scripting (XSS) vulnerability. This issue is fixed in v5.0.0.

Reference: https://doyensec.com/resources/DoyensecAdvisoryansiup4XSS.pdf

Upstream patch: https://github.com/drudru/ansiup/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27

Affected Software

1 affected component
npm ansi_up<5.0.0

Event History

Mar 8, 2021
Data Sourced
via Red Hat·01:28 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-1936427?

The severity of REDHAT-BUG-1936427 is classified as critical due to its potential for cross-site scripting (XSS).

2

How do I fix REDHAT-BUG-1936427?

To fix REDHAT-BUG-1936427, update the ansi_up npm package to version 5.0.0 or later.

3

What versions of ansi_up are affected by REDHAT-BUG-1936427?

Versions of ansi_up prior to 5.0.0 are affected by REDHAT-BUG-1936427.

4

What type of vulnerability is REDHAT-BUG-1936427?

REDHAT-BUG-1936427 is a cross-site scripting (XSS) vulnerability related to URL sanitization.

5

What feature in ansi_up v4 is linked to REDHAT-BUG-1936427?

The feature that allows ANSI escape codes to create HTML hyperlinks is linked to REDHAT-BUG-1936427.

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