Skip to content

← Public intelligence

npm package

ansi-regex

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 7.5npmAmendedPublished

    Inefficient Regular Expression Complexity in chalk/ansi-regex

    CVE-2021-3807 · GHSA-93q8-gq69-wqmw

    Affected
    • npm ansi-regex >= 6.0.0, < 6.0.1; >= 5.0.0, < 5.0.1; >= 4.0.0, < 4.1.1; >= 3.0.0, < 3.0.1
    Fixed in
    3.0.15.0.16.0.14.1.1· Vendor fix available
    Issue
    ansi-regex is vulnerable to Inefficient Regular Expression Complexity which could lead to a denial of service when parsing invalid ANSI escape codes. Proof of Concept The ReDOS is mainly due to the sub-patterns [\\#;?] and (?:;[-a-zA-Z\\d\\/#&.:=?%@~])

    Recommended action: Upgrade to 6.0.1, 5.0.1, 4.1.1 or 3.0.1 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →