Behavior By Package
Compare how JFrog Curation resolves npm, PyPI, Maven, Gradle, and other clients when a policy blocks the latest version, so installs use a compliant release.
Compliant Version Selection (CVS) changes how each package client resolves versions when a JFrog Curation policy blocks the latest version. Each section describes the expected client behavior for one package type.
npm
Compliant Version Selection is enabled by default for npm.
npm Command Results
This command installs the latest compliant version when Compliant Version Selection blocks the latest version. The client reports no error.
npm install <PACKAGE_NAME>Where:
<PACKAGE_NAME>is the npm package name.
For example:
npm install lodashExpected output:
No errorThe following table describes npm client behavior when Compliant Version Selection blocks the latest version.
| Command or Scenario | CVS Supported | Expected Behavior When the Latest Version Is Blocked | CLI Output |
|---|---|---|---|
npm install (no lock file) | Yes | Installs the latest compliant version. | No error |
npm install <pkg> | Yes | Installs the latest compliant version. | No error |
npm install <pkg>@<range> | Yes | Resolves to the highest compliant version in the range. | No error |
npm install <pkg>@<range> (range only covers older, unchecked versions) | No | A blocked older version isn't substituted. Resolution succeeds, but the download fails. | E403 |
npm install <pkg>@<range> (no compliant version in range) | No | All versions in the range are blocked. | ETARGET, no matching version found |
npm install <pkg>@<exact> (recent blocked version) | No | Version is removed from the filtered version list. | ETARGET, no matching version found |
npm install <pkg>@<exact> (older, unchecked blocked version) | No | Version remains visible in the version list. | Download fails with E403 |
npm install <pkg>@latest (latest tag is blocked) | Yes | Installs the latest compliant version. The latest tag is recalculated. | No error |
npm install <pkg>@<pre-release> (for example, @1.0.0-beta.1) | No | Treated as an exact version request. | E403 if blocked |
npm ci (lockfile version was never compliant) | No | The version isn't present in the filtered version list. | ETARGET |
npm ci (lockfile version was compliant, now blocked or not evaluated) | No | Pinned version fails during artifact download. | E403 |
npm install <pkg>@latest where the latest dist-tag points to a non-compliant version | Yes | Installs the latest compliant version. | No error |
npm install <pkg>@dist-tag where a non-latest dist-tag (@next, @beta, @rc, @alpha) points to a non-compliant version | No | Version is removed from the filtered version list. | ETARGET, no matching version found |
npm install <pkg>@dist-tag where a non-latest dist-tag points to an older, unchecked blocked version | No | Version remains visible in the version list. | E403 Forbidden with block reason |
npm update or npm update <pkg> | Yes | Updates to the latest compliant version. | No error |
npm install --package-lock-only (no lock file) | Yes | Generates a lock file using the latest compliant version. | No error |
npm view <pkg> versions (alias npm info) | Yes | Recent blocked versions are removed. Older blocked versions may still appear. | Filtered version list |
npm outdated | Yes | Shows the latest compliant version. | Compliant latest version displayed |
npm install <tarball-url> | No | Bypasses version resolution. | E403 if blocked |
npm dedupe | Yes | Re-resolves the dependency tree. Unpinned versions may be replaced with compliant versions. | No error |
npm pack <pkg> | No | Bypasses version resolution. | Blocked downloads return E403 |
npm Supported Package Managers
- npm
- yarn
npm Client Behavior
- npm fetches the full package metadata document, including all available versions, in a single request. CVS filters this metadata before npm processes it.
- npm resolves version constraints against the filtered version list, so blocked recent versions appear as if they don't exist.
- npm also relies on dist-tags such as
latest,next, andbeta. When CVS removes the version referenced by thelatesttag, CVS recalculates thelatesttag to point to the newest compliant version. Other dist-tags aren't recalculated and may continue to point to versions that are no longer available in the filtered version list.
PyPI
CVS for PyPI applies when pip or uv resolves packages from the HTML Simple Index or the JSON index.
PyPI Supported Package Managers
- Pip
- Uv
Pip
The following table describes pip client behavior when Compliant Version Selection blocks the latest version.
| Command | CVS Supported | Expected Behavior When the Latest Version Is Blocked |
|---|---|---|
pip install <name> | Yes | Installs the next compliant version silently |
pip install <name>==<version> | Yes | Fails if that version is blocked. Returns 403 if all versions are blocked. |
pip install <name>>=<version> | Yes | Resolves to next compliant version in range |
pip install <name>~=<version> | Yes | Resolves to next compliant version in compatible range |
pip install <name> --no-deps | Partial | CVS resolves only the main package. Transitive dependencies may return 403. |
pip index versions <package> | Yes | Recent blocked versions are removed. Older blocked versions may still appear. |
pip install --upgrade <name> | Yes | Upgrades to the next compliant version. No change if the current version is compliant. |
Uv
The following table describes uv client behavior when Compliant Version Selection blocks the latest version.
| Command | CVS Supported | Expected Behavior When the Latest Version Is Blocked |
|---|---|---|
uv add <name> | Yes | Adds next compliant version to lock file |
uv add <name>>=<version> | Yes | Resolves to next compliant version in range |
uv add <name>~=<version> | Yes | Resolves to next compliant version in compatible range |
uv sync | Partial | Uses pinned versions. Resolves through CVS only if the package isn't locked. Blocked versions return 403. |
uv sync --upgrade | Yes | Re-resolves and updates to compliant versions |
uv pip install <name> | Yes | Behaves like pip and resolves to a compliant version. |
uv run --with <pkg> | Yes | Installs next compliant version |
uv lock --upgrade | Yes | Resolves to next compliant version within constraints |
Note
PyPI packages resolved through the HTML Simple Index or JSON index are supported.
Maven
The following table describes Maven client behavior when Compliant Version Selection is enabled.
| Command or Scenario | CVS Supported | Expected Behavior | CLI Output |
|---|---|---|---|
mvn dependency:tree with a dynamic or range version, for example [2,3), when the current latest version is blocked | Yes | Resolves to the highest compliant version. The blocked version is removed from maven-metadata.xml. | No error |
mvn compile or mvn install with the same dynamic or range version | Yes | Same as mvn dependency:tree with a dynamic or range version. | No error |
mvn compile with a version range whose blocked version is older than the true latest | Yes | Resolution silently returns the blocked version. The true latest is clean, so filtering never reaches the older blocked version. The JAR download is blocked. | Could not transfer artifact <groupId>:<artifactId>:jar:<version> from/to <repository-id> (<repository-url>): status code: 403, reason phrase: Forbidden (403) |
mvn dependency:tree with a version range that has no compliant version anywhere in the range | Yes | All versions in the range are blocked and removed from metadata. Resolution fails before any download is attempted. | No versions available for <groupId>:<artifactId>:jar:[<min>,<max>) within specified range |
mvn compile with an exact pinned version that is blocked, for example 1.4.2 | No | Maven skips maven-metadata.xml entirely for an exact version request. The download is blocked when fetching the JAR. | Could not transfer artifact <groupId>:<artifactId>:jar:<version> from/to <repository-id> (<repository-url>): status code: 403, reason phrase: Forbidden (403) |
mvn dependency:tree with the RELEASE keyword, when the current release is blocked | Yes | Resolves to the next-highest remaining version by version ordering. Resolution may land on a pre-release tag rather than the last final release. | No error |
mvn compile when every published version of the dependency is blocked | Yes | Full metadata is preserved. JFrog Curation stops filtering once nothing is compliant. The resolver selects the real latest version normally, but the JAR download is blocked. | Could not transfer artifact <groupId>:<artifactId>:jar:<version> from/to <repository-id> (<repository-url>): status code: 403, reason phrase: Forbidden (403) |
mvn clean install | Yes | Forces fresh dependency resolution only if the local repository cache for that dependency is also cleared. | No error |
Gradle
The following table describes Gradle client behavior when Compliant Version Selection blocks the latest version.
| Scenario or Command | CVS Supported | Expected Behavior When the Latest Version Is Blocked | CLI Output |
|---|---|---|---|
./gradlew build or ./gradlew assemble(using dynamic ranges such as 1.+ or latest.release) | Yes | Intercepts and filters the maven-metadata.xml version list. Non-compliant versions are hidden. | Build completes successfully. Gradle resolves and uses the highest remaining compliant version. |
Plugin Portal Resolution via buildSrc(using plugins { id '...' version '...' }) | Yes | Intercepts and filters plugin version metadata. Non-compliant plugin versions are hidden from resolution. | Build completes successfully. Gradle resolves and uses the highest remaining compliant plugin version. |
| Fixed Pinned Version Execution (no version range, for example group:artifact:1.2.3) | No | The client bypasses version discovery metadata and downloads the .jar or .pom directly. | If the specified version is blocked by policy, the download fails with a standard 403 Forbidden error. |
| Strict Lock Mode Execution (using --lock-mode=STRICT or --write-locks) | No | Locked configurations bypass dynamic version discovery and rely entirely on static versions. | CVS filtering isn't applied. If a locked version is blocked, the download fails with a standard 403 Forbidden error. |
| Dynamic Version Ranges with All Versions Blocked | Yes | The latest version remains visible in maven-metadata.xml, but no compliant version is available for resolution. | Gradle fails with a standard 403 Forbidden error during dependency resolution. |
Gradle Command-Line Tools
- gradle
- gradlew
RubyGems
RubyGems Command Results
The following table describes RubyGems client behavior when Compliant Version Selection blocks the latest version.
| Command | CVS Supported | Expected Behavior When the Latest Version Is Blocked |
|---|---|---|
gem install <name> | Yes | Installs the latest compliant version |
gem install <name> -v '<version>' | No | Returns "Could not find a valid gem" if the latest version is requested. Returns 403 for a blocked older version. |
gem update <name> | Partial | See Gem Client Behavior |
bundle install | Yes | Installs the latest compliant version |
bundle update | Yes | Updates to the next compliant version |
RubyGems Supported Package Managers
- Bundler
- Gem
Gem Client Behavior
gem update uses the following sources:
latest_specs.*.gz, which CVS doesn't filter, for version discovery.compact index /info/<gem>, which CVS filters, for installation.
This mismatch can surface blocked versions during resolution.
Example:
- Installed:
pry 0.15.2 - Latest:
0.16.0, which is blocked
Running gem update returns: Unable to resolve dependency: user requested 'pry (= 0.16.0)
Although the client detects the latest version, installation is blocked. The error message is misleading, but the enforcement is correct.
NuGet
NuGet Command Results
The following table describes NuGet client behavior when Compliant Version Selection blocks the latest version.
| Command | CVS Supported | Expected Behavior When the Latest Version Is Blocked |
|---|---|---|
dotnet add package <name> | Yes | Installs the latest compliant version |
dotnet add package <name> --version <ver> | Yes | Returns NU1102 if the latest version is blocked. Returns 403 if an older version is blocked. |
dotnet restore | Yes | Installs the next compliant version |
dotnet restore (with lock file) | No | Downloads pinned versions. Blocked versions return 403. |
dotnet package search | No | Shows the latest version. Install fails with 403 if that version is blocked. |
NuGet Repository Support
Only NuGet v3 repositories are supported. NuGet v2 isn't supported.
NuGet Client Behavior
--version 13.0.4is interpreted as>= 13.0.4, not an exact version.- An exact version requires
[13.0.4].
dotnet package search may display versions that can't be installed because CVS doesn't filter search results.
Conda
Conda Command Results
The following table describes Conda client behavior when the latest version is immature.
| Command | CVS Supported | Expected Behavior When the Latest Version Is Immature |
|---|---|---|
conda install <name> | Yes | Installs the next compliant version |
conda install <name>=<ver> | No | A blocked version fails with PackagesNotFoundInChannelsError or HTTP 403, depending on whether Conda discovers the version before download. |
conda search <name> | Yes | Shows only compliant versions |
conda install (environment file) | Yes | Resolves to compliant versions |
Conda Policy Constraint
- Package version is immature. CVS for Conda evaluates only this condition, and only when the Do not apply if version fixes CVE above CVSS score option is off. Policies with any other predefined or custom condition, or with this option on, are skipped during CVS.
- CVS doesn't support Conda Shards yet.
Go
Go Command Results
The following table describes Go client behavior when Compliant Version Selection blocks the latest version.
| Command | CVS Supported | Expected Behavior When the Latest Version Is Blocked |
|---|---|---|
go get <module> | Yes | Resolves to the latest compliant version |
go get <module>@<version> | Yes | Returns "package not found" if the latest requested version is blocked. Returns 403 if all versions are blocked. |
go get -u <module> | Yes | Updates to the next compliant version when one applies. Doesn't upgrade when the current version is compliant and the latest version is blocked. |
go mod download | No | Downloads the pinned version. Returns 403 if the pinned version is blocked. |
Composer
Composer Registry Support
- CVS supports only Composer V2.
- The supported Composer registry is Packagist.
- Supported public repositories are:
Composer Command Results
The following table describes Composer client behavior when Compliant Version Selection blocks the latest version.
| Command | CVS Supported | Expected Behavior When the Latest Version Is Blocked | CLI Output |
|---|---|---|---|
composer require vendor/package | Yes | Resolves to the latest compliant version | No error. Installs the next compliant version. |
composer require vendor/package:version | Yes | Request is blocked | Your requirements could not be resolved to an installable set of packages. |
composer install (composer.lock exists) | No | Composer continues downloading. Installation may fail depending on curation policies. | HTTP 403 for <package url>, aborting. |
composer install when composer.lock doesn't exist | Yes | Resolves to the latest compliant version | |
composer update | Yes | Updates packages to the next compliant version | |
composer search | No | Search results are not filtered by CVS | |
composer require vendor/package:dev-main | No | Behavior depends on the policy's pending JFrog Catalog update configuration | If the policy is set to block pending packages: HTTP 403 for <package url>, aborting. |
composer remove | Yes | May trigger the compliant version calculation and install the next compliant version for affected dependencies | |
composer outdated or composer show -lo | Yes | Lists the next compliant version |
Alpine
The following table describes apk client behavior when Compliant Version Selection is enabled.
| Command or Scenario | CVS Supported | Expected Behavior When the Latest Version Is Blocked | CLI Output |
|---|---|---|---|
apk update (latest blocked, older version cached in JFrog Artifactory) | Yes | Filtered index is served. The blocked version is substituted with a compliant cached version. | No error |
apk update (latest blocked, no cached fallback in JFrog Artifactory) | No, blocked | The blocked version has no substitute. The package remains in the APKINDEX, but Curation blocks the download. | No error. The index is served and the download is blocked. |
apk update && apk add <pkg> (latest blocked, cached fallback exists) | Yes | The highest compliant cached version installs. | No error |
apk update && apk add <pkg> (latest blocked, no cached fallback) | No | The package stays in the index at the blocked version. Download is blocked by Curation. | HTTP 403: Forbidden |
apk add <pkg>=<exact> (recent blocked version, cached fallback exists at a different version) | No | CVS substitutes in the index, but apk still can't satisfy the exact pin. | ERROR: unable to select packages: <pkg>=<exact> |
apk add <pkg>=<exact> (recent blocked version, no cached fallback) | No | The package stays in the index at the blocked version. Download is blocked by Curation. | HTTP 403: Forbidden |
apk upgrade (latest blocked, cached fallback exists) | Yes | Upgrade installs the newest compliant cached version. apk doesn't attempt a downgrade. | No error |
apk upgrade (latest blocked, no cached fallback) | Yes (blocked) | The package remains at its current installed version. | No error (upgrade skipped for that package) |
Alpine Supported Package Managers
- apk
Alpine Index and Cache Rules
- CVS applies only at the virtual repository layer. CVS runs when
/etc/apk/repositoriespoints at a JFrog Artifactory virtual Alpine repository whose member is an Alpine remote. A request that hits the remote directly bypasses CVS and falls back to per-.apkdownload curation. - Substitution depends on the cache. When a recent package version is blocked, CVS looks for the newest non-blocked version among
.apkfiles that JFrog Artifactory has already cached from previous downloads. If a compliant cached version exists, CVS substitutes it into the filtered index. If no cached fallback exists, the blocked version remains in the index, and the main Curation download flow blocks it with a 403 when you try to install it. - CVS isn't applied for the Alpine Edge branch.
- Alpine CVS evaluates only Malicious and Immaturity policies.
- Only packages updated within the last 99 days are evaluated. Packages older than 99 days pass through the index unchecked and are served as-is. If such a version is blocked, it isn't removed from the index, but it is blocked at
.apkdownload time by existing per-file Curation controls. - Requests for Alpine's newer V3
packages.adbindex skip curation completely. Alpine V3 clients receive the raw upstream list with no blocked or non-compliant versions removed. - For versions with unusual or stacked suffixes that Alpine's rules can't compare, Curation guesses the newest by which copy was cached most recently. This can serve the wrong version if an older one was downloaded after a newer one.
- A curated virtual repository that includes multiple remote repositories can cause performance issues.
VS Code
CVS for VS Code applies to extension metadata from the Open VSX Registry.
AI Editor Extensions for OpenVSX
The following table describes OpenVSX extension behavior when Compliant Version Selection blocks the latest version.
| Developer Action or Command | CVS Enabled | Expected Behavior (Latest Version Blocked) | Expected Output or Error Message |
|---|---|---|---|
Search Extension in UI For example, typing in the Extensions view | Yes | Blocked versions are removed from the returned metadata payload. | The extension appears, but blocked versions are missing from the version history/version selection dropdown. |
| Install Extension via Editor UI | Yes | Lists the latest compliant version. | No errors. |
Install Specific Version (via Dropdown) Selecting a blocked version | Yes | Newer blocked versions are filtered out before the IDE handles the request. Older blocked versions may still appear. | Newer blocked versions don't appear in the version selection dropdown. Older blocked version installations may still fail. |
| Extension Background Update | Yes | CVS recalculates the highest available compliant version. The client updates only to the highest allowed version. | No update is triggered if no compliant newer version exists. No error is shown in the UI. |
Supported Platforms
- Open VSX Registry
SBT
sbt Command Results
The following table describes sbt client behavior when Compliant Version Selection blocks the latest version.
| Command or Scenario | CVS Supported | Expected Behavior When the Latest Version Is Blocked | CLI Output |
|---|---|---|---|
sbt update (dynamic version 2.+, latest blocked) | Yes | Resolves to the latest compliant version. The blocked version is removed from maven-metadata.xml. | No error |
sbt compile or sbt run | Yes | Same as sbt update. | No error |
sbt update with version range [2.0,3.0), latest in range blocked | Yes | Resolves to the highest compliant version within the range. | No error |
sbt update with a version range where no compliant version exists | No | All versions in the range are blocked, and the build fails. | No version found for [range] in <artifactory URL> |
sbt update with exact version 2.13.0 (blocked) | No | Coursier skips maven-metadata.xml for exact version requests. The download is blocked when fetching the JAR. | Coursier error: Error fetching artifacts: forbidden |
sbt update with latest.release | Yes | Resolves to the next compliant release version. | No error |
sbt update with all versions of a package blocked (product rule) | No | Full metadata is preserved for product rules. The resolver selects the latest version normally, but the JAR download is blocked. | Coursier error: Error fetching artifacts: forbidden |
sbt clean update | Yes | Forces a fresh dependency resolution. The CVS filter is applied when maven-metadata.xml is re-fetched. | No error |
sbt dependencyTree (built in since SBT 1.4) | Yes | Shows only compliant resolved versions. Blocked versions don't appear. | No error if resolution succeeds. sbt displays a warning if a dependency can't be resolved. |
sbt evicted | Yes | Shows evictions only among compliant versions. | No error |
Cargo
The following table describes Cargo client behavior when Compliant Version Selection is enabled.
| Command or Scenario | CVS Supported | Expected Behavior |
|---|---|---|
cargo add <crate> with no version | Yes | Resolves and pins the newest compliant version. The blocked version is skipped. |
cargo add <crate>@<exact-blocked-version> | Yes | Errors. The blocked version is reported as nonexistent, not as blocked. |
cargo update | Yes | Re-resolves the lockfile on each run to the compliant version. |
cargo generate-lockfile | Yes | The first resolve pins the compliant version. |
cargo fetch | Yes | Downloads only the compliant version. |
cargo build, cargo check, or cargo test | Yes | A fresh resolve selects the compliant version. |
cargo search | No | Shows blocked version metadata. This output is informational only. |
cargo vendor | No | Bypasses Curation and fetches directly from crates.io. |
Frequently Asked Questions
This section provides answers to frequently asked questions about Compliant Version Selection behavior.
FAQs
Q: Does npm view show only compliant versions?
npm view show only compliant versions?A: Not always. Compliant Version Selection (CVS) removes recent blocked versions, but older blocked versions that precede the first compliant version may still appear. These versions remain blocked, can't be downloaded, and are listed in npm Command Results.
Q: What happens if a blocked version still appears in npm view?
npm view?A: The download is still blocked. Any attempt to download a blocked version returns a 403 Forbidden response. The npm client displays the block reason, and the Curation audit log records it.
Q: What happens when every npm version is blocked?
A: Curation doesn't return npm package metadata, so the client receives no version list, every download stays blocked, and the Curation audit log records the request with package version All. You can request a waiver from that audit event, using JFrog Catalog suggestions for versions Compliant Version Selection evaluated, and the request follows the blocking policy's waiver settings. For more information, see Manage Waivers.
Q: What is the difference between the npm latest tag and other dist-tags?
A: Compliant Version Selection (CVS) recalculates the latest tag so it points at the newest compliant version. Other dist-tags, such as next and beta, aren't recalculated and can still point at a removed version. See npm Client Behavior.
Q: Which policies does Alpine Compliant Version Selection evaluate?
A: Alpine CVS evaluates only Malicious and Immaturity policies, and only packages updated within the last 99 days. The Alpine Edge branch and the V3 packages.adb index aren't filtered. See Alpine Index and Cache Rules.
Related Topics
Updated 6 days ago
