Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons

Social Media

Hackers News Hackers News
  • CyberSecurity News
  • Threats
  • Attacks
  • Vulnerabilities
  • Breaches
  • Comparisons
Search the Site
Popular Searches:
technology Amazon AI
Recent Posts
Anthropic’s Restricted Claude Nears Public Release via Code
May 26, 2026
Cloud Atlas APT Modifies termsrv.dll for Group Enable
May 25, 2026
InvisibleFerret Malware Evades Detection with .pyd
May 25, 2026
Home/CyberSecurity News/GitHub Adds Staged Publishing to npm for Supply Chain Security
CyberSecurity News

GitHub Adds Staged Publishing to npm for Supply Chain Security

With staged publishing and new install-time controls now generally available, GitHub has rolled out a major security upgrade for the npm ecosystem. This enhancement aims to reduce automated supply...

Sarah simpson
Sarah simpson
May 25, 2026 3 Min Read
6 0

With staged publishing and new install-time controls now generally available, GitHub has rolled out a major security upgrade for the npm ecosystem. This enhancement aims to reduce automated supply chain attacks targeting open-source packages.

The newly released staged publishing feature changes how npm packages are published and distributed.

Instead of immediately making a package available after publishing, npm now places the prebuilt package tarball into a staging queue.

A human maintainer must explicitly approve the package before it becomes publicly installable.

GitHub Adds npm Staging

This approach introduces a critical security checkpoint, especially for automated CI/CD workflows that are often targeted in supply chain attacks.

Even if an attacker compromises a pipeline or injects malicious code, the package cannot be released without manual approval.

Key security benefits include:

  • Mandatory human approval enforced with two-factor authentication (2FA).
  • Visibility of staged packages through both npm CLI and npmjs.com.
  • Protection against unauthorized or automated publishing attempts.
  • Reinforced proof-of-presence for maintainers during release.

The feature is available starting with npm CLI version 11.15.0 and requires developers to switch from the traditional npm publish command to npm stage publish for staged workflows.

GitHub recommends combining staged publishing with trusted publishing using OpenID Connect (OIDC).

This setup allows CI/CD systems to publish packages directly into the staging queue without exposing long-lived credentials.

Organizations can enforce stage-only publishing policies, ensuring that:

  • Direct npm publish commands are rejected.
  • Only npm stage publish is allowed from CI pipelines.
  • Final approval is completed by a maintainer on a trusted device.

This model significantly reduces the risk of credential theft and automated malicious releases.

In addition to staged publishing, GitHub has introduced new install-time security flags in npm 11.15.0.

These flags provide granular control over where dependencies can be installed from, helping prevent malicious or unexpected sources.

New flags include:

  • –allow-file: Controls installations from local files or tarballs.
  • –allow-remote: Restricts dependencies fetched from remote URLs.
  • –allow-directory: Governs installs from local directories.
  • –allow-git (existing): Controls installations from Git repositories.

Each flag supports two modes: all (default) or none, and can be configured via .npmrc or package.json.

These controls allow developers to implement strict allowlist policies, reducing the attack surface from non-registry sources often used in dependency confusion or injection attacks.

Security Impact

GitHub also confirmed that in npm CLI version 12, the default behavior for –allow-git will change from all to none, signaling a shift toward stricter default security settings.

Developers are encouraged to adopt these restrictions early by manually configuring the new flags.

For example, an organization can configure its environment to block all non-registry installs:

  • Set –allow-remote=none
  • Set –allow-file=none
  • Set –allow-directory=none
  • Allow only trusted registry packages

Combined with staged publishing, this creates a controlled pipeline where both package creation and consumption are tightly secured.

These updates directly address common supply chain attack vectors, including:

  • Malicious code injection in CI/CD pipelines.
  • Dependency confusion via external sources.
  • Unauthorized package publishing.

By introducing human validation and stricter dependency controls, GitHub is moving npm toward a zero-trust supply chain model.

Organizations using npm are strongly advised to upgrade to npm CLI 11.15.0 or later and update their workflows to take full advantage of these new protections.

Disclaimer: HackersRadar reports on cybersecurity threats and incidents for informational and awareness purposes only. We do not engage in hacking activities, data exfiltration, or the hosting or distribution of stolen or leaked information. All content is based on publicly available sources.

Tags:

AttackSecurity

Share Article

Sarah simpson

Sarah simpson

Sarah is a cybersecurity journalist specializing in threat intelligence and malware analysis. With over 8 years of experience covering APT groups, zero-day exploits, and advanced persistent threats, Sarah brings deep technical expertise to breaking cybersecurity news. Previously, she worked as a security researcher at leading threat intelligence firms, where she analyzed malware samples and tracked cybercriminal operations. Sarah holds a Master's degree in Computer Science with a focus on cybersecurity and is a regular contributor to major security conferences.

Previous Post

CISA Warns: Drupal Core SQL Injection Vulnerability Exploited

Next Post

WhatsApp Chat Histories Unencrypted on macOS & iOS Devices

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Popular Posts
Russian Hacker Uses Jailbroken Gemini to Steal Credentials & Drain
May 25, 2026
Hackers Exploit CDN to Bypass Domain Reputation Abuse Shared
May 25, 2026
KnowledgeDeliver LMS Zero-Day Exploited, Deploy BLUEBEAM
May 25, 2026
Top Authors
Marcus Rodriguez
Marcus Rodriguez
Jennifer sherman
Jennifer sherman
Sarah simpson
Sarah simpson
Let's Connect
156k
2.25m
285k

Related Posts

Jennifer sherman
By Jennifer sherman
Threats

GlassWorm Attacks macOS via Malicious VS Code…

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Attacks

ClickFix Attack Hides Malicious Code via Stegan Security

January 1, 2026
Sarah simpson
By Sarah simpson
Vulnerabilities

MongoBleed Detector Tool Detects Critical MongoDB CVE-

January 1, 2026
Emy Elsamnoudy
By Emy Elsamnoudy
Breaches

Conti Ransomware Gang Leaders & Infrastructure Exposed

January 1, 2026
Hackers News Hackers News
  • [email protected]

Quick Links

  • Contact Us
  • Privacy Policy
  • Terms of service

Categories

Attacks
Breaches
Comparisons
CyberSecurity News
Threats
Vulnerabilities

Let's keep in touch

receive fresh updates and breaking cyber news every day and week!

All Rights Reserved by HackersRadar ©2026

Follow Us