The images in this article were generated with artificial intelligence. How we publish
GitHub has activated a new npm tool called started publishing which requires manual approval of a maintainer (by double factor challenge) before a published version is visible and downloadable from npmjs.com. In practice, pre-built tarball is no longer made public at once: it rises to a staging tail and requires a person with publication access and 2FA to confirm its release. This small but significant modification seeks to add human presence test for each publication, including for devices generated by CI / CD.
The mechanism changes the traditional model in which a pipeline could automatically publish a version as soon as it ended: now the pipeline can upload the package with the command "npm stage publish" (available from npm CLI 11.15.0), but the version will not be installed until a maintainer exceeds the 2FA challenge. This mitigates scenarios in which misconfigured committed credentials or workflows allow the automated publication of malicious devices, because it requires an authenticated human interaction before the final push.

It is important to understand its limits: cannot be applied to new packages which do not yet exist in the register, requires the maintainer's account to have 2FA activated and the teams to update their client npm to 11.15.0 or more. In addition, control only raises the difficulty for automated attacks; it does not prevent an attacker who exceeds the 2FA of the maintainer (by phishing or access to tokens) from publishing malicious code. That's why GitHub recommends combining started publishing with trusted publishing using OIDC which reduces the dependence on long-term tokens in CI and improves the traceability of the identity of the pipeline.
In parallel, npm has added three flags to control installation origins no-record: --allow-file, --allow-remote and --allow-directory next to the existing one --allow-git. These options allow for a stricter permitted list strategy for facilities from local files, remote URLs or directories: controls that are useful to avoid malicious tarballs injections or the accidental installation of unverified source units from scripts or local tests.

For equipment and maintenance, the immediate practical recommendation is clear: active 2FA in all accounts with publication permits, updates the npm CLI to 11.15.0 +, and enables set publishing for critical packages. At the organizational level, it adopts OIDC for your CI / CD runners and eliminates long-term tokens; limits surviving tokens scopes; records and alerts unusual publishing activities; and uses additional signatures or verification mechanisms for artifacts where possible. Complete this with software composition analysis (SCA), mandatory change reviews and SBOMs generation for each build.
Do not forget to strengthen installation policies in development and production environments: consider by default denying facilities from URLs or files and explicitly allow only what is necessary through new flags, and educate developers about the risks of installing packages from external sources. These measures reduce the area by which massive "poisoning" campaigns - such as those recently attributed to groups that manipulate popular packages - manage to spread.
Staged publishing is not a panacea, but it represents a valuable advance in the defense of the open source ecosystem: it introduces a human control point that complicates automated attacks and improves the traceability of publications. For more information on software supply chain security practices and complementary recommendations see the official npm documentation at https: / / docs.npmjs.com / and resources on supply chain security such as the OWASP project in https: / / owasp.org / www-project-supply-chain-security /. It is also useful to follow GitHub's blog for updates and practical guides in this area: https: / / github.blog /.
Related
More news on the same subject.

Campaign at Hugging Face Spaces and GitHub uses game traps to steal passwords and sessions
A massive campaign has used Hugging Face Spaces pages and GitHub repositories to attract players with supposed traps and bots and push them to install malware that steals browse...

Canada detects NEXCOL intrusion and suspension of export permits
The Canadian government confirmed that its online system to manage permits for the export of military material and strategic goods, known as NEXCOL, suffered an intrusion detect...

CertiK shows Weight2Shell: identical weights, different outputs by inference environment
CertiK security researchers have demonstrated a technique - called Weight2Shell in their report - that allows two instances of the same artificial intelligence model, carrying i...

RabbitMQ: critical failure in the management interface exposes tokens OAuth2; patches 4.4.1 / 4.3.8
A critical vulnerability in RabbitMQ allows an attacker who has access to the management interface to get tokens OAuth2 signed by the identity provider without credentials and t...

Critical Vulnerability in Erlang / OTP client TLS allows MITM without certificate (CVE-2026-124286)
A critical vulnerability to the client implementation of TLS within Erlang / Open Telecom Platform (OTP) allows a malicious server to complete a TLS 1.2 handshake without presen...

pCloud Pass: cyber attack exposes emails from few users; undecipher encrypted vaults
This week pCloud Pass, the password manager integrated into the Swiss pCloud service, confirmed that it was the target of a "cyber attack" after several users reported early log...

SOCRadar identifies WeaveLotus / RedOps campaign in intrusions to Thailand and the Philippines
SOCRadar has published an analysis that attributes a series of intrusions to military, government and legislative institutions in South-East Asia to a set of tools and activitie...