CVE-2021-3377
MEDIUM 6.1CVSS 3.1ansi_up cross-site scripting vulnerability
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.
- Published
- 5 Mar 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-2v5f-23xc-v9qr
- Sources
- NVDJSONOSV GHSA-2v5f-23xc-v9qrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ansi_up_project | ansi_upcpe:2.3:a:ansi_up_project:ansi_up:*:*:*:*:*:node.js:*:* |
< 5.0.0 | 5.0.0 |
| OSV | npm | ansi_up | < 5.0.0 | 5.0.0 |
References
- https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf · Exploit, Third Party Advisory, WEB
- https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27 · Patch, Third Party Advisory, WEB
- https://security.netapp.com/advisory/ntap-20241108-0002/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3377 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 5 Mar 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 11 Mar 2021)