Close Menu

    Subscribe to Updates

    Get the latest Tech news from SynapseFlow

    What's Hot

    iOS 27 is huge, but I’m still waiting for Apple to fix basic issues

    June 13, 2026

    I stopped using idle games for focus and switched to a desktop pet that actually helps

    June 13, 2026

    Bluesound Pulse Cinema Mini review: the best small soundbar for music

    June 13, 2026
    Facebook X (Twitter) Instagram
    • Homepage
    • About Us
    • Contact Us
    • Privacy Policy
    Facebook X (Twitter) Instagram YouTube
    synapseflow.co.uksynapseflow.co.uk
    • AI News & Updates
    • Cybersecurity
    • Future Tech
    • Reviews
    • Software & Apps
    • Tech Gadgets
    synapseflow.co.uksynapseflow.co.uk
    Home»Cybersecurity»NPM 12 Will Change Script Execution Behavior to Prevent Supply Chain Attacks
    NPM 12 Will Change Script Execution Behavior to Prevent Supply Chain Attacks
    Cybersecurity

    NPM 12 Will Change Script Execution Behavior to Prevent Supply Chain Attacks

    The Tech GuyBy The Tech GuyJune 13, 2026No Comments2 Mins Read0 Views
    Share
    Facebook Twitter LinkedIn Pinterest Email
    Advertisement


    In response to a recent wave of supply chain attacks targeting the NPM ecosystem, GitHub announced that scripts from dependencies will no longer be executed by default.

    Advertisement

    Multiple major incidents that occurred over the past several months, mainly associated with TeamPCP and the Shai-Hulud self-replicating worm, have been abusing the default, automatic execution of scripts from dependencies during npm install to infect thousands of developers with malware.

    To better protect users, starting with NPM version 12, which is expected to arrive in July, script execution will be blocked by default, GitHub announced.

    “npm install will no longer execute preinstall, install, or postinstall scripts from dependencies unless they are explicitly allowed in your project,” the code-sharing platform explains.

    The change will also impact native node-gyp builds, such as packages that have a binding.gyp and no explicit install script, as well as prepare scripts from git, file, and link dependencies. The recent Shai-Hulud Miasma attacks relied on a weaponized binding.gyp file.

    To check how the upcoming change will impact their projects, developers can run npm approve-scripts –allow-scripts-pending, and allow the packages they trust and block the rest, to obtain an allowlist that is written to package.json.

    Advertisement. Scroll to continue reading.

    Once the JSON is committed, developers using NPM version 11.16.0 or above will receive warnings if their install routine executes scripts.

    Additionally, GitHub explains, Git dependencies (direct or transitive) will no longer be resolved at npm install, unless explicitly allowed.

    “This closes a code-execution path where a Git dependency’s .npmrc could override the Git executable, even with –ignore-scripts,” the platform notes.

    Similarly, dependencies from remote URLs will no longer be resolved in NPM version 12. This includes HTTPS tarballs (direct or transitive), but developers can allow them via the –allow-remote flag, which has been available since version 11.15.0.

    “Upgrade to NPM 11.16.0 or later, run your normal install, and review the warnings. Use npm approve-scripts –allow-scripts-pending to see which packages have scripts, approve the ones you trust, and commit the updated package.json. After that, only the scripts you approved keep running once you upgrade,” GitHub notes.

    Related: Over 5,500 GitHub Repositories Infected in ‘Megalodon’ Supply Chain Attack

    Related: Supply Chain Attack Hits 32 Red Hat NPM Packages

    Related: GitHub Confirms Hack Impacting 3,800 Internal Repositories

    Related: Grafana Says Codebase and Other Data Stolen via TanStack Supply Chain Attack

    Advertisement
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    The Tech Guy
    • Website

    Related Posts

    Anthropic Says It Has Taken Its Latest AI Models Offline to Comply With New Export Controls

    June 13, 2026

    Iranian Cyber Group Handala Claims Cal Water Hack

    June 13, 2026

    Industry Reactions to Claude Fable 5: Feedback Friday

    June 12, 2026

    In Other News: Google Security Layoffs, AudiA6 Takedown, $400 Million Coupang Fine

    June 12, 2026

    Ivanti Sentry Exploitation Attempts Hitting Honeypots

    June 12, 2026

    CISA Directs Federal Agencies to Prioritize Security Patches Based on Risk

    June 12, 2026
    Leave A Reply Cancel Reply

    Advertisement
    Top Posts

    You don’t need a NAS to self-host — I proved it with hardware from my closet

    June 7, 202672 Views

    Spotify is giving one of its best playlists a big visual upgrade to give subscribers ‘a closer connection’ to its New Music Friday curators — and I think it could be the update it’s always needed

    June 12, 202618 Views

    The iPad Air brand makes no sense – it needs a rethink

    October 12, 202516 Views
    Stay In Touch
    • Facebook
    • YouTube
    • TikTok
    • WhatsApp
    • Twitter
    • Instagram
    Advertisement
    About Us
    About Us

    SynapseFlow brings you the latest updates in Technology, AI, and Gadgets from innovations and reviews to future trends. Stay smart, stay updated with the tech world every day!

    Our Picks

    iOS 27 is huge, but I’m still waiting for Apple to fix basic issues

    June 13, 2026

    I stopped using idle games for focus and switched to a desktop pet that actually helps

    June 13, 2026

    Bluesound Pulse Cinema Mini review: the best small soundbar for music

    June 13, 2026
    categories
    • AI News & Updates
    • Cybersecurity
    • Future Tech
    • Reviews
    • Software & Apps
    • Tech Gadgets
    Facebook X (Twitter) Instagram Pinterest YouTube Dribbble
    • Homepage
    • About Us
    • Contact Us
    • Privacy Policy
    © 2026 SynapseFlow All Rights Reserved.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.