Bug 1936427 (CVE-2021-3377) - CVE-2021-3377 nodejs-ansi_up: XSS due to insufficient URL sanitization
Summary: CVE-2021-3377 nodejs-ansi_up: XSS due to insufficient URL sanitization
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-3377
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1936956
Blocks: 1936428
TreeView+ depends on / blocked
 
Reported: 2021-03-08 13:28 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-09-29 13:27 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in npm package ansi_up versions < 5.0.0 when parsing untrusted user input. An attacker could take advantage of this by introducing ANSI escape codes to inject arbitrary HTML and JavaScript in result mounting a cross-site scripting (XSS) attack.
Clone Of:
Environment:
Last Closed: 2021-08-06 01:07:10 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:3016 0 None None None 2021-08-06 00:50:32 UTC

Description Guilherme de Almeida Suckevicz 2021-03-08 13:28:34 UTC
The npm package ansi_up converts ANSI escape codes into HTML. In ansi_up 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/Doyensec_Advisory_ansi_up4_XSS.pdf

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

Comment 2 Jan Werner 2021-03-09 14:37:17 UTC
External References:

https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf

Comment 3 errata-xmlrpc 2021-08-06 00:50:30 UTC
This issue has been addressed in the following products:

  Red Hat Advanced Cluster Management for Kubernetes 2.3 for RHEL 7
  Red Hat Advanced Cluster Management for Kubernetes 2.3 for RHEL 8

Via RHSA-2021:3016 https://access.redhat.com/errata/RHSA-2021:3016

Comment 4 Product Security DevOps Team 2021-08-06 01:07:10 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-3377


Note You need to log in before you can comment on or make changes to this bug.