
CVE catalog
CVE-2021-3377
node-ansi-up affected and fixed versions
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.
- Severity
- Medium · CVSS 4.6
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 8.00% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiantrixie | node-ansi-up | 5.0.0+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2021-3377] |
| Debiantrixie | node-ansi-up | 5.1.0+dfsg-2 | Fixed | [CVE-2021-3377] |
| Debiansid | node-ansi-up | 5.0.0+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2021-3377] |
| Debiansid | node-ansi-up | 5.1.0+dfsg-4 | Fixed | [CVE-2021-3377] |
| Debianforky | node-ansi-up | 5.0.0+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2021-3377] |
| Debianforky | node-ansi-up | 5.1.0+dfsg-4 | Fixed | [CVE-2021-3377] |
| Debianbookworm | node-ansi-up | 5.0.0+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2021-3377] |
| Debianbookworm | node-ansi-up | 5.1.0+dfsg-2 | Fixed | [CVE-2021-3377] |
Showing 8 fix observations. All 11 observations, including unknown and conflicting reports, are available below.
Provider details and historical evidence
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debianbookworm | node-ansi-up | 5.0.0+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2021-3377] |
| Debianbookworm | node-ansi-up | 5.1.0+dfsg-2 | Fixed | [CVE-2021-3377] |
| Debianforky | node-ansi-up | 5.0.0+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2021-3377] |
| Debianforky | node-ansi-up | 5.1.0+dfsg-4 | Fixed | [CVE-2021-3377] |
| Debiansid | node-ansi-up | 5.0.0+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2021-3377] |
| Debiansid | node-ansi-up | 5.1.0+dfsg-4 | Fixed | [CVE-2021-3377] |
| Debiantrixie | node-ansi-up | 5.0.0+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2021-3377] |
| Debiantrixie | node-ansi-up | 5.1.0+dfsg-2 | Fixed | [CVE-2021-3377] |
| Ubuntu20.04 | node-ansi-up | 4.0.3+dfsg-2 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-3377] |
| Ubuntu22.04 | node-ansi-up | 5.0.0+dfsg-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-3377] |
| Ubuntu22.04 | node-ansi-up | 5.1.0+dfsg-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2021-3377] |
Original provider fields
{
"package_releases": [
{
"name": "node-ansi-up",
"status": "fixed",
"release": "sid",
"version": "5.1.0+dfsg-4"
},
{
"name": "node-ansi-up",
"status": "fixed",
"release": "forky",
"version": "5.1.0+dfsg-4"
},
{
"name": "node-ansi-up",
"status": "fixed",
"release": "trixie",
"version": "5.1.0+dfsg-2"
},
{
"name": "node-ansi-up",
"status": "fixed",
"release": "bookworm",
"version": "5.1.0+dfsg-2"
}
],
"fixed_versions": [
{
"bug": 984667,
"name": "node-ansi-up",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": "5.0.0+dfsg-1"
},
{
"bug": 984667,
"name": "node-ansi-up",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "not yet assigned",
"fixed_version": "5.0.0+dfsg-1"
},
{
"bug": 984667,
"name": "node-ansi-up",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "not yet assigned",
"fixed_version": "5.0.0+dfsg-1"
},
{
"bug": 984667,
"name": "node-ansi-up",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": "5.0.0+dfsg-1"
}
],
"distribution_packages": [
{
"name": "node-ansi-up",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "20.04",
"versions": [
"4.0.3+dfsg-2"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-3377",
"fixed_version": "",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2021-3377",
"provider_updated_at": "2025-10-24T04:49:10Z",
"applicability_unknown": true
},
{
"name": "node-ansi-up",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "22.04",
"versions": [
"5.0.0+dfsg-1",
"5.1.0+dfsg-1"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-3377",
"fixed_version": "",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2021-3377",
"provider_updated_at": "2025-10-24T04:49:10Z",
"applicability_unknown": true
}
]
}OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [libjs-ansi-up]Unknown
Source package: [node-ansi-up]
Details (2)
5.1.0+dfsg-2· all · bookwormFixed · Fixed:
5.0.0+dfsg-1dsa · node-ansi-up · debian · bookworm; dsa · node-ansi-up · debian · 12
5.1.0+dfsg-2· all · bookwormFixed · Fixed:
5.0.0+dfsg-1dsa · node-ansi-up · debian · bookworm; dsa · node-ansi-up · debian · 12
- [node-ansi-up]Unknown
Details (2)
5.1.0+dfsg-2· all · bookwormFixed · Fixed:
5.0.0+dfsg-1dsa · node-ansi-up · debian · bookworm; dsa · node-ansi-up · debian · 12
5.1.0+dfsg-2· all · bookwormFixed · Fixed:
5.0.0+dfsg-1dsa · node-ansi-up · debian · bookworm; dsa · node-ansi-up · debian · 12
[Debian 13 (Trixie)]
- [libjs-ansi-up]Unknown
Source package: [node-ansi-up]
Details (2)
5.1.0+dfsg-2· all · trixieFixed · Fixed:
5.0.0+dfsg-1dsa · node-ansi-up · debian · 13
5.1.0+dfsg-2· all · trixieFixed · Fixed:
5.0.0+dfsg-1dsa · node-ansi-up · debian · 13
- [node-ansi-up]Unknown
Details (2)
5.1.0+dfsg-2· all · trixieFixed · Fixed:
5.0.0+dfsg-1dsa · node-ansi-up · debian · 13
5.1.0+dfsg-2· all · trixieFixed · Fixed:
5.0.0+dfsg-1dsa · node-ansi-up · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2021-3377]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2021-3377]
- [https://security-tracker.debian.org/tracker/CVE-2021-3377]
- [https://security.access.redhat.com/data/csaf/v2/vex/2021/cve-2021-3377.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]