Advisory

GHSA-2v5f-23xc-v9qr

Also known as: CVE-2021-3377

Summary

ansi_up cross-site scripting vulnerability

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2021-03-11 22:50 UTC
Modified
2025-11-04 16:33 UTC

Affected packages and fixes

ansi_up

npm · All systems

Affected

  • introduced 0, fixed 5.0.0 (semver)

Fixed versions

5.0.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences