GitHub npm Trusted‑Publishing Config Expiry Vulnerability Exposes 1,500+ Packages to Hijacking
What It Is — GitHub’s npm “trusted publishing” feature lets maintainers pre‑authorize a publishing workflow by creating a signed configuration file. Researchers discovered that the configuration remains unvalidated for 48 hours after creation, during which an attacker who can guess or obtain the configuration ID can publish a malicious version of the package without ever possessing the maintainer’s credentials. The flaw does not require credential theft; it exploits the window before the configuration is automatically marked “validated” after the first successful publish.
The issue was reported to GitHub in early October 2026. GitHub’s internal security team confirmed that over 1,500 npm packages had active, unvalidated trusted‑publishing configurations at the time of discovery. No evidence of active exploitation was found, but the potential impact includes supply‑chain compromise, malware injection into downstream projects, and loss of trust in the npm ecosystem.
GitHub responded by changing the default behavior: unvalidated configurations now expire after 48 hours, and any attempt to publish with an expired configuration is rejected. Existing configurations that have already been validated remain unaffected. The company also issued a security advisory recommending maintainers audit their npm packages for any unvalidated configurations and rotate any that are still active.
Affected Products — GitHub npm “trusted publishing” feature (used with npm packages hosted on GitHub Packages).
Why It Matters for Trust & Control Assurance — The flaw highlights the need for continuous verification of software‑supply‑chain controls; it tests the control objective of ensuring integrity of code publishing processes.
Recommended Actions
- Audit all npm packages in your organization for unvalidated trusted‑publishing configurations via the GitHub API or UI.
- Re‑validate any legitimate configurations by performing a successful publish within the 48‑hour window, or revoke and recreate them using the updated workflow.
- Enable logging of publishing events and integrate them with a SIEM to detect unexpected version uploads.
- Document the change in your software‑supply‑chain policy and map it to the relevant control objective for audit evidence.
Source: The Hacker News article