Chainguard Libraries for JavaScript and CVE remediation for Python libraries
Learning Lab for October 2025 about Chainguard Libraries for JavaScript and CVE remediation for Python libraries
Chainguard Repository is a unified Chainguard-managed experience for pulling secure-by-default open source artifacts. Chainguard Libraries for JavaScript is the first artifact type available through it, with configurable policies that control how both Chainguard-built packages and upstream npm packages are consumed. Upstream packages are subject to additional security controls, including malware scanning and an optional cooldown period.
Pointing your existing build tools or repository manager tools at the Chainguard Repository gives you:
The Chainguard Repository for Javascript uses the same endpoint and authentication as Chainguard Libraries for JavaScript: https://libraries.cgr.dev/javascript/.
See Technical Details for instructions for retrieving credentials with chainctl. No additional token setup is required.
Learn about fallback configuration and cooldown periods later on this page.
If you don’t use an artifact manager, you can point your build tools directly at the Chainguard Libraries for JavaScript endpoint:
# npm
npm config set registry https://libraries.cgr.dev/javascript/
# pnpm
pnpm config set registry https://libraries.cgr.dev/javascript/
# Yarn
yarn config set npmRegistryServer https://libraries.cgr.dev/javascript/For full setup instructions including authentication, see Build Configuration: Direct Access.
If you use Cloudsmith, JFrog Artifactory, Sonatype Nexus, or a similar repository manager, you can point it to the Chainguard Repository endpoint directly. This replaces the previous pattern of configuring Chainguard Libraries and npm as separate upstreams with a priority ordering.
Point your repository manager’s virtual or group repository at libraries.cgr.dev/javascript as the single upstream. The Chainguard Repository handles fallback and policy; your repo manager handles local caching and access control for your organization.
See Global configuration for setup guides per repository manager.
By default, the Chainguard Repository serves only Chainguard-built packages. You can contact your Chainguard account team or customer support to enable the built-in fallback to the upstream npm registry, which allows the repository to serve packages not yet built by Chainguard. All upstream packages are subject to additional security controls before they are served.
Contact your Chainguard account team or Chainguard support to configure an upstream fallback. The options are:
Upstream fallback best practices Upstream packages are proxied directly from npm and are not rebuilt or authored by Chainguard as part of our Libraries product. The cooldown period and malware scanning provide a supplemental baseline of protection to your own security practices, but you are solely responsible for independently evaluating and validating all upstream artifacts before use in your environment.
All packages served from the upstream fallback are scanned for malware before being made available. Any package version with a detected malware identifier (MAL ID) from the public OSV feed is blocked and will not be served.
When fallback is enabled, upstream npm packages are subject to a default 7-day cooldown from their publication date before the Chainguard Repository will serve them. The cooldown is an additional layer of security on top of malware scanning. It provides a window for the security community to identify and report malicious packages before your builds can pull them.
If a package version is requested and falls within the cooldown period, the package manager will output a 404 error. The package becomes available once it has passed the cooldown period and cleared malware scanning.
When you request a JavaScript package from the Chainguard Repository, the following logic applies:
The Chainguard Console provides visibility into your repository configuration and the packages being served. When the upstream fallback is configured for your organization, you will see all packages including those built by Chainguard and those that are mirrored from upstream npm.
Last updated: 2025-07-23 15:09