By NHI Mgmt Group Editorial TeamBased on Pixee: “Six Zero-Days, One Refusal: How npm Created Two-Tier JavaScript Security” (January 29, 2026)

TL;DR: PackageGate exposed six zero-day flaws across npm, pnpm, vlt, and Bun, but npm declined to patch the bypass that lets attackers evade --ignore-scripts through git dependency .npmrc injection, per Pixee’s analysis. The issue turns package-manager choice into a security governance decision, because known weaknesses now map directly to audit burden, supply-chain resilience, and remediation capacity.


At a glance

What this is: PackageGate is a set of six zero-day package-manager flaws, and the key finding is that npm left one bypass unpatched while other managers shipped fixes.

Why it matters: This matters because package-manager trust is now part of supply-chain governance, and teams using npm may have to assume more of the detection and remediation burden themselves.


Context

Package managers sit inside the software supply chain, but they are also policy engines because they decide how installation rules, script execution, and dependency trust are enforced. When those rules differ across tools, the security model of the build pipeline changes with them, especially for teams that rely on package-install controls as a compensating safeguard.

This article is really about governance drift in JavaScript supply chains. A bypass that survives in one ecosystem but is patched in another forces engineering and security leaders to treat package-manager choice as an exposure decision, not just a workflow preference.


Key questions

Q: What breaks when a package manager leaves a documented bypass unpatched?

A: The control assumption breaks, not just the tool. Teams that depend on install-script blocking or registry-level scanning may still be exposed if the package manager allows dependency-driven bypasses that occur during resolution or install time. In practice, that means your security posture depends on whether the platform remediates known flaws or leaves them as customer-managed risk.

Q: Why do git dependencies create supply-chain risk that registry scanning misses?

A: Because the dangerous content can live outside the registry and enter the build during dependency resolution, not package publication. Registry-only controls are good at spotting known bad artefacts, but they do not fully cover attacker-controlled source content, install scripts, or configuration injected through the dependency path. That is why provenance checks matter alongside SCA.

Q: How should teams govern package-manager choice in CI/CD pipelines?

A: Treat package-manager choice as part of the security architecture, not just developer ergonomics. You need to know whether the tool patches known weaknesses, how it handles install-time execution, and whether its behavior matches your dependency policies. If those answers differ across managers, your build risk is not uniform and should not be managed as if it were.

Q: When should organisations move beyond dependency metadata checks?

A: When they rely on git dependencies, script-disabling settings, or other install-time safeguards that can be bypassed through source-controlled content. Metadata checks are still useful, but they are not enough when the attacker path is resolved during installation rather than publication. At that point, provenance, install behavior, and execution controls all need to be part of the review.


Technical breakdown

How git dependency .npmrc injection bypasses install-script controls

The npm issue described here is not a generic dependency risk. It is a specific trust boundary failure where an attacker can place malicious configuration in a git dependency so that installation-time controls are bypassed even when --ignore-scripts is enabled. That matters because many teams treat disabled install scripts as a compensating control for untrusted packages. If the control can be sidestepped through dependency structure rather than registry metadata, then scanners and policy checks that only inspect published package records will miss the payload path entirely.

Practical implication: Treat git dependencies as an input channel that needs separate inspection, not as a safe alternative to registry-sourced packages.

Why package-manager behavior changes the control plane

Package managers are not interchangeable once security behavior diverges. The article shows three managers shipping fixes while npm classified the issue as expected behavior, which means the enforcement boundary is partly a vendor policy decision. In practice, that shifts the control plane from platform-maintained remediation to customer-maintained assurance. Security teams then need to know which assumptions are enforced by the tool and which are merely documented expectations, because those are not the same thing from a risk perspective.

Practical implication: Map your dependency controls to the specific manager in use so you know which protections are actually implemented versus only assumed.

Why registry-only scanning misses malicious package behavior

Registry-scoped analysis looks for bad metadata, suspicious versions, or known malicious packages in package indexes. PackageGate demonstrates a different failure mode: the dangerous content can live on an attacker-controlled server and be introduced during dependency resolution rather than publication. That means SCA coverage based only on registry reputation, package names, or known malware signatures leaves a blind spot at install time. The security problem is not just what package you fetched, but what it caused the installer to execute or ingest during build.

Practical implication: Extend dependency controls into install-time and source-controlled dependency paths, not only package catalog checks.


Threat narrative

Attacker objective: The attacker wants to smuggle malicious behavior into trusted JavaScript build and install workflows without being stopped by standard package controls.

  1. Entry begins when a developer or pipeline resolves a git dependency that contains attacker-controlled .npmrc content.
  2. Credentialed trust is abused when npm installation behavior allows the malicious configuration to bypass --ignore-scripts and reach code execution or payload delivery paths.
  3. Impact occurs when the build or developer environment executes or imports malicious dependency behavior that scanners relying on registry metadata do not detect.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Package-manager policy is now part of supply-chain security posture. The article shows that the same class of weakness can be treated as a patchable flaw in one ecosystem and as expected behavior in another. That changes the governance burden for engineering leaders because the tool choice now determines where accountability sits when a control fails. Practitioners should treat package-manager selection as a security control decision, not a build preference.

