CVE-2021-3377
ansi_up cross-site scripting vulnerability
Record summary
CVE-2021-3377 has a selected CVSS score of 6.1 (medium); EIP currently links 1 Nuclei template.
Description
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.
Exploitation context
Available material
- Nuclei templates
- 1
Affected products and versions
1| Product | Source | Version range | Status |
|---|---|---|---|
ansi_upBrowse npm / ansi_up | GitHub Advisory | Before 5.0.0 · Fixed in 5.0.0 | affected |
Nuclei templates
1ProjectDiscoveryMEDIUMnpm ansi_up v4 - Cross-Site ScriptingCVSS 6.1
npm package ansi_up v4 is vulnerable to cross-site scripting because ANSI escape codes can be used to create HTML hyperlinks.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of a user's browser, leading to potential data theft or unauthorized actions.
Remediation
Upgrade to v5.0.0 or later.
Source: ProjectDiscovery