GitHub has introduced a major security upgrade to the npm ecosystem with the general availability of staged publishing and new install-time controls, aimed at reducing 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.
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:
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:
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:
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.
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:
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:
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.
Follow us on Google News, LinkedIn, and X to Get More Instant Updates.
The post GitHub Adds Staged Publishing to npm to Block Automated Supply Chain Attacks appeared first on Cyber Security News.
St. Andrew’s Episcopal Church will host a free classical music concert Sunday afternoon at 2…
The Baxter County Treasurer is reporting that county sales tax collections are continuing to see…
Arkansas State University Mountain Home (ASUMH) recently honored four individuals during its 2026 Outstanding Faculty,…
Thanks to a proclamation from Sarah Huckabee Sanders presented during Thursday’s Arkansas Game and Fish…
Several fire departments in north central Arkansas are among 65 departments statewide receiving wildland fire…
Fatal accidents in Boone County two days apart have claimed the lives of a Harrison…
This website uses cookies.