CVE-2021-3377Ansi Up Project Ansi Up
Medium 6.1 No auth needed
Follow: this CVE · Ansi Up Project · Ansi Up Project Ansi Up We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 7.6% probability of exploitation in 30 days · percentile 95
- Auth required
- No
- Published
- Mar 5, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Ansi Up.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | ansi_up |
< 5.0.0 |
5.0.0 |
npm install ansi_up@5.0.0 |
Per OSV / GitHub Advisories (GHSA-2v5f-23xc-v9qr). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ansi_up_project | ansi_up | < 5.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- doyensec.com Exploit Third Party Advisory
- github.com Patch Third Party Advisory
- security.netapp.com