Vulnerability Database · npm · ansi-regex · Version

ansi-regex 0.2.1

0.2.1 is affected by 1 vulnerability.

The vulnerabilities that cover this exact version are listed below with the fixed version to move to. The upgrade Vulert recommends: 6.4.0.

Critical 1 High 0 Medium 0 Low 0 Unrated 0

Released 20 Jun 2014 Licence MIT Also known from other sources 0 Newer releases 22 Database updated 23/Oct/2026

Release and licence data published by the npm registry. Licence information is not legal advice.

Concerned about your application's security?

Vulert continues monitoring your dependencies and alerts you when new vulnerabilities are disclosed. No installation and no source-code access required.

01 Vulnerabilities affecting this version

ansi-regex 0.2.1 vulnerabilities

1 vulnerability cover ansi-regex 0.2.1. Open the full list in the database.

Vulnerability Severity Fixed version Disclosed
Malicious Code Injection in ansi-regex Package: Critical Vulnerability Alert N/A critical No fix published 08 Sep 2025

Looking for another version, or everything Vulert holds for ansi-regex?

All versions → Full vulnerability list →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →

Questions

About ansi-regex 0.2.1

Is ansi-regex 0.2.1 vulnerable?

Yes. 1 vulnerability in the Vulert database cover ansi-regex 0.2.1: 1 critical, 0 high, 0 medium and 0 low. The upgrade Vulert recommends is 6.4.0, and each entry above names the fixed version to move to.

Which version of ansi-regex should I use instead of 0.2.1?

6.4.0 is the version Vulert recommends for this release line. The version table on the package page lists every release with the vulnerabilities recorded against it.

Is 0.2.1 the latest release of ansi-regex?

No. 0.2.1 was published 20 Jun 2014, and newer releases exist. Newer is not automatically safer — the version table on the package page shows what each release carries.

What does a malicious-package vulnerability mean?

It means the published package itself contained hostile code — a backdoor, a credential stealer or similar — rather than only a bug. Registries remove such packages once they are confirmed, so treat any application that resolved an affected version as compromised and rotate the credentials it could reach.

How do I monitor ansi-regex for upcoming vulnerabilities?

Upload the manifest or SBOM for your application at vulert.com/scanner and Vulert keeps checking the ansi-regex version you actually run against new disclosures, then alerts you when one affects it. There is no installation and no source-code access required.