Tools Reference
DepCheck exposes five tools. All are read-only: they look data up and return it; none mutate your project, your manifests, or any server-side state.
| Tool | One-liner |
|---|---|
check_package | Is this one version of a package published, and is it vulnerable? |
scan_dependencies | Which packages in this whole manifest or lockfile are vulnerable, or do not exist? |
suggest_safe_version | What is the newest version with zero known advisories? |
get_advisory | Full detail (CVSS, ranges, refs) for one advisory ID. |
get_cve_intel | Is this CVE known to be exploited (CISA KEV), or predicted to be (EPSS)? |
Every answer is text in two parts: a one-line verdict that a person or a
model can act on, then a JSON block with the same facts for programs.
get_advisory returns the JSON block only. When you automate, read the JSON
rather than the wording of the verdict.
The examples below are based on real DepCheck responses from versions before
0.4.2, shortened where marked. A 0.4.2 answer also carries the newer fields
described in the tables, such as advisories_as_of and score_source.
Advisory data changes every day, so your results will differ.
How current the advisory data is
Every check_package, scan_dependencies, suggest_safe_version and
get_advisory answer carries advisories_as_of, the date of the advisory data
it used. Line 1 of the verdict says the same in words (get_advisory has the
field only):
advisories_as_of | Sentence on line 1 | Meaning |
|---|---|---|
2026-10-08T09:49:00Z (RFC 3339, UTC) | Advisory data as of 2026-10-08 09:49 UTC. | The answer came from Cert-IX's advisory mirror, as osv.dev had published the data at that time (the oldest copy, if an answer used more than one). What osv.dev published, changed or withdrew after that time is not reflected. |
live osv.dev | Advisory data: live from osv.dev. | Only osv.dev answered directly: an ecosystem the mirror does not hold, a version it cannot decide, or a local instance without the mirror. Live answers are cached in memory for up to an hour. |
| absent | none | No advisory lookup was made, for example for a manifest with no dependency to check. |
The hosted mirror re-syncs with osv.dev every 6 hours, so its data is
normally at most about 6 hours old. If the mirror falls a day behind, DepCheck
answers every lookup from osv.dev directly until it catches up, and
advisories_as_of reads live osv.dev; no request fails because of it.
An advisory that its publisher has withdrawn is never counted against a version, nor against an upgrade target, whichever source answered.
check_package
Check one package version: whether it is published, and which known advisories affect it. This is the tool to call before adding or pinning a dependency.
Parameters
| Name | Required | Description |
|---|---|---|
ecosystem | ✅ | npm, Go, PyPI, crates.io, Maven, RubyGems, Packagist, NuGet, Hex, Pub. Aliases python, rust, java are accepted. |
name | ✅ | Exact published name: lodash, @scope/pkg, github.com/gin-gonic/gin, org.apache.logging.log4j:log4j-core. At most 512 bytes: a longer name is refused with an error and never sent anywhere. |
version | ✅ | Concrete version (4.17.20, or v1.9.0 for Go). Range operators (^, ~, >=) are reduced to their lower bound. Outside Go, a leading v is dropped (v2.14.1 is checked as 2.14.1); a Go version without one gets it. notes reports every such change. |
full | ➖ | true lists every advisory instead of the top 15. Default false. |
Example
{ "ecosystem": "npm", "name": "lodash", "version": "4.17.20" }
Verdicts
The verdict starts with one of five words. Only OK means the version is fine to
use. The JSON field existence gives the registry part of the answer.
| Verdict | What it means | What to do | existence |
|---|---|---|---|
| VULNERABLE | Known advisories affect this version. | Do not use it. Move to recommended_min_version, or ask suggest_safe_version. | any |
| OK | No known advisories, and deps.dev confirms that the package and this version are published on the public registry. | Use it. | found |
| NOT FOUND | The registry has no package with this name, usually a typo, or a name an AI model made up. | Do not install it. Zero advisories mean nothing for a package that does not exist. | package_not_found |
| VERSION NOT FOUND | The package exists, but this version was never published; for a range, no published version lies inside it. The verdict names the registry's default version when there is one. | Pick a published version. | version_not_found |
| CANNOT VERIFY | No known advisories, but whether the package and version exist could not be established: deps.dev could not be reached, it does not cover the ecosystem (Packagist, Hex and Pub), it has not indexed the version (some Go pseudo-versions), or, for a range, some published versions could not be compared with it. For NuGet, also when the id is written in a case that no advisory record confirmed (spelling_unsettled: true; see below). | Treat it as unchecked, not clean: confirm the exact name and version in the registry before installing. | unverified (with spelling_unsettled, the registry's answer, usually found) |
- The version must match as the package manager reads it. Maven and
crates.io match a version literally:
com.google.code.gson:gsonpublishes2.10, so2.10.0reads VERSION NOT FOUND. Go matches literally too, plus the+incompatiblesuffix the go command adds itself. npm ignores a leadingv. PyPI, NuGet and RubyGems apply their own version equality (in PyPI,1.0and1.0.0are the same release). - A range must contain a published version. For a range such as
^1.2.3, the registry check asks whether a published version lies inside the range, under the ecosystem's own operators: caret (^), tilde (~; Composer reads it like~>), the pessimistic~>(RubyGems) and~=(PEP 440), wildcards (1.2.*,1.x), explicit upper bounds (>=1.2, <2), npm hyphen ranges (1.2.3 - 2.3.4), and, in aCargo.toml, a bare version such as0.5, which Cargo reads as^0.5. Soreact^17.99.0reads VERSION NOT FOUND although React 18 and 19 are published: no release lies between 17.99.0 and 18.0.0. A range with no upper bound (>=1.2) needs a published version at or above its lower bound; for alternatives (a || b), the first one's lower bound is used, with no upper bound. Pre-releases count only when the lower bound is itself a pre-release. - A private package from an internal registry usually reads NOT FOUND (CANNOT VERIFY for Packagist, Hex and Pub): the check only sees public registries.
- NuGet ids and letter case. nuget.org ignores case in package ids, but
osv.dev matches an id only as its advisory records spell it:
Newtonsoft.Json12.0.1 has an advisory there (GHSA-5crp-9r3c-p9vr),newtonsoft.json12.0.1 has none. When DepCheck holds advisory records of the package, it asks osv.dev with the spellings they use. When it holds none, it asks osv.dev directly with the id as you wrote it, and that never confirms the spelling, even when osv.dev returns advisories: records of one package can spell the id differently, and osv.dev answers each spelling only with the records that use it. The advisories it returns are reported as usual, but a VULNERABLE answer then says, on line 1 and innotes, that its advisory list may be incomplete, because records that spell the id otherwise were not asked about. Zero advisories are not a clean result:check_packageanswers CANNOT VERIFY withspelling_unsettled: true, and a scan counts the dependency as not fully checked.suggest_safe_versionthen recommends no release, and an upgrade target osv.dev was asked about that way isunverified, neververified. Look the id up on osv.dev exactly as nuget.org spells it before you install. - A VULNERABLE verdict also warns when the registry no longer lists the
package or the version: it may have been removed, for example as malware. It
does not wait for a slow registry: after a quarter of a second it is returned
with
existenceunverified.
Response
VULNERABLE: [email protected] (npm) — 5 advisories (2 High, 3 Medium). Do not use this version — upgrade to >= 4.18.0 (verify with suggest_safe_version).
{
"package": "lodash",
"ecosystem": "npm",
"version": "4.17.20",
"existence": "found",
"registry": "the npm registry",
"advisories": [
{
"id": "GHSA-35jh-r3h4-6jhm",
"aliases": ["CVE-2021-23337", "CVE-2026-4800"],
"severity": "High",
"score": 7.2,
"summary": "Command Injection in lodash",
"fixed_in": ["4.17.21"],
"ref": "https://nvd.nist.gov/vuln/detail/CVE-2021-23337",
"primary_cve": "CVE-2021-23337",
"group": "CVE-2021-23337"
},
{
"id": "GHSA-r5fr-rjxr-66jc",
"aliases": ["CVE-2021-23337", "CVE-2026-4800"],
"severity": "High",
"score": 8.1,
"summary": "lodash vulnerable to Code Injection via `_.template` imports key names",
"fixed_in": ["4.18.0"],
"ref": "https://nvd.nist.gov/vuln/detail/CVE-2026-4800",
"primary_cve": "CVE-2026-4800",
"group": "CVE-2026-4800"
}
// … 3 more advisories
],
"recommended_min_version": "4.18.0",
"intel_freshness": { "kev_as_of": "2026-10-02", "kev_stale": false, "epss_as_of": "2026-10-02", "epss_stale": false },
"recommended_min_version_status": "verified"
}
| Field | Meaning |
|---|---|
existence, registry | The registry check behind the verdict (see Verdicts), and which registry was asked. |
existence_detail | Why existence could not be established, or a note on a range whose lower bound is not itself a release. |
registry_default_version | With version_not_found: the registry's default version, when deps.dev reports one. |
advisories[] | Each advisory: id, aliases (CVE IDs), severity (Critical, High, Medium, Low, or Unknown when no CVSS score is published; treat that as unreviewed, not low), score, score_source, summary, fixed_in, ref, primary_cve, group, and on the hosted endpoint exploitation and exploited_note. Known-exploited advisories sort first, then by severity. |
score_source | What severity and score come from: the advisory's CVSS v4.0 vector when it has one (CVSS v4.0), else its v3.1, v3.0 or v2.0 vector (CVSS v3.1, CVSS v3.0, CVSS v2.0), else the severity label its publisher gives, with no score (GitHub severity label, or publisher severity label for another database). Omitted when the severity is Unknown. A v4.0 score can differ from the v3.1 score on the NVD page that ref often points to: activestorage GHSA-p9fm-f462-ggrg reads Low 2.3 (v4.0) where NVD shows 6.5 Medium (v3.1). |
primary_cve | The CVE this advisory is itself about, taken from the advisory's own data (its NVD reference), not from its aliases. Upstream aliases can list another advisory's CVE too: in the example, both lodash advisories list both CVEs. Use primary_cve to tell which CVE an advisory is. |
group | The vulnerability this entry is a record of: its CVE, or an advisory ID when it has none. Entries that share a group are one vulnerability, published by several databases. |
conflicts | Present when two records of one vulnerability disagree about this version; see One vulnerability, several records. |
exploitation | Hosted endpoint only: kev (on CISA KEV, known to be exploited in the wild) or high_epss (a high EPSS score, predicted likely to be exploited). See get_cve_intel. |
recommended_min_version | The smallest upgrade that is published, newer than your version, clear of every advisory listed, and for which the advisory source reports no advisory of its own. Omitted when there is none, including when no published release fixes some of the advisories: the target is then given in recommended_partial_version. |
recommended_partial_version | Given instead of recommended_min_version when no published release fixes some of your version's advisories: the target that clears all the others. recommended_min_version_remaining names the ones it leaves. A tool that reads only recommended_min_version therefore never picks a target that leaves an advisory open. |
recommended_min_version_status | verified, partial, unverified or no_fixed_version; see Upgrade targets. |
recommended_min_version_major_change | true when the target given (in either field) is on another major line than your version (for a range, its lower bound); see Upgrade targets. |
recommended_min_version_remaining | With recommended_partial_version: the IDs of your version's advisories that the target does not clear, because no published release does. |
recommended_min_version_advisories | With an unverified target: the advisories the advisory source reports for the target itself, when no release within the check limit (4 releases) is free of advisories. |
spelling_unsettled | NuGet only: true when no advisory was found under a spelling of the id that no advisory record confirmed. The verdict is then CANNOT VERIFY; see Verdicts. |
advisories_as_of | The date of the advisory data used; see How current the advisory data is. |
notes | How the input was normalised (a range reduced to its lower bound, a v dropped or added), list caps, why an upgrade target is unverified or partial, each disagreement between sources, and records that could not be compared. |
intel_freshness | Hosted endpoint only: the date of the KEV and EPSS data used, and whether it is stale. When kev_stale or epss_stale is true, a missing exploitation flag is not evidence that nothing is exploited, and stale_reasons says why (see Why exploitation data is not current). failed_sources (with lookup_failed) names a source whose lookup failed, and makes its *_stale field true; unchecked_advisories counts advisories whose exploitation status was not looked up, and makes both true. |
One vulnerability, several records
Several databases publish advisories: GitHub (GHSA-…), PyPA (PYSEC-…), Go
(GO-…), RustSec; and one vulnerability often has a record in more than one of
them. DepCheck lists every record that affects your version, and the records of
one vulnerability share a group. When there are fewer vulnerabilities than
records, line 1 says so:
— 5 advisories (3 distinct vulnerabilities; 1 High, 2 Medium, 2 Unknown).
Records of one vulnerability can disagree about your version: on the release that
fixes it, or on whether your version is affected at all. DepCheck compares them
(including other databases' records that are missing from the answer because they
do not count your version as affected) and reports each disagreement in
conflicts, with a sentence on line 1. The upgrade target is checked against
every record, and the note says whether it clears both:
VULNERABLE: [email protected] (PyPI) — 7 advisories (4 distinct vulnerabilities; 5 Critical, 2 Medium). Do not use this version — upgrade to >= 1.10.0 (verify with suggest_safe_version). ⚠ Sources disagree: PYSEC-2026-221 and GHSA-qrpv-q767-xqq2 (CVE-2026-55255) give different fixed versions (1.9.2 vs 1.9.1), and only PYSEC-2026-221 counts 1.9.1 as affected — the upgrade target 1.10.0 clears both.
{
// … package, existence, advisories, recommended_min_version
"conflicts": [
{
"ids": ["PYSEC-2026-221", "GHSA-qrpv-q767-xqq2"],
"cve": "CVE-2026-55255",
"differs": "fixed_version",
"values": ["1.9.2", "1.9.1"],
"affects_version": [true, false],
"note": "sources disagree: PYSEC-2026-221 and GHSA-qrpv-q767-xqq2 (CVE-2026-55255) give different fixed versions (1.9.2 vs 1.9.1), and only PYSEC-2026-221 counts 1.9.1 as affected — the upgrade target 1.10.0 clears both."
}
]
}
In each conflict, ids names the two records (one from advisories first),
differs is fixed_version or affected_range, values gives what each record
says, and affects_version whether each counts your version as affected. When
records disagree on more than one vulnerability, line 1 gives how many, and the
first disagreement. DepCheck reads a limited number of other records per call
(10, or 40 with full=true; 40 and 160 per scan); when some could not be
compared, notes says so.
Upgrade targets
check_package (recommended_min_version) and scan_dependencies
(upgrade_to) recommend the smallest version that:
- is newer than the version you have, in the ecosystem's own version ordering, never a downgrade;
- is published on the registry, checked against deps.dev's version list: advisories sometimes name a fix that was never released;
- is affected by none of the advisories listed, nor by the other records of the same vulnerabilities that DepCheck compared: the highest of their fixes can still fall inside another advisory's range;
- has no advisory of its own according to the advisory source: DepCheck asks about the candidate release itself, and an advisory reported for it counts against it even when that advisory's version ranges, as DepCheck reads them, do not cover it. A withdrawn advisory never counts.
When the version the advisories name fails one of these tests, DepCheck walks forward to the next published release that passes them all, and the note says why.
An advisory whose range ends with last_affected names no fixed version, but
the first published release after that bound is outside the range and counts
as its fix (http-cache-semantics GHSA-ch52-4w7c-c8xp: last affected 4.2.0, fix
4.3.0). If the release list cannot be read, such an advisory leaves the target
unverified, never no_fixed_version. A release its publisher deprecated is
not chosen as the target while a later release that is not deprecated clears
the advisories as well (lodash 4.18.0, published as a "Bad release", gives way
to 4.18.1). When only deprecated releases clear them, the target is kept and
its note says it is deprecated.
The status says how far it got:
| Status | Meaning | What to do |
|---|---|---|
verified | Published, newer, clear of every advisory listed and every other record compared, and the advisory source reports no advisory for it. | Upgrade to that version. |
partial | As verified, except that some advisories have no fix: none names a fixed version above yours, or no published release at or above their fix clears them. The target, which clears every other advisory, is given as recommended_partial_version / upgrade_partial_to (never as recommended_min_version / upgrade_to), and recommended_min_version_remaining / upgrade_remaining list the advisories it leaves. For a Go module, the note names the import paths a remaining advisory is limited to. Example: golang.org/x/crypto v0.4.0 gets v0.56.0, which clears 40 of its 41 advisories; GO-2026-5932 (the unmaintained openpgp package) has no fix. | Upgrade to the target, then deal with each remaining advisory: check whether your code uses what it affects (for Go, the import paths named), replace the package, or isolate the code path. |
unverified | A target is given, but it could not be confirmed as published (deps.dev unreachable, or an ecosystem it does not cover: Packagist, Hex, Pub), or could not be checked against every advisory's ranges, or the advisory source could not be asked about it; or the source reports advisories for it and no release within the check limit (4 releases) is free of them, in which case recommended_min_version_advisories / upgrade_target_advisories list them. In a scan, also when some of the package's advisories could not be fetched, unless the advisory source confirmed the target. For NuGet, also a target osv.dev was asked about only with the id as you wrote it (see Verdicts). An unverified target that leaves advisories open is given in the partial fields, as for partial. No target at all when none could be computed (no advisory names a fix above your version, and the release list could not be read to find the release after a last_affected bound; in a scan, also when none of the package's advisories could be read, or time ran out); upgrade_note says which. The verdict says UNVERIFIED and why. | Treat it as a lead: confirm it with check_package on that version, or with suggest_safe_version, before you pin it. |
no_fixed_version | No fixed version identified: no advisory names a fix above your version (for a range that ends with last_affected, no release is published after that bound), or no published release clears them all. The target is omitted. | Do not use the version: look for a clean release with suggest_safe_version, or consider another package. |
Maven variants. For a Maven version with a variant qualifier (guava's
-jre or -android), only releases of that variant are considered, or releases
without a qualifier when none of that variant is published at or above the fix,
never another variant. A version without a qualifier keeps to releases without
one, or, when every later release carries one, to the variant of the
registry's default version. When the registry's version list cannot be read,
the target is chosen among the versions the advisories name as fixed, in your
variant (guava 29.0-jre: the advisories name 32.0.0-android, the target is
32.0.0-jre), and is unverified.
Major-version upgrades. recommended_min_version_major_change (in check_package) and upgrade_major_change (on each scan_dependencies row) are true when the target, full or partial, is on another major line than the version checked (yours, or a range's lower bound): the first release number or the PEP 440 epoch differs, the second for 0.x, the third for 0.0.z. The verdict says so as well. Check the release notes before upgrading, because such a target may include breaking changes. Calendar-versioned packages (2023.x to 2024.x) are flagged too and are usually drop-in. Example: actionpack 6.1.0 needs 7.0.8.7, because one advisory has no fix on the 6.1 line.
A verified target is checked against the advisories that affect your version
and against those the advisory source reports for the target itself. Releases
after it were not checked: before you pin a later one, check it with
check_package or let suggest_safe_version pick the newest clean release.
scan_dependencies
Scan an entire manifest or lockfile in one call. Use it when reviewing a service, after adding several dependencies, or to answer "are our deps safe?". The answer lists the vulnerable packages (each with an upgrade target) and the names or versions that do not exist; clean packages are just counted. Anything DepCheck could not check is stated first.
Parameters (hosted endpoint)
The hosted server has no access to your filesystem, so your agent reads the file and passes its text:
| Name | Required | Description |
|---|---|---|
manifest_content | ✅ | The full text of the file (at most 2 MiB). |
manifest_name | ✅ | The file name, which selects the parser; see Supported files. |
full | ➖ | true lists every advisory of every vulnerable package and every registry finding, instead of the capped lists: 5 advisories per package, the top 30 packages, 50 rows per registry list. Even then, one answer lists at most 2,000 advisory entries: the rest are counted in more_advisories, and the verdict says so. Default false. |
When you run DepCheck locally, scan_dependencies also accepts a
manifest_path (a filesystem path) as an alternative to manifest_content +
manifest_name.
Supported files
Prefer the lockfile when there is one: it pins the exact installed version of every package in the tree. A manifest lists your direct dependencies only; transitive dependencies are not resolved, so they are not checked.
| Ecosystem | Lockfiles (exact versions, full tree) | Manifests (direct dependencies only) |
|---|---|---|
| npm | package-lock.json (lockfileVersion 1, 2 and 3), yarn.lock (Yarn v1 and Berry), pnpm-lock.yaml, bun.lock | package.json |
| PyPI | poetry.lock, uv.lock, Pipfile.lock | requirements*.txt, pyproject.toml |
| crates.io | Cargo.lock | Cargo.toml |
| Maven | gradle.lockfile, buildscript-gradle.lockfile | pom.xml |
| Packagist | composer.lock | composer.json |
| RubyGems | Gemfile.lock, gems.locked | None |
| NuGet | packages.lock.json | None |
| Go | go.mod | None |
go.modlists, from Go 1.17 on, every module that provides a package your build imports.package.json:dependencies,devDependencies,optionalDependenciesandpeerDependenciesare read.package-lock.jsonwritten by npm 5 or 6 (lockfileVersion 1) is read from itsdependenciestree: every nested and bundled copy, npm aliases as the real package, at most 32 levels deep.pyproject.toml:[project]dependencies and optional dependencies, PEP 735[dependency-groups], uv's and PDM's development dependencies, and Poetry's dependencies, dev-dependencies and every[tool.poetry.group.<name>]are read.requirements*.txtis checked as written: it covers the full tree only when the file pins it (pip freezeorpip-compileoutput). A file included with-ris listed as skipped: scan it too.Pipfile.lock: every package category is read,default,develop, and custom categories such asdocs.pom.xml:${…}versions are resolved within the same file (its<properties>,${project.version}and${project.parent.version}) and versionless dependencies from its own<dependencyManagement>. A version that only a parent POM, an imported BOM, a profile or a-Dflag supplies is reported as skipped, and so are modules of the same multi-module build,-SNAPSHOTversions andsystem-scoped jars. Dependencies inside<profiles>are not read, and are not counted.composer.lock: a package installed from a VCS repository with a tagged version is checked as the Packagist release of that version. Development branches (dev-main,2.x-dev) and path repositories are skipped.pnpm-lock.yamland Berryyarn.lockfiles that use YAML anchors, aliases, merge keys or duplicate keys are refused with an error: package managers never write them.bun.lockb, Bun's binary lockfile, cannot be read: generatebun.lockwithbun install --save-text-lockfile.- Entries that do not come from a package registry (local paths, links,
workspace members, git, URLs, editable installs) and, in Cargo files, crates
from a registry other than crates.io have no public release to check. They are
listed under
skippedby name, with the reason and never with their URL, which can carry credentials; they are never checked as the registry package of the same name. The project itself (an editable., the root workspace, a gem's own gemspec) is left out. A file that cannot be parsed is an error, never an empty clean result. - A dependency whose name is longer than 512 bytes, or whose
version is longer than 256 bytes, is listed under
skippedwith the reason, counted as not checked, and never looked up.
Reading a scan
The verdict says, in this order:
- What was not checked. If any dependency was not checked, the verdict
starts with "X of Y dependencies NOT checked (reasons)": skipped by the
parser, or beyond the limit of 2,000 dependencies per scan. It reads "X of Y
dependencies NOT fully checked (reasons)" when some of them were checked for
advisories but their registry existence could not be verified, or, for NuGet,
the spelling of their id could not be confirmed (lockfile entries included;
see Verdicts). Either way the result is partial, not clean.
unchecked_countsays the same in the JSON. It is0when every dependency the parser read was fully checked; sections a parser does not read, such as<profiles>in apom.xml, are not counted. - VULNERABLE: how many of the checked dependencies have known advisories, with known-exploited ones first, how many upgrade targets are UNVERIFIED or missing, and on how many vulnerabilities the advisory databases disagree ("Sources disagree on N vulnerabilities (…); see conflicts in their rows.").
- NOT FOUND / VERSION NOT FOUND: dependencies without advisories whose name or version is not published (for a range: no published version lies inside it). Likely typos or invented names: do not install them.
- OK only when none of the above applies: "OK: 0 of N checked dependencies have known vulnerabilities (…)". With unchecked dependencies, the most a scan says is "No known vulnerabilities in the N checked dependencies (…), NOT a clean result while dependencies remain unchecked."
- Ranges. Every dependency declared as a version range was checked at its
lower bound only, and the verdict names it with the version it was checked
at: "1 dependency is a version range, checked only at its lower bound:
lodash ^4.17.20 (checked at 4.17.20); scan the lockfile for the installed
version." It names the first five;
declared_rangeslists them all. A range was checked, so it does not count inunchecked_count. - Coverage. For a manifest that lists direct dependencies only
(
package.json,pom.xml,Cargo.toml,composer.json,pyproject.toml), a "Coverage:" sentence says that transitive dependencies were not checked and which lockfile to scan instead. Requirements files get a similar sentence. The JSONcoveragefield carries the same note.
When a list was capped, the verdict ends by saying so, and how to get the rest.
Registry checks in a scan. Every dependency without known advisories is
looked up on deps.dev (a scan checks up to 2,000 dependencies). A version that
deps.dev confirmed as published in the last 24 hours is answered from memory, so
a project scanned again, by a CI job on every build for example, does not ask
deps.dev again. A lookup that cannot be completed in time counts as not
verified.
Entries of package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lock,
poetry.lock, uv.lock, Pipfile.lock, Cargo.lock, composer.lock,
Gemfile.lock, gradle.lockfile and packages.lock.json are not looked up: the
package manager resolved each one from a registry when it wrote the file. To
check that declared names exist, scan the manifest as well.
Response
A package.json with four dependencies, one of them a local path and one a
misspelled name:
1 of 4 dependencies NOT checked (1 skipped by the manifest parser: local-lib — local file: dependency (not a registry release)). VULNERABLE: 2 of 3 checked dependencies have known vulnerabilities (package.json (npm, declared ranges)). Fix by upgrading to the upgrade_to versions below. NOT FOUND: 1 dependency does not exist in the npm registry (checked via deps.dev); likely a typo or a hallucinated name — do not install: left-padd. If any is a private package from an internal registry, this public-registry check cannot see it. 1 dependency is a version range, checked only at its lower bound: lodash ^4.17.20 (checked at 4.17.20) — scan the lockfile for the installed version. Coverage: package.json lists direct dependencies only — transitive dependencies are not resolved, so they were NOT checked; scan package-lock.json, yarn.lock, pnpm-lock.yaml or bun.lock for the full installed tree.
{
"manifest": "package.json",
"kind": "package.json (npm, declared ranges)",
"total_dependencies": 4,
"checked": 3,
"unchecked_count": 1,
"unchecked": [{ "reason": "skipped_by_parser", "count": 1, "detail": "see skipped" }],
"vulnerable": [
{
"name": "lodash",
"version": "4.17.20",
"declared_minimum": true,
"severity_max": "High",
"upgrade_to": "4.18.0",
"advisories": [ /* 5 advisories, same shape as check_package */ ],
"upgrade_to_status": "verified"
},
{
"name": "express",
"version": "4.17.1",
"severity_max": "Medium",
"upgrade_to": "4.20.0",
"advisories": [ /* 2 advisories */ ],
"upgrade_to_status": "verified"
}
],
"not_found": [{ "name": "left-padd", "version": "1.3.0", "ecosystem": "npm", "registry": "the npm registry" }],
"skipped": [{ "name": "local-lib", "reason": "local file: dependency (not a registry release)" }],
"declared_ranges": [{ "name": "lodash", "ecosystem": "npm", "version": "4.17.20", "constraint": "^4.17.20", "upper_bound": "5.0.0" }],
"coverage": {
"direct_only": true,
"note": "package.json lists direct dependencies only — transitive dependencies are not resolved, so they were NOT checked; scan package-lock.json, yarn.lock, pnpm-lock.yaml or bun.lock for the full installed tree"
},
"notes": ["versions marked declared_minimum come from ranges (^/~/>=) — the installed version may already be newer; scan the lockfile for installed truth"]
// the hosted endpoint adds "intel_freshness", as in check_package
}
| Field | Meaning |
|---|---|
total_dependencies, checked, fully_checked | Dependencies found in the file; how many were checked for advisories (every "N checked" in the verdict); and how many of those were fully checked, that is, their registry existence was also established, or not needed (a lockfile entry, a dependency with advisories), and they are not in spelling_unsettled. total_dependencies = fully_checked + unchecked_count. |
unchecked_count | Always present: how many dependencies were not fully checked. 0 means that every dependency the parser read was fully checked. |
unchecked[] | One entry per reason (skipped_by_parser, over_scan_limit, existence_unverified, spelling_unsettled), with a count. |
vulnerable[] | name, version, declared_minimum (the version is a range's lower bound), severity_max (the highest severity among the advisories whose details were read; Unknown ranks below every scored level, and the list starts with exploited advisories, not always the most severe), exploitation, upgrade_to, upgrade_partial_to (instead of upgrade_to when no published release fixes some advisories), upgrade_to_status (verified, partial, unverified or no_fixed_version), upgrade_remaining (the advisories a partial target leaves), upgrade_target_advisories (the advisories reported for an unverified target itself), upgrade_major_change (true when the target given is on another major line), upgrade_note (why a target is unverified, partial or missing), advisories (each with its group and score_source), more_advisories when the list was capped, unfetched_advisories when some advisories' details could not be read (beyond 80 advisories per scan, or 400 with full=true, or a failed fetch), and conflicts when sources disagree about the version. See Upgrade targets. |
not_found[], version_not_found[] | Dependencies without advisories whose package, or version, is not published (registry_default_version when known). |
existence_unverified[] | Dependencies without advisories whose existence could not be established, with the reason. They count in unchecked_count. |
spelling_unsettled[] | NuGet dependencies without advisories whose id spelling no advisory record confirmed (see Verdicts), lockfile entries included. They count in unchecked_count. |
skipped[] | Dependencies the parser could not check, by name, with the reason. |
declared_ranges[] | Every dependency declared as a range: name, ecosystem, version (the lower bound it was checked at), constraint (the range as written), and upper_bound when the range has one (upper_inclusive when the bound itself is allowed, as with <=). |
coverage | For a file that cannot cover the whole tree: direct_only and a note. Omitted for lockfiles. |
notes, intel_freshness, advisories_as_of | As in check_package. |
Fix the dependencies flagged "exploitation": "kev" first (they are known
to be exploited), then high_epss. Upgrade each vulnerable package to its
upgrade_to version, or to its upgrade_partial_to version and then deal with
each advisory in upgrade_remaining; look at upgrade_note before acting on an
unverified target or a package with no fixed version.
suggest_safe_version
Get the newest version of a package that has zero known advisories. Use it to choose which version to add, or to pick the upgrade target for a vulnerable dependency; never hand-pick a version that might carry its own advisories.
Parameters
| Name | Required | Description |
|---|---|---|
ecosystem | ✅ | Same values as check_package. |
name | ✅ | Exact published package name, at most 512 bytes. |
include_prerelease | ➖ | Also consider alpha/beta/rc releases. Default false. |
Supported ecosystems for this tool: npm, Go, PyPI, crates.io, Maven, RubyGems, NuGet. It reads the published versions from deps.dev (the registry's default version first, then the newest), skips deprecated releases, and checks up to 12 candidates against the advisory data until one is clean.
- Pre-releases are judged in the ecosystem's own scheme: Maven's
-jreand-androidqualifiers mark releases, not pre-releases. - Maven variants. It keeps to one variant qualifier, that of the registry's
default version (guava:
-jre), given invariant, and the note names the other variants published. - No clean release. When none of the releases checked is free of advisories,
best_partialnames the one with the fewest andbest_partial_remaininglists them (for a Go module, with the import paths they are limited to). - NuGet. A release with no advisories under a spelling of the id that no
advisory record confirmed is not recommended: the answer is CANNOT VERIFY,
with
spelling_unsettled: true(see Verdicts). advisories_as_ofdates the advisory data used.
Response
Use [email protected] (npm) — newest version with zero known advisories.
{
"package": "express",
"ecosystem": "npm",
"recommended": "5.2.1",
"checked": [{ "version": "5.2.1", "advisories": 0 }]
}
checked lists every candidate tried, with its advisory count. When none of
them is clean, the verdict starts with WARNING: no known-safe recent version,
recommended is omitted, and a note explains. The newest clean version can be
a new major version: check that it suits your code.
get_advisory
Full detail for one advisory ID returned by the other tools: GHSA-…,
CVE-…, RUSTSEC-…, GO-…, or PYSEC-…. Use it to decide whether a reported
vulnerability actually matters for how your code uses the package.
Parameters
| Name | Required | Description |
|---|---|---|
id | ✅ | Advisory ID, e.g. GHSA-29mw-wpgm-hmr9 or CVE-2021-23337. |
Returns a JSON block: id, aliases, severity, score,
score_source (as in check_package), cvss_vector,
summary, details (up to 1,200 characters), affected (package and version
ranges per ecosystem), up to five references, published, modified,
withdrawn when the publisher withdrew the advisory, advisories_as_of (the
date of the advisory data, see How current the advisory data is),
and the identity fields below.
When several advisories claim one CVE
Pass a CVE and DepCheck returns the advisory that owns it. Upstream alias data
is not always a reliable identity: OSV lists GHSA-35jh-r3h4-6jhm
(CVE-2021-23337) and GHSA-r5fr-rjxr-66jc (CVE-2026-4800) as aliases of each
other, so each record claims both CVEs. DepCheck returns the advisory whose own
NVD reference is the CVE you asked for (otherwise the earliest published) and
says what else claimed it:
primary_cve: the CVE the returned advisory is itself about;also_claimed_by: the other advisories that list the identifier, present only when there are any;note: which advisories claim the identifier, and why this one was returned.
{
"id": "GHSA-35jh-r3h4-6jhm",
"aliases": ["CVE-2021-23337", "CVE-2026-4800", "GHSA-r5fr-rjxr-66jc"],
"severity": "High",
"score": 7.2,
"cvss_vector": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
"summary": "Command Injection in lodash",
"details": "`lodash` versions prior to 4.17.21 are vulnerable to Command Injection via the template function.",
"affected": [
{ "ecosystem": "npm", "package": "lodash", "ranges": ["0 → 4.17.21"] },
{ "ecosystem": "npm", "package": "lodash.template", "ranges": ["0 → <=4.5.0 (no fix)"] }
// … 3 more packages
],
"references": ["https://nvd.nist.gov/vuln/detail/CVE-2021-23337" /* … */],
"published": "2021-05-06T16:05:51Z",
"modified": "2026-09-10T03:49:04.067984836Z",
"primary_cve": "CVE-2021-23337",
"also_claimed_by": ["GHSA-r5fr-rjxr-66jc"],
"note": "CVE-2021-23337 is a CVE id, answered with the package advisory about it: upstream alias data lists 2 advisories for this identifier (GHSA-35jh-r3h4-6jhm, GHSA-r5fr-rjxr-66jc); returned GHSA-35jh-r3h4-6jhm, whose own NVD reference is CVE-2021-23337. Their aliases overlap, so the aliases alone do not say which advisory the identifier belongs to. GHSA-r5fr-rjxr-66jc is a different advisory, about CVE-2026-4800."
}
A CVE ID gets the same answer from the hosted endpoint and from a local instance
that asks osv.dev directly: the package advisory about that CVE. When no package
advisory is about it, the hosted endpoint can return an advisory that merely
lists it, with a note warning that it may be about another vulnerability, and a
local instance returns osv.dev's own record of the CVE. An advisory ID returns that advisory
itself. DepCheck never returns another
record silently: whenever the record returned is not the ID you asked for (for
example an ID that osv.dev no longer serves, answered with a record that lists it
as an alias), note says so. A withdrawn advisory carries its withdrawal
date in withdrawn, and note says that its publisher no longer considers it a
valid advisory.
get_cve_intel
Exploitation intelligence for a CVE: CISA KEV status (known to be exploited in the wild), the EPSS score and percentile (the predicted probability of exploitation), and NVD CVSS + CWE. Use it to prioritise: a KEV-listed CVE is being exploited and jumps the queue over higher-CVSS issues without that signal; a high EPSS score is a statistical prediction, not observed attack, and comes next.
Accepts a CVE ID, or a GHSA/GO/RUSTSEC/PYSEC advisory ID. An advisory ID
is resolved to its CVE aliases and to the CVEs its own NVD references name
(primary_cve, or every one when they name several); when it names none, to the
CVEs of every record of the same vulnerability that is linked to it, as
check_package and a scan look it up. note says where a CVE that is not an
alias came from (for a linked CVE, the record it comes from) and when a linked
record could not be read, and says so when the advisory was withdrawn by its
publisher (its severity then does not apply).
Parameters
| Name | Required | Description |
|---|---|---|
id | ✅ | CVE ID (CVE-2021-44228) or an advisory ID (GHSA-jfh8-c2jp-5v3q). |
Response
Intel for CVE-2021-44228: on CISA KEV — KNOWN EXPLOITED IN THE WILD. Fix immediately, ahead of higher-CVSS issues without that signal.
{
"query": "CVE-2021-44228",
"intel": [
{
"cve": "CVE-2021-44228",
"cisa_kev": true,
"kev_as_of": "2026-10-02",
"kev_date_added": "2021-12-10",
"kev_due_date": "2021-12-24",
"kev_ransomware_use": "Known",
"kev_required_action": "For all affected software assets for which updates exist, …",
"epss_score": 0.99999,
"epss_percentile": 1,
"cvss_score": 10,
"cvss_severity": "Critical",
"cwe_ids": ["CWE-20", "CWE-400", "CWE-502", "CWE-917"],
"data_available": true,
"epss_as_of": "2026-10-02"
}
]
}
Where the data comes from, and how fresh it is
DepCheck downloads the CISA KEV catalogue and the EPSS scores (published by
FIRST) itself. It checks the KEV catalogue every hour, with a conditional request
that downloads it again only when it has changed, so a CVE added to KEV shows up
within about an hour. It checks for new EPSS scores every 6 hours, also with a
conditional request: FIRST publishes one file a day, which DepCheck picks up
within about 6 hours. NVD CVSS and CWE come from Cert-IX's NVD data. Every record is dated:
kev_as_of is the release date of the KEV catalogue, epss_as_of the date of
the EPSS scores.
When the data is older than DepCheck's freshness limits, it says so instead of guessing:
kev_stale: true: a CVE that is missing from the KEV data reads KEV status UNKNOWN, never "not exploited", andcisa_kevis omitted rather thanfalse;epss_stale: true: the EPSS scores are dated in the verdict and may have risen since;data_available: false: no KEV, EPSS or NVD data for this CVE. That is not evidence that it is safe; the advisory's own severity still applies.
The same rule holds in check_package and scan_dependencies: when
intel_freshness reports stale data, a missing exploitation flag is not
evidence that nothing is exploited.
In those two tools, each advisory is looked up by its CVE aliases, its
primary_cve and the CVE of its group: osv.dev lists no CVE alias for some
records (GHSA-m425-mq94-257g and GO-2023-2153 are about CVE-2023-44487, which is
on CISA KEV). An advisory that names no CVE of its own is also looked up by the
CVEs of every record linked to it, directly or through records that name no CVE
either (a linked record with several CVEs and no primary one gives all of them),
not only the one that labels its group; in a scan, that includes a linked
record that another dependency's answer holds. get_cve_intel resolves such an
advisory to those CVEs too, naming the record each comes from, and in the
verdict a flag set that way counts under the CVE that set it, so the group
label does not inflate the count of known-exploited vulnerabilities. If a record
it lists, or a record naming no CVE that it is linked through, could not be
read, the advisory counts as not checked (advisories_not_checked). The verdict
counts distinct vulnerabilities, with the advisory records (and, in a scan, the
dependencies) they cover: "1 known-exploited vulnerability in the wild (CISA
KEV, 2 advisory records)".
Why exploitation data is not current
When kev_stale or epss_stale is true, intel_freshness.stale_reasons says
why. It is a sorted list of fixed values, present exactly when one of the two
flags is true:
| Value | Meaning |
|---|---|
kev_snapshot_old, epss_snapshot_old | The data is older than DepCheck's freshness limits. |
kev_freshness_unknown, epss_freshness_unknown | Its date could not be established. |
kev_lookup_failed, epss_lookup_failed | The lookup failed for this request; failed_sources names it too. |
advisories_not_checked | Some advisories were not looked up, and unchecked_advisories counts them: in a scan, advisories whose details were not fetched; in a scan or in check_package, an advisory that names no CVE of its own and lists as an alias a record (GHSA, PYSEC, GO, RUSTSEC or EEF) that could not be read. It sets both flags. |
With advisories_not_checked alone, the KEV and EPSS data are current
(kev_as_of, epss_as_of) and the verdict says so, without calling them
stale. To look the missing advisories up, call again with full=true (or split
the manifest if full=true was already set), or run check_package on the
dependencies that show unfetched_advisories.
get_cve_intel and the exploitation flags need Cert-IX's threat data, which
the hosted mcp.cert-ix.com/depcheck endpoint has. A local instance without it
(which then queries osv.dev directly) exposes the other four tools.
Prioritisation, in one rule
When several things are vulnerable, DepCheck's ordering encodes the priority:
kev: on CISA KEV, known to be exploited in the wild. Fix first, even over a higher raw CVSS.high_epss: predicted likely to be exploited. Fix next.- Critical / High severity: then by severity.
- Medium / Low: schedule.
Then move each package to the upgrade_to / recommended_min_version /
recommended version the tools give you. See Agent workflows
for how to wire this into an agent's editing loop.
¿Te resultó útil esta página?