Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3377
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:18 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-3377
Complete source record
{
"id": "1cf76d3182a3e766c03d92d75e09bb11280929b94bd37cada14cf65bc1ba44fd",
"url": "https://osv.dev/vulnerability/CVE-2021-3377",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3377",
"summary": "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.",
"evidence": "osv:CVE-2021-3377",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-3377",
"aliases": [
"CVE-2021-3377",
"GHSA-2v5f-23xc-v9qr"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/drudru/ansi_up",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "c8c726ed1db979bae4f257b7fa41775155ba2e27"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:ansi_up_project:ansi_up:*:*:*:*:*:node.js:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "5.0.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "c8c726ed1db979bae4f257b7fa41775155ba2e27"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v4.0.4",
"v4.0.3",
"v3.0.0",
"v2.0.2",
"2.0.1",
"v1.3.0",
"v1.2.1",
"v1.2.0",
"v1.1.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3377.json"
}
}
],
"modified": "2026-10-20T10:53:48.347109649Z",
"provider": "osv",
"references": [
"https://security.netapp.com/advisory/ntap-20241108-0002/",
"https://github.com/drudru/ansi_up/commit/c8c726ed1db979bae4f257b7fa41775155ba2e27",
"https://doyensec.com/resources/Doyensec_Advisory_ansi_up4_XSS.pdf"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-3377",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384649,
"published_at": "2021-03-05T21:15:13.263+00:00"
}