---
title: "npm 12: dependency install scripts, git dependencies and remote tarballs are off by default: 2026-07-08 | Harbyn"
description: "npm 12: dependency install scripts, git dependencies and remote tarballs are off by default, effective Jul 8, 2026."
canonical: "https://harbyn.com/changes/npm/2026-07-08-npm-12-install-scripts-git-and-remote-dependencies-off-by-default"
last-updated: 2026-09-23
---

# npm 12: dependency install scripts, git dependencies and remote tarballs are off by default

Markdown version of <https://harbyn.com/changes/npm/2026-07-08-npm-12-install-scripts-git-and-remote-dependencies-off-by-default>.

Breaking change - npm. high severity. In effect. History: recorded after the fact.

npm v12 is generally available and tagged latest. Dependency lifecycle scripts (preinstall, install, postinstall) and implicit node-gyp builds no longer run unless allowed, and git or remote-URL dependencies are no longer resolved unless allowed. Builds that rely on a dependency's install script break silently after upgrading. Review and approve trusted scripts with npm approve-scripts and commit the allowlist in package.json. The same behaviour is available behind warnings from npm 11.16.0.

The deadline passed on Jul 8, 2026.

## Facts

| Fact | Value |
| --- | --- |
| Vendor | [npm](https://harbyn.com/vendors/npm.md) |
| Product | cli |
| Kind | Breaking change |
| Severity | high |
| Status | In effect |
| Announced | Jul 8, 2026 |
| Effective | Jul 8, 2026 |
| Added to Harbyn | Sep 23, 2026 |
| Lead time | Recorded after the fact: added 77 days after the deadline |
| Symbols | `allowScripts`, `allow-git`, `allow-remote` |
| Vendor page | <https://github.blog/changelog/2026-07-08-npm-install-time-security-and-gat-bypass2fa-deprecation/> |
| Review | Reviewed by a person, extracted by a person |

## Find it in your code

```sh
npx harbyn scan
```

This change names no identifier the scanner can match line by line, so the scan tells you whether your repository uses npm, from its packages and API hosts. Nothing leaves your machine.

## Sources

Where this event comes from: the page we read, when we read it, and the hash of that snapshot.

- <https://github.blog/changelog/2026-07-08-npm-install-time-security-and-gat-bypass2fa-deprecation/> (changelog, fetched 2026-09-23 22:31 UTC, sha256 `466f09277e0b2ee35943080cfbe756e8f8ccc9ff9ba9ed68db7e0c4fbf8a3f43`)

## Related changes

### More from npm

- [npm tokens that bypass 2FA can no longer manage accounts, packages or organizations](https://harbyn.com/changes/npm/2026-07-08-2fa-bypass-tokens-can-no-longer-manage-accounts-packages-or-orgs.md) (Breaking change, effective Jul 31, 2026)
- [npm tokens that bypass 2FA will lose direct publishing](https://harbyn.com/changes/npm/2026-07-08-2fa-bypass-tokens-lose-direct-publishing.md) (Breaking change, effective Jan 2027)
- [Unvalidated npm trusted publishing configurations now expire](https://harbyn.com/changes/npm/2026-10-02-unvalidated-npm-trusted-publishing-configurations-now-expire.md) (Breaking change, announced Oct 2, 2026)

### Changes at other vendors

- [Amazon Selling Partner API: October listing attribute usage and enumeration value updates](https://harbyn.com/changes/amazon-sp-api/2026-10-14-sp-api-updates-new-listings-items-api-ivp-values-in-eu5-jp-and-ca-stores-oct-2.md) (effective Oct 26, 2026)
- [Supabase: four CBC-mode TLS 1.2 cipher suites will be removed from project HTTP APIs](https://harbyn.com/changes/supabase/2026-10-12-an-outdated-subset-of-tls-1-2-ciphers-will-be-disabled-on-project-http-apis.md) (effective Nov 10, 2026)
- [Google Workspace APIs: OAuth clients must be marked as agentic to call Google Workspace MCP servers](https://harbyn.com/changes/google-workspace/2026-10-12-oauth-clients-must-be-marked-as-agentic-to-call-google-workspace-mcp-servers.md) (effective Nov 11, 2026)
- [Bitbucket Cloud API: Git Credential Manager upgrade required for OAuth 2.0 Git authentication](https://harbyn.com/changes/bitbucket/2026-10-13-git-credential-manager-upgrade-required-for-oauth-2-0-git-authentication.md) (effective Nov 30, 2026)

[All upcoming deadlines](https://harbyn.com/deadlines.md)