Install-time trust is the named failure mode here. The problem is not simply that a malicious package exists, but that dependency resolution can reintroduce execution behavior after teams believe they have disabled it. That is a classic trust-boundary collapse between source, package manager, and pipeline runtime. Security programmes should therefore evaluate whether their dependency controls are enforced at install time or only at publish time.

Registry visibility is no longer enough for JavaScript supply chains. If malicious behavior lives outside the registry and enters through git dependencies, then the governance model must extend into source provenance, dependency resolution, and script execution boundaries. This is where supply-chain resilience intersects with identity and privilege, because build systems are effectively consuming delegated trust from package ecosystems. Practitioners should assume provenance, not package name, is the control problem.

Two-tier ecosystem behavior creates unequal remediation capacity. When some tools patch and others decline, organisations with the unpatched path inherit more of the detection and vetting burden. That is not just a technical inconvenience, it is a structural risk transfer that affects backlog, assurance, and incident readiness. Teams should plan for the security work the platform will not do.

Security teams need a concept of install-path exploitability. PackageGate is a useful label for the gap between a package manager's documented behavior and the path an attacker uses to turn that behavior into risk. In practice, that means the decisive question is not whether a package is public, but whether the install path itself can be coerced into unsafe behavior. Practitioners should measure exploitability at install time, not only at package selection time.

From our research library:

  • CrowdStrike's 2026 Global Threat Report said zero-days exploited before public disclosure rose 42% year over year.

What this signals

Install-path exploitability is the key concept this article exposes. Security teams often evaluate package risk at selection time and miss the more important question of what the installer can be coerced into doing at runtime. That shift matters because build compromise can occur even when the package itself looks ordinary in the registry.

Dependency governance is becoming a control-plane issue for software delivery teams. If one manager declines to patch a known bypass, organisations cannot assume that all package-manager choices offer the same remediation model. The practical result is a need for manager-specific assurance testing, not generic dependency hygiene.


For practitioners

  • Audit git dependency paths for installer-side bypasses Identify repositories and build pipelines that pull dependencies from git URLs, then test whether install-time controls such as --ignore-scripts are actually enforced in those paths.
  • Separate registry scanning from source provenance checks Add controls that inspect dependency source locations, commit references, and repository content so malicious behavior hidden outside package metadata is still evaluated.
  • Reclassify package-manager selection as a security decision Document which package managers in your estate patch known install-path flaws and which may leave documented behavior unpatched, then route high-risk projects accordingly.
  • Test whether script-disabling controls fail open Run controlled validation in a non-production pipeline to confirm that script-blocking settings cannot be bypassed through dependency structure or transitive install behavior.
  • Align SCA coverage with install-time execution risk Expand dependency governance to include the actual commands and hooks triggered during installation, not just package reputation or registry-based indicators.

Key takeaways

  • PackageGate shows that package-manager policy can be as important as package content when install-time controls are bypassable.
  • The npm issue matters because it turns dependency trust into a governance decision about who owns remediation and audit burden.
  • Teams should extend dependency security beyond registry scanning to cover git dependencies, install-time behavior, and source provenance.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API9 — Improper Inventory ManagementPackageGate exposes blind spots in dependency inventory and source-path tracking.
Recommendation — Inventory git-sourced dependencies separately so install-time risk is not hidden inside registry metadata.
NIST CSF 2.0PR.DS-10 — Integrity is protectedThe flaw weakens build integrity by allowing trusted controls to be bypassed during install.
Recommendation — Validate build inputs and dependency behavior so installation paths cannot subvert integrity controls.
CIS Controls v8CIS-15 — Service Provider ManagementPackage managers act as third-party providers whose security behavior now affects enterprise risk.
Recommendation — Review third-party package tools as suppliers and document where they retain or disclaim remediation responsibility.
MITRE ATT&CKTA0006;TA0008 — Credential Access; Lateral MovementSupply-chain compromise can be used to seed access paths and move into build systems or developer environments.
Recommendation — Map package-manager abuse to credential-access and lateral-movement techniques in your detection content.

Key terms

  • Install-time Bypass: A failure mode where security controls that should apply during dependency installation can be evaded by how the dependency is structured or resolved. In supply-chain work, the risk is often not the package name itself but the behavior triggered when the build system installs it.
  • Dependency Provenance: Evidence that a package release came from the expected source, build pipeline, and repository state. Provenance matters because version numbers alone do not prove trust, and malicious actors can use legitimate-looking releases to hide harmful code.
  • Script Execution Control: A policy or mechanism that restricts what scripts may run during package installation. It is intended to reduce supply-chain risk, but it only works if the package manager enforces the rule consistently across all dependency paths and installation methods.
  • Supply chain assurance: Supply chain assurance is the discipline of proving that software artifacts were produced and modified through controlled, auditable steps. It extends beyond scanning code for bugs and focuses on the integrity of authorship, build process, and release lineage.

Deepen your knowledge

NHI Mgmt Group covers identity security, NHI governance, and agentic AI through independent research, practitioner guides, and the NHI Foundation Level course. It is designed for practitioners who need a practical governance lens across identity, privilege, and machine access.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 20, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org