Vulnerability · Published Mar 5, 2021 · Assigned by mitre
CVE-2021-3377
Medium 6.1
In plain English
A medium-severity security flaw in the node-ansi-up package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 8.0% (higher than 95% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei. Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)6.1Medium
Exploit odds (30 days)8.0%top 5.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Nuclei
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-ansi-up | 5.0.0+dfsg-1 | DEBIAN-CVE-2021-3377 |
| Debian:13 | node-ansi-up | 5.0.0+dfsg-1 | DEBIAN-CVE-2021-3377 |
| Debian:14 | node-ansi-up | 5.0.0+dfsg-1 | DEBIAN-CVE-2021-3377 |
| Ubuntu:22.04:LTS | node-ansi-up | no fix listed | UBUNTU-CVE-2021-3377 |
| npm | ansi_up | 5.0.0 | GHSA-2v5f-23xc-v9qr |