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 lodash

Expected output:

No error

The following table describes npm client behavior when Compliant Version Selection blocks the latest version.

Command or ScenarioCVS SupportedExpected Behavior When the Latest Version Is BlockedCLI Output
npm install (no lock file)YesInstalls the latest compliant version.No error
npm install <pkg>YesInstalls the latest compliant version.No error
npm install <pkg>@<range>YesResolves to the highest compliant version in the range.No error
npm install <pkg>@<range> (range only covers older, unchecked versions)NoA blocked older version isn't substituted. Resolution succeeds, but the download fails.E403
npm install <pkg>@<range> (no compliant version in range)NoAll versions in the range are blocked.ETARGET, no matching version found
npm install <pkg>@<exact> (recent blocked version)NoVersion is removed from the filtered version list.ETARGET, no matching version found
npm install <pkg>@<exact> (older, unchecked blocked version)NoVersion remains visible in the version list.Download fails with E403
npm install <pkg>@latest (latest tag is blocked)YesInstalls the latest compliant version. The latest tag is recalculated.No error
npm install <pkg>@<pre-release> (for example, @1.0.0-beta.1)NoTreated as an exact version request.E403 if blocked
npm ci (lockfile version was never compliant)NoThe version isn't present in the filtered version list.ETARGET
npm ci (lockfile version was compliant, now blocked or not evaluated)NoPinned version fails during artifact download.E403
npm install <pkg>@latest where the latest dist-tag points to a non-compliant versionYesInstalls 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 versionNoVersion 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 versionNoVersion remains visible in the version list.E403 Forbidden with block reason
npm update or npm update <pkg>YesUpdates to the latest compliant version.No error
npm install --package-lock-only (no lock file)YesGenerates a lock file using the latest compliant version.No error
npm view <pkg> versions (alias npm info)YesRecent blocked versions are removed. Older blocked versions may still appear.Filtered version list
npm outdatedYesShows the latest compliant version.Compliant latest version displayed
npm install <tarball-url>NoBypasses version resolution.E403 if blocked
npm dedupeYesRe-resolves the dependency tree. Unpinned versions may be replaced with compliant versions.No error
npm pack <pkg>NoBypasses 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, and beta. When CVS removes the version referenced by the latest tag, CVS recalculates the latest tag 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.

CommandCVS SupportedExpected Behavior When the Latest Version Is Blocked
pip install <name>YesInstalls the next compliant version silently
pip install <name>==<version>YesFails if that version is blocked. Returns 403 if all versions are blocked.
pip install <name>>=<version>YesResolves to next compliant version in range
pip install <name>~=<version>YesResolves to next compliant version in compatible range
pip install <name> --no-depsPartialCVS resolves only the main package. Transitive dependencies may return 403.
pip index versions <package>YesRecent blocked versions are removed. Older blocked versions may still appear.
pip install --upgrade <name>YesUpgrades 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.

CommandCVS SupportedExpected Behavior When the Latest Version Is Blocked
uv add <name>YesAdds next compliant version to lock file
uv add <name>>=<version>YesResolves to next compliant version in range
uv add <name>~=<version>YesResolves to next compliant version in compatible range
uv syncPartialUses pinned versions. Resolves through CVS only if the package isn't locked. Blocked versions return 403.
uv sync --upgradeYesRe-resolves and updates to compliant versions
uv pip install <name>YesBehaves like pip and resolves to a compliant version.
uv run --with <pkg>YesInstalls next compliant version
uv lock --upgradeYesResolves 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 ScenarioCVS SupportedExpected BehaviorCLI Output
mvn dependency:tree with a dynamic or range version, for example [2,3), when the current latest version is blockedYesResolves 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 versionYesSame 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 latestYesResolution 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 rangeYesAll 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.2NoMaven 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 blockedYesResolves 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 blockedYesFull 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 installYesForces 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 CommandCVS SupportedExpected Behavior When the Latest Version Is BlockedCLI Output
./gradlew build or ./gradlew assemble
(using dynamic ranges such as 1.+ or latest.release)
YesIntercepts 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 '...' })
YesIntercepts 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)
NoThe 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)
NoLocked 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 BlockedYesThe 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.

CommandCVS SupportedExpected Behavior When the Latest Version Is Blocked
gem install <name>YesInstalls the latest compliant version
gem install <name> -v '<version>'NoReturns "Could not find a valid gem" if the latest version is requested. Returns 403 for a blocked older version.
gem update <name>PartialSee Gem Client Behavior
bundle installYesInstalls the latest compliant version
bundle updateYesUpdates 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.

