CVE-2021-3377

Source
https://cve.org/CVERecord?id=CVE-2021-3377
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3377.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-3377
Aliases
Downstream
Published
2021-03-05T21:15:13Z
Modified
2026-10-20T10:53:48Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/drudru/ansi_up

Affected ranges

Type
GIT
Repo
https://github.com/drudru/ansi_up
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "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"
        }
    ]
}

Affected versions

2.*
2.0.1
v1.*
v1.1.3
v1.2.0
v1.2.1
v1.3.0
v2.*
v2.0.2
v3.*
v3.0.0
v4.*
v4.0.3
v4.0.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3377.json"