Your vote:

Date create:
18 October 2026
Created user name:

GitHub adds expiry to unvalidated npm trusted publishing setups after package hijack risk emerges

GitHub has updated npm trusted publishing safeguards after a reported flaw exposed more than 1,500 packages to potential hijacking. The change introduces a 48-hour expiry for unvalidated trusted publishing configurations, reducing the window in which a misconfigured setup could be abused.

What happened

According to the reported findings, researchers identified a weakness in npm trusted publishing that could have allowed an attacker to publish a new version of another user’s package without first stealing that maintainer’s credentials. In response, GitHub said unvalidated npm trusted publishing configurations will now expire 48 hours after creation.

GitHub stated that a configuration becomes validated after its first successful publish. Once validated, it is exempt from the new expiry behaviour.

Based on the available information, this is a security hardening change aimed at reducing abuse of incomplete or unverified publishing configurations. The source report says more than 1,500 packages were left vulnerable, but businesses should treat that figure as part of the reported research unless confirmed directly by GitHub or npm security advisories.

Why it matters for European businesses

For many European companies, npm is part of everyday digital operations. It underpins websites, e-commerce storefronts, web applications, internal dashboards and customer-facing platforms built with JavaScript and related frameworks. A weakness in package publishing can become a software supply chain risk, where attackers compromise software dependencies rather than attacking a company directly.

If a package is hijacked and a malicious update is published, affected businesses could unintentionally deploy harmful code into production systems, development environments or CI/CD pipelines. That can lead to website compromise, data exposure, service disruption or wider incident response costs.

This matters particularly for organisations using automated build and deployment workflows. Trusted publishing is designed to improve security by reducing reliance on long-lived credentials, but configuration weaknesses can create new attack paths if not carefully controlled.

Who may be affected

  • Software teams and agencies that publish npm packages for clients or internal reuse.
  • E-commerce and web businesses whose storefronts or applications depend on third-party JavaScript packages.
  • IT and DevOps teams managing CI/CD pipelines connected to GitHub and npm.
  • SMEs building SaaS products or internal tools with modern JavaScript frameworks.
  • Open-source maintainers used by businesses whose packages form part of commercial software stacks.

What companies should consider

  • Review npm publishing workflows and identify any trusted publishing configurations that were created but never successfully validated.
  • Audit package ownership and publishing permissions across GitHub repositories, npm organisations and automation pipelines.
  • Check dependency monitoring processes so teams can quickly detect suspicious version releases or unexpected package changes.
  • Strengthen software supply chain controls by limiting who can change release workflows and by reviewing how package publishing is authorised.
  • Document incident response steps for dependency compromise, including rollback procedures, lockfile review and integrity checks.
  • Review third-party risk exposure if your business relies heavily on open-source JavaScript packages in production systems.

For European businesses, the immediate issue is not only whether they publish to npm themselves, but also whether they rely on packages that could be affected by supply chain attacks. Security teams and development leads should treat this as a prompt to review package publishing controls and dependency risk across web projects.