ansi_up up to 4.x on npm ANSI Escape Code cross site scripting
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.7 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as problematic, was found in ansi_up up to 4.x on npm. This affects an unknown function of the component ANSI Escape Code Handler. Such manipulation leads to cross site scripting. This vulnerability is documented as CVE-2021-3377. The attack can be executed remotely. There is not any exploit available. You should upgrade the affected component.
Details
A vulnerability was found in ansi_up up to 4.x on npm (NPM Package) and classified as problematic. Affected by this issue is some unknown functionality of the component ANSI Escape Code Handler. The manipulation with an unknown input leads to a cross site scripting vulnerability. Using CWE to declare the problem leads to CWE-79. The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. Impacted is integrity.
The weakness was released 03/06/2021. The advisory is shared for download at doyensec.com. This vulnerability is handled as CVE-2021-3377. Successful exploitation requires user interaction by the victim. There are neither technical details nor an exploit publicly available. The MITRE ATT&CK project declares the attack technique as T1059.007.
The vulnerability scanner Nessus provides a plugin with the ID 257883 (Linux Distros Unpatched Vulnerability : CVE-2021-3377), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 5.0.0 eliminates this vulnerability. Applying a patch is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at Tenable (257883). VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 4.8VulDB Meta Temp Score: 4.7
VulDB Base Score: 3.5
VulDB Temp Score: 3.4
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 6.1
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Cross site scriptingCWE: CWE-79 / CWE-94 / CWE-74
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 257883
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2021-3377
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: ansi_up 5.0.0
Patch: github.com
Timeline
02/01/2021 🔍03/06/2021 🔍
03/06/2021 🔍
11/04/2025 🔍
Sources
Advisory: doyensec.comStatus: Confirmed
CVE: CVE-2021-3377 (🔍)
GCVE (CVE): GCVE-0-2021-3377
GCVE (VulDB): GCVE-100-170816
Entry
Created: 03/06/2021 11:34Updated: 11/04/2025 01:04
Changes: 03/06/2021 11:34 (40), 03/28/2021 21:24 (5), 03/28/2021 21:27 (18), 08/30/2025 21:42 (17), 11/04/2025 01:04 (1)
Complete: 🔍
Cache ID: 216::103
VulDB is the best source for vulnerability data and more expert information about this specific topic.
No comments yet. Languages: en.
Please log in to comment.