verdaccio
7.1.2 · 18 Nov 2026MIT909.7k / weekRepositoryHomepagenpmAtom feed
7.1.2 is the newest release of 7.x.
In short
3 new2 fixed1 internal
Release note
Minor Changes
Update the
@verdaccio/*modules to thenext-9npm dist-tag.Minor changes
@verdaccio/config,@verdaccio/store,@verdaccio/tarball,@verdaccio/web: Add the experimentalflags.tarballMetadataoption, which lets the web UI show the README of the exact version being viewed and fills missingdist.fileCount/dist.unpackedSizefrom the tarball itself.The npm registry does not always include READMEs in package metadata: for some large packages (for example
react) the README field is empty for every version, and Verdaccio by default keeps only the latest README for locally published packages (publish.keep_readmes). The web UI then showed "No README data found" or the README of a different version.With the flag on, a tarball is only ever unpacked in two situations: in the background right after a version is published, and when the web UI asks for a README the manifest does not have, reading the cached tarball or fetching it from the uplink. Package installs never unpack tarballs, so install performance is unaffected. The README is kept in memory, and
dist.fileCount/dist.unpackedSizeare written into the cached manifest when the uplink did not provide them. At most two tarballs are read at a time, and duplicate requests share one read.Tarballs larger than
tarball_metadata.max_size_mb(default 20) are never unpacked; those versions keep the previous fallback to the latest README. The flag is off by default and the option may change or be removed in a later prerelease:flags: tarballMetadata: true tarball_metadata: max_size_mb: 20
@verdaccio/middleware,@verdaccio/proxy,@verdaccio/store,@verdaccio/ui-theme,@verdaccio/web: Show the provenance and registry signature of a version in the web UI.The package sidebar gets a "Provenance" section, under "Distribution", when the selected version carries a sigstore attestation or a registry signature, the fields registry.npmjs.org attaches to every version it signs. Its chip reads "Provenance: SLSA v1" for a version with provenance and "Registry signature" for one that only has a signature. Clicking it opens a dialog with the statement type, the signing key ids and a link to the attestation bundle. Nothing is verified in the browser: the dialog states what the registry metadata contains, and verification remains the job of
npm audit signatures.The dialog also shows what the provenance statement says about the build, read from the attestation bundle by a new web endpoint,
GET /-/verdaccio/data/package/provenance/<name>?v=<version>: the builder (GitHub Actions, self-hosted or not, or GitLab CI/CD, the two environments npm and Yarn generate provenance in), the source repository, ref and commit, the workflow file or job, the build run and the Sigstore transparency log entry, each linked to its origin. The endpoint relays the bundle from the uplink the version was synced from, applies the package access rules and answers 404 for versions without attestations. The build details therefore need an uplink that serves the npm attestation endpoint,/-/npm/v1/attestations/<name>@<version>, as registry.npmjs.org does; a Verdaccio upstream will only do so once it gains the registry signature routes, which are a separate change, and against such upstreams the dialog shows the summary and the bundle link alone. The request is made only when the dialog opens and only when the server announces the endpoint through the newcapabilities.provenanceUI option, so the theme keeps working against older servers without a single failing request: the chip, the dialog summary and the bundle link come from the sidebar data alone, and the build details simply stay out.@verdaccio/api,@verdaccio/config,@verdaccio/core,@verdaccio/middleware,@verdaccio/proxy,@verdaccio/store: Makenpm audit signatureswork through Verdaccio for packages proxied from an uplink, behind the experimentalflags.signaturessetting.Verdaccio already kept the
dist.signaturesanddist.attestationsfields that registry.npmjs.org attaches to every version, but it did not serve the two routes the npm CLI reads to verify them. npm resolves signing keys by registry host, so against Verdaccio it requestedGET /-/npm/v1/keys, received a 404 and aborted the whole command withEMISSINGSIGNATUREKEYon the first package coming from npmjs. Attestation bundles are fetched from the registry the package was installed from as well, soGET /-/npm/v1/attestations/<name>@<version>also returned 404.Both routes now exist when
flags.signatures: trueis set in the configuration (the feature is experimental and may change).GET /-/npm/v1/keysreturns the signing keys of every configured uplink merged by key id (refreshed hourly) and answers 404 when none publishes keys.GET /-/npm/v1/attestations/<name>@<version>relays the attestations from the first uplink that proxies the package, applying the packageaccessrules, and answers 404 when the uplink has none. With thisnpm audit signaturesverifies registry signatures and provenance attestations of proxied packages exactly as it does against registry.npmjs.org. Enable it with:flags: signatures: true
Packages published to Verdaccio itself are not signed yet. npm treats any registry that publishes keys as a registry whose packages should all be signed, so once the flag is on
npm audit signatureslists every locally published package as having a missing registry signature and exits with code 1; proxied packages verify, local ones are reported. Keep the flag off if that report would break a CI gate, until Verdaccio signs local packages.npm publish --provenanceis still rejected.
Patch changes
@verdaccio/core,@verdaccio/package-filter: Fix HTTP 500 responses for package requests when an installation forces minimatch 11. The access-rule matcher called the removedmakeReAPI. Use the supported matching API while retaining case-insensitive package access rules and first-match precedence.On the master and 7.x release lines, affected
@verdaccio/corereleases are9.0.0-next-9.0through9.0.0-next-9.41. Verdaccio releases using these modules include9.0.0-next-9.0through9.0.0-next-9.41and stable releases7.0.0through7.0.2. The affected 7.x prereleases using these modules are7.0.0-beta.4,7.0.0-beta.6, and7.0.0-next-7.21through7.0.0-next-7.32.The failure requires an override or resolution that replaces the declared minimatch dependency with version 11; default installations of those releases are not affected. Upgrade to a Verdaccio release containing the corrected core module before forcing minimatch 11.
Update the package filter's direct minimatch dependency as well. Existing package access and filter configuration does not need to change.
@verdaccio/api: Fix the registry closing the client connection after answering a failed tarball download, which made the next request on that keep-alive connection fail withECONNRESETor "other side closed".When a tarball request fails before any data is sent, for example a 404 for a tarball that does not exist locally or on any uplink, the registry sent the JSON error response and then also passed the same error on to the HTTP framework. Because the response was already sent, the framework reacted by destroying the socket. Package managers reuse connections, so the request that followed on the same socket failed whenever the client sent it before noticing the close, which keep-alive clients under load usually do. Each of these failures also printed a raw
NotFoundErrorstack trace to stderr. The download of a staged tarball (available when thestageflag is enabled) had the same problem.A failed tarball request is now answered once with its JSON error and the connection stays open for the next request. Failures after the download has started are unchanged: the connection is still terminated, because no error status can be sent at that point. No configuration change is needed.
Affected: verdaccio 7.x (7.0.0 to 7.0.2) and the
@verdaccio/api9.0.0-next prereleases it ships, up to9.0.0-next-9.42. verdaccio 6.x is not affected.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.