Cross-site scriptingin the ansi_up package.
Weaponized: a Nuclei exploit is public.
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.
- Upgrade ansi_up (npm) to 5.0.0 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 1 Feb 2021CVE ID reserved by mitre.
- 5 Mar 2021Published in the CVE List.
- 3 Nov 2025CVE record last updated.
Attack code anyone can find
Exploit maturity: Weaponized (Nuclei).
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
- doyensec.com x_refsource_MISC
- github.com x_refsource_MISC
- security.netapp.com
Patchminder. CVE-2021-3377: Cross-site scripting in the ansi_up package. https://patchminder.com/cve/cve-2021-3377/ (accessed 5 December 2026).