{"id":15091,"date":"2026-05-25T03:01:44","date_gmt":"2026-05-25T03:01:44","guid":{"rendered":"https:\/\/techtrendfeed.com\/?p=15091"},"modified":"2026-05-25T03:01:44","modified_gmt":"2026-05-25T03:01:44","slug":"npm-provides-2fa-gated-publishing-and-bundle-set-up-controls-in-opposition-to-provide-chain-assaults","status":"publish","type":"post","link":"https:\/\/techtrendfeed.com\/?p=15091","title":{"rendered":"npm Provides 2FA-Gated Publishing and Bundle Set up Controls In opposition to Provide Chain Assaults"},"content":{"rendered":"<p> <br \/>\n<\/p>\n<div>\n<p><span class=\"p-author\"><i class=\"icon-font icon-user\">\ue804<\/i><span class=\"author\">Ravie Lakshmanan<\/span><i class=\"icon-font icon-calendar\">\ue802<\/i><span class=\"author\">Could 23, 2026<\/span><\/span><span class=\"p-tags\">Software program Provide Chain \/ DevSecOps<\/span><\/p>\n<\/div>\n<div id=\"articlebody\">\n<div class=\"separator\" style=\"clear: both;\"><a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEi4rnMZgOYbsYr65UN9AZ3oFzcAwqXSYqgRfjUGpeaQeyP-0OAaqJ9aceXPAiujRKwyGQMa_4ShcSvtOWPb9T3qpqF2LATAw2U4iA7IkU9ok0alDbzN_WYJeaZ1SrF0-vyRrEHGedMEcCeP2otYYqplHmqEBda1R_MePbWgEpt-b-GB_RhxJLDC1pJFV0S0\/s1600\/npm-security.png\" style=\"display: block; padding: 1em 0; text-align: center; clear: left; float: left;\"><img decoding=\"async\" alt=\"\" border=\"0\" data-original-height=\"470\" data-original-width=\"900\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEi4rnMZgOYbsYr65UN9AZ3oFzcAwqXSYqgRfjUGpeaQeyP-0OAaqJ9aceXPAiujRKwyGQMa_4ShcSvtOWPb9T3qpqF2LATAw2U4iA7IkU9ok0alDbzN_WYJeaZ1SrF0-vyRrEHGedMEcCeP2otYYqplHmqEBda1R_MePbWgEpt-b-GB_RhxJLDC1pJFV0S0\/s1600\/npm-security.png\"\/><\/a><\/div>\n<p>GitHub has rolled out new controls for npm to enhance the safety of the software program provide chain, giving maintainers the flexibility to explicitly approve a launch previous to the packages changing into publicly obtainable for set up.<\/p>\n<p>Referred to as staged publishing, the characteristic is now typically obtainable on npm. It mandates {that a} human maintainer cross a two-factor authentication (2FA) problem to approve a bundle earlier than it&#8217;s pushed to the npmjs[.]com.<\/p>\n<p>&#8220;As a substitute of a direct publish that instantly makes a bundle model obtainable to shoppers, the prebuilt tarball is uploaded to a stage queue the place a maintainer should explicitly approve it earlier than it turns into installable,&#8221; GitHub <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/github.blog\/changelog\/2026-05-22-staged-publishing-and-new-install-time-controls-for-npm\/\">stated<\/a>.<\/p>\n<p>The Microsoft-owned subsidiary stated the change ensures &#8220;proof of presence&#8221; for each publish, together with those who come from non-interactive CI\/CD workflows and trusted publishing with OpenID Join (OIDC) authentication.<\/p>\n<p>Earlier than utilizing <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/docs.npmjs.com\/staged-publishing\">staged publishing<\/a>, bundle maintainers have to satisfy the next standards &#8211;<\/p>\n<ul>\n<li>Have publish entry to the bundle<\/li>\n<li>Bundle already exists on the npm registry, that means a model new bundle can&#8217;t be staged<\/li>\n<li>2FA is enabled for the account<\/li>\n<\/ul>\n<p>Builders can use the command &#8220;npm stage publish&#8221; from the basis listing of the bundle to submit it to a staging space. To make use of this command, it is important to replace to npm CLI 11.15.0 or newer. For optimum safety, GitHub is recommending that staged publishing be paired with <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/docs.npmjs.com\/trusted-publishers\">trusted publishing<\/a> utilizing OIDC.<\/p>\n<p><\/p>\n<p>A second replace centered on npm pertains to the introduction of three new set up supply flags alongside the prevailing -allow-git flag &#8211;<\/p>\n<ul>\n<li>&#8211;allow-file: Controls installs from native file paths and native tarballs<\/li>\n<li>&#8211;allow-remote: Controls installs from distant URLs, together with https tarballs<\/li>\n<li>&#8211;allow-directory: Controls installs from native directories<\/li>\n<\/ul>\n<p>The flags enable builders to &#8220;apply the identical explicit-allowlist method to each non-registry set up supply,&#8221; GitHub stated.<\/p>\n<p>The event comes amid a <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/thehackernews.com\/2026\/05\/megalodon-github-attack-targets-5561.html\">huge surge<\/a> in software program provide chain assaults focusing on open-source ecosystems over the previous few months, with one cybercriminal group referred to as <a rel=\"nofollow\" target=\"_blank\" href=\"https:\/\/thehackernews.com\/2026\/05\/github-internal-repositories-breached.html\">TeamPCP<\/a> poisoning widespread packages at an unprecedented scale via a self-perpetuating cycle of compromises.<\/p>\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>\ue804Ravie Lakshmanan\ue802Could 23, 2026Software program Provide Chain \/ DevSecOps GitHub has rolled out new controls for npm to enhance the safety of the software program provide chain, giving maintainers the flexibility to explicitly approve a launch previous to the packages changing into publicly obtainable for set up. Referred to as staged publishing, the characteristic is [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":15093,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58],"tags":[9205,390,145,241,6991,1804,1116,1717,9206,240],"class_list":["post-15091","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cybersecurity","tag-2fagated","tag-adds","tag-attacks","tag-chain","tag-controls","tag-install","tag-npm","tag-package","tag-publishing","tag-supply"],"_links":{"self":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts\/15091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15091"}],"version-history":[{"count":1,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts\/15091\/revisions"}],"predecessor-version":[{"id":15092,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/posts\/15091\/revisions\/15092"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=\/wp\/v2\/media\/15093"}],"wp:attachment":[{"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techtrendfeed.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}<!-- This website is optimized by Airlift. Learn more: https://airlift.net. Template:. Learn more: https://airlift.net. Template: 69d9690a190636c2e0989534. Config Timestamp: 2026-04-10 21:18:02 UTC, Cached Timestamp: 2026-05-25 18:36:38 UTC -->