Join our Newsletter — 33% off our NHI Course

Are only 26 of 205 jsDelivr packages proving NPM provenance?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20217
Topic starter  

TL;DR: NPM provenance can cryptographically tie a package to its source commit and build path, but adoption is still thin, says Exaforce. JavaScript package trust still depends on enforcement at registry and client side, so weak policy leaves supply chain risk in place.

Editorial analysis by NHI Mgmt Group, based on content published by Exaforce: “Npm provenance: bridging the missing security layer in JavaScript libraries”.

By the numbers:

  • Among the 2,000 most downloaded packages on jsDelivr, 205 packages have a public GitHub repository and directly publish to npm using GitHub Workflows.
  • Only 26 packages have enabled provenance, which equals 12.6% of that 205-package sample.

Key questions

Q: Why does compromised CI/CD identity undermine package provenance?

A: Provenance depends on the integrity of the account and runner that produce the build attestation.

Q: What are the signs that package trust controls are too weak?

A: Warning signs include broad use of latest tags, missing provenance requirements, direct CDN loading without integrity checks, and no policy for critical dependency approval.

Q: What breaks when provenance attestation is not enforced for npm releases?

A: The organisation loses cryptographic proof that a package came from an approved build process.

Practitioner guidance

  • Enforce provenance on critical dependencies Require cryptographic provenance for packages that ship into production applications, and block promotion when attestation is missing or invalid.
  • Harden publishing identities and CI/CD paths Protect repository accounts, runner identities, and publishing credentials with strong access controls, audit logging, and periodic review.
  • Verify package provenance before dependency approval Add provenance checks to dependency intake so maintainers and build systems cannot introduce unauthenticated packages unnoticed.

Bottom line: NPM provenance can cryptographically tie a package to its source and build path, but the article shows that optional use leaves trust too weak to stop supply chain abuse.

Glossary terms: NPM Provenance, Subresource Integrity, Package Publishing Identity, Client-side verification gap

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 2 days ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20707
 

NPM provenance is only meaningful when it becomes an enforced control, not an optional signal. The article makes clear that cryptographic attestation can still exist inside an ecosystem that accepts unsigned or unverified packages. That means the real governance issue is whether registry and client tooling require the proof before trust is granted. Practitioners should treat provenance as an admission control problem, not a documentation problem.

A question worth separating out:

Q: Should teams use provenance or Subresource Integrity first?

A: They solve different parts of the problem, so the right answer is to use both where applicable. Provenance governs how a package was built and published, while Subresource Integrity governs what the browser executes when code is loaded from a CDN. Teams should prioritise the control that matches the delivery path they actually use.

👉 Read our full editorial: NPM provenance gaps leave JavaScript supply chains exposed



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.