npm / verdaccio
verdaccio
What changed in verdaccio 5 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
53 breaking22 security1 deprecations87 new APIs and options3 performance26 behavior and defaults78 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initverdaccio 756 changes
Breaking changes 19
The Docker image no longer declares a health check; add one yourself if needed, probing 127.0.0.1.
The /-/all search endpoint is removed; use /-/v1/search.
Package API authentication now uses Bearer tokens; _auth entries in .npmrc must move to _authToken, and 401 responses advertise only Bearer.
Replaces config.self_path.
With Express 5, middleware plugins must use named wildcards, use res.sendFile(filename, { root }) for absolute paths, and account for req.body already being parsed when they run.
Node.js 24 or newer is required.
npm star and unstar are removed.
Package exports changed, so consumers using deep imports need to update them.
The final Docker image installation disables dependency lifecycle scripts and requires third-party dependencies to be at least three days old, with Verdaccio packages excluded from the age restriction.
Ownership checks now also cover npm deprecate, version unpublish, and dist-tag changes.
The default export is now asynchronous runServer and no longer accepts { listenArg }; await runServer(config), then call .listen().
The searchRemote flag is removed.
A server secret shorter than 32 characters stops the server.
Databases in .sinopia-db.json are no longer read.
Publish rejects invalid tarball attachment names before saving metadata and records an upload only after the tarball is fully written.
Removing a version now requires unpublish permission on its own route.
The plugin moved to its own repository.
The logger-commons and logger-prettify packages are merged into @verdaccio/logger.
JSON and JavaScript configuration are no longer supported; configuration must be YAML.
Security 3
Enables signature-key and attestation routes so npm audit signatures can verify proxied packages; locally published packages remain unsigned and are reported as missing signatures.
Login routes accept Basic credentials while security.api.basicLogin is enabled, which is the default.
Adds bounded, rate-limited search with batched access checks and paginated uplink results; callback-based storage plugins now receive working query filtering.
New APIs and options 22
Announces the provenance endpoint to the UI so it requests build details only when the server supports them.
Enables reading tarballs to show the README for the viewed version and fill missing dist.fileCount and dist.unpackedSize in cached manifests. It is off by default.
When signatures are enabled, relays attestations from the first uplink proxying the package, applies package access rules, and returns 404 when the uplink has none.
When signatures are enabled, returns signing keys from configured uplinks merged by key id, refreshed hourly, or 404 when none publishes keys.
Relays an attestation bundle from the version's uplink, applies package access rules, and returns 404 for versions without attestations.
The web UI shows provenance or registry-signature information for versions that carry an attestation or signature, including a dialog with statement and signing details.
Sets the maximum tarball size eligible for unpacking when tarball metadata is enabled; the default is 20 MB.
Enables pure ESM plugins through asynchronous plugin loading.
Experimental staged publishing lets a pipeline upload a version for maintainer review before it becomes installable; requires npm 11.17 or newer.
Adds experimental time-based one-time passwords for login, account operations, and publishing.
Reports whether a package version is published or staged.
Adds notification hooks for publish and unpublish.
Adds the server.cors configuration option.
Adds the server.dotfiles configuration option.
Adds the server.hidePingLogs configuration option.
Adds the server.hideStaticLogs configuration option.
Adds an opt-in cache for successful legacy bearer-token authentication results. Configure enabled, ttlMs, and maxEntries; the cache is disabled by default, does not cache Basic authentication, and cached credentials may remain valid until entries expire.
The storage plugin API is promise-based, with a compatibility adapter for callback-based storage plugins.
Introduces an experimental package that ships the verdaccio-admin storage command group.
htpasswd can cache successful password verifications for clients that send credentials on every request.
Adds a Web UI asset folder configuration option.
Adds a Web UI help configuration option.
Fixes and other changes 12
Requests work when Verdaccio is mounted under a path such as /registry; request logging preserves Express’s routing path while continuing to log the complete original URL.
The web UI now loads on-demand files relative to its location, so requests follow url_prefix instead of going to the host root.
Uplink requests no longer send a bogus undefined client address for tarballs; metadata requests forward the incoming chain followed by the client address, and an uplink headers value takes precedence regardless of capitalization.
Aborts the storage read for a tarball download if the client disconnects before the response finishes.
Fixes the via header sent to an uplink so it no longer grows with every request when the uplink has a headers option in the config.
Failed tarball requests now return their JSON error once without closing the keep-alive connection, allowing the next request on that connection to proceed.
Fixes HTTP 500 responses when minimatch 11 is forced, retaining case-insensitive matching and first-match precedence without requiring configuration changes.
Restores the plugin dependency so rules configured under filters are enforced again; no configuration change is needed.
The web UI footer now shows the verdaccio package version, matching verdaccio --version, instead of the internal module version.
The compatibility adapter now passes search queries through, filters collected results by query text, and wraps results in the store's expected shape.
Import Config, ConfigBuilder, getDefaultConfig, and parseConfigFile from @verdaccio/core.
This web UI option now reaches the UI; previously the server dropped it.
verdaccio 688 changes
Breaking changes 14
Setting web.showSearch to false now unregisters the web search endpoint, which returns 404; the npm search API is unaffected.
The Docker image no longer trusts certificates issued through the compromised eMudhra intermediate CAs. Docker users should pull the new image; npm users should upgrade Node.js to a listed fixed version or later.
The final Docker image installation requires third-party dependencies to be at least three days old, with Verdaccio packages excluded from the restriction.
Search requires one non-blank text string and returns HTTP 400 with ERR_TEXT_MISSING for missing or invalid text. Unreadable uplink responses end that uplink's results while local results are still returned.
Only fetch tarball URLs served by a configured uplink, preventing uplink Authorization headers from being sent to unrelated hosts; locally published packages return 404 for off-uplink URLs.
Package and tarball path validation now rejects wildcard characters.
The endpoint now filters starred packages through the configured package access policy, so clients only see packages they are authorized to access.
Node.js 22 or higher is required; the CLI refuses to start on older runtimes. Node.js 24 is recommended.
Validation compares the uplink's own port when deciding whether to ignore the default HTTPS port, so a non-default-port uplink no longer matches a default-port tarball.
Malformed uplink URLs now fail fast at startup with a clear, credential-redacted error instead of being parsed leniently.
Generated tokens now enforce revocation, CIDR restrictions, and read-only status on requests in both AES and JWT API-token modes. Tokens issued before upgrading must be regenerated to apply these restrictions.
The builder and runtime base image changes from Node 22 to Node 24.
The Node.js version changes from 22 to 24, setting the project's development baseline.
npm.js users must use Node.js 18 or later; Node.js 14 and 16 support is dropped. Docker users are unaffected.
Security 14
The bundled body-parser update fixes a denial of service where trailing bytes after a compressed request body could tie up the server; no configuration change is needed.
The final Docker image installation disables dependency lifecycle scripts, reducing the risk from third-party install scripts.
Webhook notification templates use Handlebars 4.7.10, which includes a security fix for template injection advisories.
The update fixes trusted-subnet matching for IPv4-mapped IPv6 addresses, addressing an IP spoofing issue when Express resolves trusted proxies.
Requests without credentials or with an unrecognised token now receive 401 Unauthorized instead of 200 with an empty body.
The HTTP stack now resolves qs 6.16.0, fixing query-string denial-of-service vulnerabilities without changing parsing behavior or requiring configuration changes.
Updates remaining vulnerable brace-expansion trees to patched releases for a DoS advisory.
Updates the ajv/fast-uri resolution to 3.1.6, fixing four high-severity URI parser advisories.
The readme and sidebar web endpoints validate the scope route segment and return 404 for malformed requests.
Updating the config dependency to js-yaml 4.3.0 resolves a high-severity advisory involving quadratic CPU consumption from YAML merge-key chains.
The publisher object in notification templates exposes only name, groups and real_groups, preventing the remote user's auth token from reaching the notification endpoint.
The search endpoint now rate-limits requests, caps size at 250 and from at 10000, forwards the clamped values to uplinks, and avoids access checks after the requested page is filled.
Default security objects are no longer shared across configs, preventing changes in one config from affecting another.
Configure package or scope rules to block matching versions or packages.
Deprecations 1
Logs a startup warning when Node is below the recommendation; Node 18 remains supported.
New APIs and options 10
The package filter adds excludeDeprecated support.
The package declares an exports field and ships CommonJS and ESM outputs, allowing ESM imports to resolve a real ES module while require continues to work.
Notification templates gain the publishedPackage variable.
Notification templates can use this variable to distinguish publish from unpublish events.
Whitelist trusted packages within blocked rules.
Serve only versions published before a specified date.
Hide versions published less than the configured number of days ago.
Use the replace strategy to substitute a blocked version with the nearest older safe version.
A built-in plugin intercepts package metadata from uplinks and removes versions matching configurable rules. It is bundled by default but must be enabled by the user.
Set the Docker network bind address to an IPv4 address, IPv6 address, or specific interface.
Performance 3
Excludes tarball responses from compression, avoiding redundant gzip work and preserving the Content-Length header; JSON metadata remains compressed.
Fixes O(n²) complexity in cleanupDistFiles.
Reduced memory consumption when handling the package list.
Behavior and default changes 11
bun is now listed among the default package managers shown on a package page.
This web UI option now reaches the UI and defaults to false, so the home page looks the same after upgrading unless you turn it on.
Web UI search responses are limited to 20 packages.
Importing
runServerfromverdaccionow resolves a real ES module instead of CommonJS interop.The CLI runs on the ESM build, allowing ESM-only dependencies to be loaded at runtime on supported Node.js versions.
The notify webhook now fires when a package or a single version is unpublished, as well as when a package is published.
Tarball uplink selection now follows the distfile registry or the uplink serving its URL, with an autogenerated default-settings uplink when none matches.
The token creation endpoint defaults
cidr_whitelistto[]when the field is absent, allowing modern npm clients to create tokens without passing--cidr.The token creation endpoint defaults
readonlytofalsewhen the field is absent, allowing modern npm clients to create tokens without sending it.Made the asset manifest bundler-agnostic.
The Docker base image was updated to Node.js v22.22.0, affecting the runtime used when running Verdaccio in Docker.
Fixes and other changes 35
Routes now match paths relative to their router mount, and request logging preserves URLs, preventing asynchronous middleware plugins from causing web UI manifest-loading errors.
When a client disconnects during a tarball download, the registry aborts the storage read and uplink request and discards a partial cache file, preventing resources from remaining open.
Releases are published with provenance again, allowing package managers that compare trust evidence between versions to install this release cleanly.
Supplied credential fields are validated before invoking the authentication plugin; existing passwords can still be replaced even when they do not meet the current policy.
Requests with missing or non-string credentials, or a null body, are rejected with HTTP 400 instead of reaching the authentication plugin or producing an internal server error.
The endpoint resolves only versions and dist-tags defined by the package; undefined version or tag names return HTTP 404 instead of sometimes causing an internal server error.
When the htpasswd file is reloaded, users removed from it stop authenticating without requiring a restart.
Names that start with an underscore, use @ without a scope, or contain characters that are not URL-friendly are rejected with HTTP 400 instead of being looked up.
Names that cannot be stored as same-named directories on every platform are served from uplinks but not cached locally and cannot be published to local storage.
size and from accept only plain string values; other values fall back to defaults. Only plain string parameters are forwarded to uplinks.
Publishing no longer fails with a request size mismatch when authenticating with a token created by npm token create.
A malformed dist.tarball returned by an upstream registry is skipped with a warning instead of aborting the package update.
Webhook notifications are restored when running on the ESM build, and delivery failures are reported based on the real HTTP response status.
Uplink and local-storage URL handling no longer uses legacy url.parse()/url.format() helpers, removing the Node.js 22+ deprecation warning at startup.
When a cached version lacks a distfile record, the tarball location is resolved from its dist.tarball metadata and the record is restored when the tarball is cached.
Search results for local packages now emit npm-search-compatible maintainers with username and email.
Search results populate publisher from _npmUser when supplied by the publishing client, falling back to the first maintainer.
A 403 response from an uplink is now propagated to the client, including error detail from the response body, instead of returning a generic 500.
Pagination now slices results through from + size, fixing incorrect pages beyond the first.
JWT middleware runs before middleware plugins are loaded, so req.remote_user is available in register_middlewares; the API router guards its own JWT middleware against running twice.
Fixes an issue that could cause tarballs to fail.
Removes the basic header from login error 401 responses.
Fixes missing package refresh after logging into the WebUI.
Fixed an issue with password validation in the web interface.
Fixes UI search returning no output.
Fix the unreadable stream error that resulted in HTTP 500.
Handle a missing host header during URL basename resolution.
Removed an unnecessary allow check from the API.
Fixed processing of allow_unpublish.
Fixed error checking for the storage directory.
Docker image dependencies were fixed.
Fixed dist-tags handling for scoped packages.
Fixes running without an auth plugin.
Fixes a bug in notification packages.
Fixes the proxy protocol check.
verdaccio 5126 changes
Breaking changes 20
404 errors are now returned in a CouchDB-like format.
Support for asciidoctor.js was removed.
Requests without credentials receive a 401 response instead of 403.
Clipanion was adopted as the CLI.
Renames the database file.
The Docker image is updated to Node.js 12.
The default changed to false, improving compatibility with the npm registry.
Changed the exit code used with the info flag.
Forces authentication on login.
Checks for the minimum Node.js version when Verdaccio starts.
Node 8 and Node 10 support was dropped, so deployments must use a newer Node.js version.
npm token support was revisited and enabled by default.
Scoped packages are supported; the default
*mask does not match them, so use@scope/*or**to match them.Search implementation now depends on each plugin.
The search API no longer sets the magic date header when returning an array.
Upgrades Node to fix a long-standing socket timeout issue.
The storage path in configuration is now relative to the config file location rather than the current working directory.
All time intervals are now specified in seconds instead of milliseconds; existing timeout values need to be changed.
Proxying publish requests to uplinks is no longer supported.
The web logout endpoint was removed.
Security 5
Uses HTTPS to resolve mixed content errors.
Markdown rendering is safer after switching to remarkable with a sanitizer.
The Node.js version was upgraded from 14.16 to 14.16.1 for security fixes.
Adds security headers for the web UI.
Allows restricting the unpublish action to certain users.
New APIs and options 55
Authentication tokens were added, allowing users to avoid the npm
always-authsetting.Adds header authorization for uplinks.
A CA certificate is optional for HTTPS configuration.
Adds password-change endpoints to the UI.
Configuration files can be parsed as YAML, JSON, or JS.
A custom protocol header was added.
Dark mode was added to the web interface.
Plugins can be loaded from an external plugin directory.
The endpoint now returns the list of all local packages.
Adds the ability to disable Gravatar.
Adds HTTPS support.
Internationalization was added to the web interface.
A configuration parameter was added to control whether the latest tag is ignored.
Adds support for JWT on the API.
A configuration option was added to reduce requests to the public registry when it is down.
A configuration option was added to avoid repeatedly requesting the same data from the public registry.
Adds middleware plugins from fl4re/sinopia.
Adds the ability to listen on multiple ports.
Adds support for multiple notification endpoints to the existing webhook.
Users can register using the npm adduser command.
Support was added for npm audit fix.
Support for npm deprecation was added.
Implements the npm ping endpoint.
Basic read-only tag support for npm was added.
Adds support for the npm token command.
Adds a setting to allow publishing when uplinks are offline.
Adds plugin support for filtering packages.
Allows ordering packages through the web interface.
The web UI displays package peer dependencies.
The initial release added the ability to publish packages and retrieve them locally.
Packages can now be retrieved from another registry.
Package tag support was added.
Basic support was added for uploading packages to other registries.
Package version information is sent to plugins.
Adds pfx support for HTTPS.
Plugins can throw HTTP status codes.
Allows agentOptions to be added to a request.
Rotating-file logging is exposed for JSON logging.
An option was added to set the scope shown in the web UI instructions header.
Support for the new search endpoint was added.
Search functionality was added.
Adds the server keepAliveTimeout setting to configuration files.
Adds star and unstar APIs for 4.x.
Different packages can now use different storage paths.
A strict SSL option was added.
Themes can be provided as plugins.
Adds the ability to bind on Unix sockets.
The server now supports unpublishing local packages.
Proxy support was added for requests to uplinks.
A configurable timeout was added for requests to uplinks.
Adds a cache option to uplinks.
A configuration parameter was added to specify upload limits.
Adds an update notification to the CLI.
Adds the ability to browse a web package version.
Adds web.primary_color as a configuration option and injects it into the web UI.
Behavior and default changes 15
Audit is enabled by default.
The bytesin log field became optional.
Keep alive was enabled by default in configuration.
Keep-alive support was enabled.
Kill signals are handled more gracefully.
Log rotation no longer requires a full application restart.
Adds support for multiple protocols in the protocol header.
The search v1 endpoint was moved to experimental status.
Searching in the web UI no longer hits proxies.
Static content served by the web interface is skipped in logs.
Time intervals can now use nginx notation, such as
1m 30sfor 90 seconds.The behavior of url_prefix was improved.
Allows url_prefix to contain only the path.
The web interface is enabled by default.
The web UI token supports base64.
Fixes and other changes 31
Avoids blindly overwriting local dist-tags.
Using HTTPS with pfx enabled no longer causes the process to exit.
Fixes a potential issue when signing new JWT tokens.
Correctly checks the keepAliveTimeout value.
The logger's pretty-timestamped format supports localTimeZone.
Ensures every log file has at least one record.
Logging levels are now used correctly.
The logo configuration field can use a local file.
The maximum user limit is enforced only for new users.
Returns a not-found response when a package is missing.
Fixes notifications configured for multiple endpoints.
Package names beginning with a hyphen are allowed.
Correctly checks when the proxy setting evaluates to false.
Routing accounts for a directory in a reverse proxy path.
Matches the shell title with the web title.
Fixes routing that captured all static files.
Storage can be omitted from configuration when a storage plugin is used.
Fixes incorrect resource and registry URLs when installing from a subdirectory.
Adds an endpoint for downloading tarballs according to the standard.
The stream is aborted to prevent overwriting an existing tarball.
Uses hasProxyTo to find the correct uplink for tarballs.
Fixed tarball URLs for web/package.
Checks whether a socket exists before removing it.
Removes the Unix socket before listening.
Fixes a collision between unpublish and adding or removing a star.
Returns 503 to npm and yarn when an uplink connection times out.
The uplinks auth header handling was corrected.
Fixes an incorrect logo URL when url_prefix ends with a slash.
Fixes importing groups when creating a user.
Fixes a version rendering issue in the UI.
The web interface now works behind a reverse proxy.