CVE-2021-3377
ansi_up cross-site scripting vulnerability
6.1
MEDIUM
CVSS 3.1
EPSS 59.2%
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.
How to fix CVE-2021-3377
To remediate CVE-2021-3377, upgrade the affected package to a fixed version below.
- —upgrade to 5.0.0+dfsg-1 or later
- —upgrade to 5.0.0 or later
Is CVE-2021-3377 being exploited?
Likely — EPSS is 59.2%, placing CVE-2021-3377 in the top tier of vulnerabilities by exploitation probability. Prioritise patching.
Affected packages (2)
- from 0, < 5.0.0+dfsg-1
- from 0, < 5.0.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |