Syntax Snack Pack: When Chalk, Debug, and Color turn against you…


A Tasty Treats NEWSLETTER for Web Developers

Issue #53:

  • HTML tips so good you’ll wonder why no one told you sooner
  • jQuery refuses to die — and it might outlive us all
  • Color-shifting CSS tricks to make your UI look like it’s in a Marvel movie
  • Hot take: What’s harder - front-end or back-end?
  • Did you see we dropped the first batch of limited-edition web dev pin packs???

🚨🗞️ BREAKING NEWS

The maintainer of 18 widely used npm packages (over 2 BILLION downloads per week in total) including debug, chalk and color - got hacked and his credentials were used to publish malicious versions of these packages.

You might not use these dependencies directly BUT your dependencies might use these, so you should check if you have any of the listed versions installed (see below for scripts).

For a detailed timeline of what happened and an analysis of the malware see this post by Aikido.

TLDR: maintainer got phished, attackers published crypto stealing malware with his credentials, npm removed the packages after 1 hour, compromised packages still got downloaded millions of times within that hour, the included malware was just crypto stealing that only worked in the browser 🤦‍♂️ (no machine persistence, RCE or other credentials stolen).

To check if you've been impacted:

  • Check your local node_modules to see if it contains the malware: grep -R 'checkethereumw'
  • Check your npm cache with this script by phxgg
  • Check your project with this script by AndrewMohawk

Thanks to this post by Security Alliance for the remediation links.

Stay safe out there - don't click links in emails, pin your package versions, eat your veggies.

- CJ

HTML tips you won’t find in most tutorials

FROM CJ

Sick tips for all you HTML programmers out there.

jQuery - The Library That Won't Die

CJ'S LINK

Why jQuery is still relevant in 2025

Color Shifting in CSS

HAND selected by cj

An exploration of color animation techniques with CSS.

just for fun:

slideventura.com - Ace Ventura sliding door simulator

fun PROVIDED by cj

Slide your mouse to re-live a classic movie scene.

All Hail The Algorithm

Some good stuff™ from the socials

The Feed

New episodes 2×/week + other new video content!

SHAMELESS PLUG

SvelteKit observability just got 10x better,
and we’re here for it

The Svelte team just rolled out full observability and tracing support for SvelteKit — making it the first ESM-based meta-framework with built-in instrumentation.

Great news for Sentry users, and a big step forward for the JavaScript ecosystem.

Syntax

Read more from Syntax

A Tasty Treats NEWSLETTER for Web Developers Issue #59: React RSC vulnerability goes DEFCON 1 — you really need to upgrade FizzBuzz in pure CSS, because reality is officially optional now 22 fresh CSS features dropped and your layout skills are already obsolete Should we have skipped JSON entirely and gone straight to binary? Optical illusions for when your brain has already melted from patching servers BREAKING NEWS If you have not heard yet, a critical vulnerability in React Server...

A Tasty Treats NEWSLETTER for Web Developers Issue #58: React wants your hot takes again — the 2025 survey is live CSS Subgrid unlocks layouts you didn’t think were possible Cloudflare finally explains what really happened on Nov 18 Also: a laptop-sticker rabbit hole and a website that only shouts Black Friday is here and we're only giving you guys (newsletter subscribers) 20% off everything EARLY ACCESS SUBSCRIBER DISCOUNT CODE:BLACKFRIDAY20! SHOP State of React 2025 FROM CJ The state of...

A Tasty Treats NEWSLETTER for Web Developers Issue #57: Live(ish) from GitHub Universe: VS Code, GitHub, and Copilot updates worth tuning in for CJ pokes around Apple’s leaked source code — and finds gold A TypeScript dev big-brained regex with full type safety Plus: The horse that just won’t quit A special shoutout to those who came and hung out with us in SF last week.🫶 Clues By Sam FROM scott Daily logic puzzle. Your goal is to figure out who is criminal and who is innocent. Sick Shaders...