CommandCVS SupportedExpected Behavior When the Latest Version Is Blocked
dotnet add package <name>YesInstalls the latest compliant version
dotnet add package <name> --version <ver>YesReturns NU1102 if the latest version is blocked. Returns 403 if an older version is blocked.
dotnet restoreYesInstalls the next compliant version
dotnet restore (with lock file)NoDownloads pinned versions. Blocked versions return 403.
dotnet package searchNoShows 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.4 is 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.

CommandCVS SupportedExpected Behavior When the Latest Version Is Immature
conda install <name>YesInstalls the next compliant version
conda install <name>=<ver>NoA blocked version fails with PackagesNotFoundInChannelsError or HTTP 403, depending on whether Conda discovers the version before download.
conda search <name>YesShows only compliant versions
conda install (environment file)YesResolves 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.

CommandCVS SupportedExpected Behavior When the Latest Version Is Blocked
go get <module>YesResolves to the latest compliant version
go get <module>@<version>YesReturns "package not found" if the latest requested version is blocked. Returns 403 if all versions are blocked.
go get -u <module>YesUpdates 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 downloadNoDownloads 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.

CommandCVS SupportedExpected Behavior When the Latest Version Is BlockedCLI Output
composer require vendor/packageYesResolves to the latest compliant versionNo error. Installs the next compliant version.
composer require vendor/package:versionYesRequest is blockedYour requirements could not be resolved to an installable set of packages.
composer install (composer.lock exists)NoComposer continues downloading. Installation may fail depending on curation policies.HTTP 403 for <package url>, aborting.
composer install when composer.lock doesn't existYesResolves to the latest compliant version
composer updateYesUpdates packages to the next compliant version
composer searchNoSearch results are not filtered by CVS
composer require vendor/package:dev-mainNoBehavior depends on the policy's pending JFrog Catalog update configurationIf the policy is set to block pending packages: HTTP 403 for <package url>, aborting.
composer removeYesMay trigger the compliant version calculation and install the next compliant version for affected dependencies
composer outdated or composer show -loYesLists the next compliant version

Alpine

The following table describes apk client behavior when Compliant Version Selection is enabled.

Command or ScenarioCVS SupportedExpected Behavior When the Latest Version Is BlockedCLI Output
apk update (latest blocked, older version cached in JFrog Artifactory)YesFiltered 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, blockedThe 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)YesThe highest compliant cached version installs.No error
apk update && apk add <pkg> (latest blocked, no cached fallback)NoThe 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)NoCVS 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)NoThe package stays in the index at the blocked version. Download is blocked by Curation.HTTP 403: Forbidden
apk upgrade (latest blocked, cached fallback exists)YesUpgrade 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/repositories points 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-.apk download curation.
  • Substitution depends on the cache. When a recent package version is blocked, CVS looks for the newest non-blocked version among .apk files 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 .apk download time by existing per-file Curation controls.
  • Requests for Alpine's newer V3 packages.adb index 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 CommandCVS EnabledExpected Behavior (Latest Version Blocked)Expected Output or Error Message

Search Extension in UI

For example, typing in the Extensions view

YesBlocked 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 UIYesLists the latest compliant version.No errors.

Install Specific Version (via Dropdown)

Selecting a blocked version

YesNewer 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 UpdateYesCVS 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 ScenarioCVS SupportedExpected Behavior When the Latest Version Is BlockedCLI Output
sbt update (dynamic version 2.+, latest blocked)YesResolves to the latest compliant version. The blocked version is removed from maven-metadata.xml.No error
sbt compile or sbt runYesSame as sbt update.No error
sbt update with version range [2.0,3.0), latest in range blockedYesResolves to the highest compliant version within the range.No error
sbt update with a version range where no compliant version existsNoAll 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)NoCoursier 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.releaseYesResolves to the next compliant release version.No error
sbt update with all versions of a package blocked (product rule)NoFull 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 updateYesForces 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)YesShows 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 evictedYesShows evictions only among compliant versions.No error

Cargo

The following table describes Cargo client behavior when Compliant Version Selection is enabled.

Command or ScenarioCVS SupportedExpected Behavior
cargo add <crate> with no versionYesResolves and pins the newest compliant version. The blocked version is skipped.
cargo add <crate>@<exact-blocked-version>YesErrors. The blocked version is reported as nonexistent, not as blocked.
cargo updateYesRe-resolves the lockfile on each run to the compliant version.
cargo generate-lockfileYesThe first resolve pins the compliant version.
cargo fetchYesDownloads only the compliant version.
cargo build, cargo check, or cargo testYesA fresh resolve selects the compliant version.
cargo searchNoShows blocked version metadata. This output is informational only.
cargo vendorNoBypasses Curation and fetches directly from crates.io.

Frequently Asked Questions

This section provides answers to frequently asked questions about Compliant Version Selection behavior.

plusFAQs
Q: Does 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?

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


Did this page help you?