chalk
Terminal string styling done right
1 version of chalk was published with malicious code. The latest version, 6.0.1, is not one of them.
- Malicious versions on record
- 6.0.1 latest, 2026-09-27
- 491.5M weekly downloads
- 0/29 recent releases with provenance
Check your version
Enter the exact version from your lockfile.
Major incidents
CuratedWritten by Kovo from cisa.gov, Tracking issue, Aikido analysis. Everything else on this page is generated from registry and advisory data.
Maintainer phished; crypto-wallet drainer published
A phishing email from a look-alike npm domain captured the maintainer's credentials. Malicious versions of chalk, debug and 16 other packages injected browser code that rewrote crypto-wallet transactions, and were removed within hours.
Affected 5.6.1
Sources
- 2025-09-23Widespread Supply Chain Compromise Impacting npm Ecosystemcisa.gov
Security checks
Last two years: 1 malicious. 44 stable releases since 2013, 56 KB unpacked, license MIT.
- No known advisories affect the latest version, 6.0.1Checked against 1 advisory in OSV.
- 1 version was published with malicious code5.6.1 Reported by OpenSSF malicious-packages via OSV.
- None of its advisories are on CISA's Known Exploited listChecked against the CISA KEV catalog.
- 0 of the last 29 releases have build provenanceNone of these releases can be traced to a CI build.
- No install scripts in the latest version0 runtime dependencies in 6.0.1.
- 2 accounts have published the last 30 releasesqixsindresorhus
- 1 of the last 30 releases breaks the publishing pattern5.6.1 reported malicious
Release lines
A line counts as active if it had a release in the last 180 days.
| Line | Latest | Last release | Status |
|---|---|---|---|
| 6.x | 6.0.1 | 2026-09-27 | Active |
| 5.x | 5.6.2 | 2025-09-08 | No release in 13 months |
| 4.x | 4.1.2 | 2021-07-30 | No release in 5.2 years |
| 3.x | 3.0.0 | 2019-11-09 | No release in 6.9 years |
| 2.x | 2.4.2 | 2019-01-05 | No release in 7.8 years |
How long the code was vulnerable before disclosure
Each bar starts at the publish date of the first affected version and ends at disclosure. Critical, high and malicious advisories from the last two years.
Median time from the first affected release to disclosure: the same day.
Every advisory against recent versions
Which release lines are clean, computed from each advisory's affected ranges.
No advisory in the last two years touches these versions
1 older advisory is listed under Advisories.
How the last 30 releases were published
Each release compared with the previous one on its major line. Flags are rule-based: provenance dropped, install script added, new dependency in a patch release, size more than doubled, unfamiliar publisher, unpublished, reported malicious.
| Version | Published | Published by | Provenance | Deps | Size | Flags |
|---|---|---|---|---|---|---|
| 6.0.1 | 2026-09-27 | sindresorhus | No | 0 | 56 KB | None |
| 6.0.0 | 2026-07-26 | sindresorhus | No | 0 | 56 KB | None |
| 5.6.2 | 2025-09-08 | sindresorhus | No | 0 | 44 KB | None |
| 2025-09-08 | No longer on the registry | |||||
The registry no longer serves this version, so its publisher and contents cannot be inspected. | ||||||
| 5.6.0 | 2025-08-17 | sindresorhus | No | 0 | 44 KB | None |
| 5.5.0 | 2025-08-03 | sindresorhus | No | 0 | 44 KB | None |
| 5.4.1 | 2024-12-21 | sindresorhus | No | 0 | 44 KB | None |
| 5.4.0 | 2024-12-18 | sindresorhus | No | 0 | 44 KB +1% | None |
| 5.3.0 | 2023-06-29 | sindresorhus | No | 0 | 44 KB | None |
| 5.2.0 | 2022-12-08 | sindresorhus | No | 0 | 44 KB -1% | None |
| 5.1.2 | 2022-10-12 | sindresorhus | No | 0 | 44 KB | None |
| 5.1.1 | 2022-10-12 | sindresorhus | No | 0 | 44 KB +5% | None |
| 5.1.0 | 2022-10-05 | sindresorhus | No | 0 | 42 KB +1% | None |
| 5.0.1 | 2022-03-08 | sindresorhus | No | 0 | 41 KB | None |
| 5.0.0 | 2021-11-26 | sindresorhus | No | 0 | 41 KB | None |
| 4.1.2 | 2021-07-30 | sindresorhus | No | 2 | 35 KB +1% | None |
| 4.1.1 | 2021-04-21 | sindresorhus | No | 2 | 35 KB +4% | None |
| 4.1.0 | 2020-06-09 | sindresorhus | No | 2 | 34 KB +1% | None |
| 4.0.0 | 2020-04-02 | sindresorhus | No | 2 | 33 KB | None |
| 3.0.0 | 2019-11-09 | sindresorhus | No | 2 | 33 KB | None |
| 2.4.2 | 2019-01-05 | sindresorhus | No | 3 | 27 KB | None |
| 2.4.1 | 2018-04-26 | sindresorhus | No | 3 | 27 KB | None |
| 2.4.0 | 2018-04-17 | sindresorhus | No | 3 | 27 KB +9% | None |
| 2.3.2 | 2018-03-02 | sindresorhus | No | 3 | 25 KB | None |
| 2.3.1 | 2018-02-11 | sindresorhus | No | 3 | 25 KB | None |
| 2.3.0 | 2017-10-24 | sindresorhus | No | 3 | ? | None |
| 2.2.2 | 2017-10-24 | qix | No | 3 | ? | None |
| 2.2.0 | 2017-10-18 | sindresorhus | No | 3 | ? | None |
| 2.1.0 | 2017-08-07 | qix | No | 3 | ? | None |
| 2.0.1 | 2017-06-30 | qix | No | 3 | ? | None |
Advisories
1 record from OSV: GitHub advisories and OpenSSF malicious-package reports. Summaries are quoted from the advisory records.
- Malicious code in chalk (npm)MAL-2025-46969GHSA-2v46-p5h4-248wAffected
5.6.1Fixed inno fixed version listed