Thursday, December 3, 2026 | London 11°C · Drizzle
DailyGlimpse

AI

NPM 12 Patches Critical Security Hole That Let Packages Hack Your Machine

Better Stack 1 min read

A long-standing vulnerability in npm, the default package manager for Node.js, has finally been addressed in version 12. The issue allowed malicious npm packages to execute arbitrary code on a developer's machine during installation, posing a severe supply-chain risk. The update introduces stricter security measures, limiting the ability of packages to run postinstall scripts without explicit user consent. This change is expected to curb a wave of supply-chain attacks that have plagued the JavaScript ecosystem. Developers are urged to upgrade to npm 12 immediately to protect their environments.

React