Skip to main content

Malicious code in chalk-prettier (npm)

0
Critical
Published: 07/06/2026 (07/06/2026, 18:51:46 UTC)
Source: GCVE Database
Product: chalk-prettier

Description

The chalk-prettier npm package versions 1.0.8 and 1.0.9 contain malicious code that compromises any computer on which it is installed or running. The compromise is severe enough that all secrets and keys stored on the affected system should be rotated immediately from a different, uncompromised machine. Removing the package alone does not guarantee removal of all malicious software introduced by it.

Affected software

npmghsa
chalk-prettier
Affected versions
=1.0.9=1.0.8

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/12/2026, 20:01:54 UTC

Technical Analysis

The chalk-prettier npm package versions 1.0.8 and 1.0.9 have been identified as containing malicious code. Installation or execution of these versions results in a full compromise of the affected system, potentially allowing an attacker to gain control. Due to the severity of the compromise, all stored secrets and keys on the affected machine must be rotated from a separate, secure device. The package removal is recommended but may not fully eradicate the malicious presence.

Potential Impact

Systems with chalk-prettier versions 1.0.8 or 1.0.9 installed or running are considered fully compromised. Attackers may have gained full control, risking exposure or theft of sensitive data, credentials, and keys. The integrity and confidentiality of the affected system cannot be assured without comprehensive remediation.

Mitigation Recommendations

Remove the chalk-prettier package versions 1.0.8 and 1.0.9 immediately. Rotate all secrets and keys stored on the compromised system from a different, secure computer. Because full control may have been given to an attacker, additional forensic analysis and remediation steps may be necessary to ensure complete removal of malicious software.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-6810
Osv Schema Version
1.7.4
Aliases
["GHSA-29vc-mxj2-mvrg"]
Ecosystems
["npm"]

Threat ID: 6a4c344227e9c797195fb56a

Added to database: 07/06/2026, 23:03:30 UTC

Last enriched: 09/12/2026, 20:01:54 UTC

Last updated: 09/12/2026, 20:01:54 UTC

Views: 76

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses