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

AI

GitHub Tightens npm Security by Disabling Install Scripts by Default

CyberPulse News 1 min read

GitHub has announced a major security update for its npm package registry: install scripts will now be disabled by default. This change aims to curb supply chain attacks that exploit malicious scripts during package installation.

The move is part of an ongoing effort to protect developers from threats that leverage npm's package installation process. By default, scripts defined in a package's install lifecycle hook will no longer execute automatically. Developers who rely on install scripts can still enable them explicitly, but the default-off setting reduces the risk of unknowingly running harmful code.

This policy shift follows a series of high-profile supply chain attacks targeting the npm ecosystem, where attackers injected malicious scripts to steal credentials, install backdoors, or exfiltrate sensitive data. With this change, GitHub aims to make the default behavior safer while maintaining flexibility for legitimate use cases.

The update applies to all npm packages hosted on GitHub's registry and will roll out incrementally. Developers are advised to review their workflows and adjust any scripts that depend on automatic execution.

React