Dependency Vulnerability Scanner — Lockfile CVE Check avatar

Dependency Vulnerability Scanner — Lockfile CVE Check

Pricing

from $0.025 / actor start

Go to Apify Store
Dependency Vulnerability Scanner — Lockfile CVE Check

Dependency Vulnerability Scanner — Lockfile CVE Check

Enterprise-grade dependency vulnerability scanning via Google OSV.dev. 14 manifest formats across 9 ecosystems with CVE aliases, CVSS v3 severity, fix versions, CISA KEV flagging, CI gate mode, and SBOM export. Per-success charging. Ideal for CI security gates.

Pricing

from $0.025 / actor start

Rating

0.0

(0)

Developer

Perry AY

Perry AY

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

19 days ago

Last modified

Categories

Features

Limited permissions

Share

Dependency Vulnerability Scanner 🛡️ — Lockfile CVE Check

Enterprise lockfile vulnerability scanning against the free OSV.dev database — 14 manifest formats, 9 ecosystems, CVE aliases, CVSS severity, fix versions, and CISA KEV flagging in one run.

Dependency Vulnerability Scanner reads the lock files and manifests you already have — package-lock.json, yarn.lock, pnpm-lock.yaml, requirements.txt, Pipfile, poetry.lock, go.mod, Cargo.lock, pom.xml, build.gradle, composer.lock, Gemfile.lock, pubspec.lock, mix.lock — and checks every pinned dependency against the Google OSV.dev vulnerability database. No API key, no manual package entry, no agent setup: pass a lockfile inline or by URL, or a list of packages, and get structured findings with CVE aliases, CVSS v3 severity, the first known-fixed version, and a CISA Known Exploited Vulnerabilities flag.

Unlike manual package-query tools, this actor parses the manifest files themselves, so it slots straight into CI pipelines, scheduled repository audits, and compliance reporting without any pre-processing. Failed parses and failed queries are never charged, and every finding row carries the source manifest it came from.


✨ Features

  • 14 manifest formats across 9 ecosystems — npm (package-lock.json, yarn.lock v1, pnpm-lock.yaml), PyPI (requirements.txt, Pipfile, poetry.lock), Go (go.mod), Rust (Cargo.lock), Maven (pom.xml, build.gradle), PHP/Composer (composer.lock), RubyGems (Gemfile.lock), Dart (pubspec.lock), Elixir (mix.lock).
  • Free, keyless vulnerability data — OSV.dev querybatch API (Google; 100 packages per request, retried once) with parallel advisory detail fetches, plus the CISA KEV catalog fetched once per run when check_kev=true.
  • Real CVSS v3 scores — base scores are computed locally from OSV's CVSS v3 vectors (FIRST formula), falling back to OSV's database severity label. No hand-waved "high/medium/low".
  • Duplicate advisories collapsed — the same vulnerability imported under multiple IDs (GHSA / PYSEC / RUSTSEC / SNYK) is deduplicated to one finding, keeping the richest copy.
  • Most severe first — findings are sorted CRITICAL → LOW before the per-package cap, so max_vulns_per_package can never silently cut a CRITICAL advisory.
  • Three modes — single-manifest (one inline file), batch-manifests (many inline files and/or URLs), package-query (direct ecosystem/name/version list).
  • CI-ready — ci_format emits a gate row (pass=false on any CRITICAL finding) and fail_on_critical fails the run after all rows are pushed.
  • SBOM export — export_sbom emits a machine-readable row listing every scanned package with its source manifest.
  • Honest billing — manifest-scan charges only successfully parsed manifests, package-query only packages OSV actually answered. Parse errors, fetch failures, and OSV errors are never charged.
  • Per-source attribution — in batch mode every finding names the manifest file it came from, so multi-repo audits stay traceable.

🚀 Quick Start

Input — scan a pinned urllib3 (a real vulnerable version):

{
"mode": "single-manifest",
"manifest_filename": "requirements.txt",
"manifest_content": "urllib3==1.26.0"
}

Output — one finding row per vulnerability (most severe first), then a summary row. The rows below are a real OSV response for urllib3 1.26.0:

{
"type": "finding",
"source": "requirements.txt",
"ecosystem": "PyPI",
"package": "urllib3",
"installed_version": "1.26.0",
"osv_id": "GHSA-www2-v7xj-xrc6",
"cve_ids": ["CVE-2018-20060"],
"summary": "Exposure of Sensitive Information to an Unauthorized Actor in urllib3",
"details": "An issue was discovered in urllib3... (truncated to 500 chars)",
"cvss_v3": 9.8,
"severity": "CRITICAL",
"kev": false,
"fixed_version": "1.23",
"introduced_version": "0",
"references": [
"https://nvd.nist.gov/vuln/detail/CVE-2018-20060",
"https://github.com/urllib3/urllib3/issues/1316",
"https://github.com/urllib3/urllib3/pull/1346"
]
}
{
"type": "summary",
"manifests_parsed": 1,
"manifests_failed": 0,
"packages_scanned": 1,
"total_findings": 10,
"critical": 1,
"high": 9,
"medium": 0,
"low": 0,
"kev_findings": 0
}

urllib3 1.26.0 has 22 unique advisories in OSV; the default max_vulns_per_package cap of 10 keeps the ten most severe (1 CRITICAL + 9 HIGH above). Raise the cap to see all of them.

Batch example — scan manifests fetched from raw URLs:

{
"mode": "batch-manifests",
"manifest_urls": [
"https://example.com/repo-a/package-lock.json",
"https://example.com/repo-b/go.mod"
],
"check_kev": true
}

Input Parameters

FieldTypeRequiredDefaultDescription
modeselectnosingle-manifestsingle-manifest, batch-manifests, or package-query.
manifest_filenamestringnorequirements.txtFilename of the manifest in single-manifest mode; drives format detection.
manifest_contentstringno—Full manifest text in single-manifest mode.
manifest_urlsarray of stringsno[]batch-manifests mode: URLs to download manifests from (max 5 MB each).
manifestsarray of objectsno[]batch-manifests mode: inline {filename, content} objects.
ecosystemselectnoautopackage-query mode: ecosystem for packages that do not carry one (auto requires per-package ecosystems). Internal labels are mapped to OSV's canonical names (npm, PyPI, Go, crates.io, Maven, Packagist, RubyGems, Pub, Hex).
packagesarray of objectsno[]package-query mode: {name, version, ecosystem} entries checked directly against OSV.
check_kevbooleannotrueFetch the CISA KEV catalog once per run and flag matching findings.
max_vulns_per_packagenumberno10Cap on finding rows per package per source manifest (1–100), applied after severity sorting and dedupe.
fail_on_criticalbooleannofalseFail the run (after pushing all rows) when any CRITICAL finding exists.
export_sbombooleannofalseEmit an sbom row listing every scanned package.
ci_formatbooleannofalseEmit a ci gate row (pass=false on any CRITICAL finding).

All fields are optional; missing input degrades gracefully (an explanatory manifest_error row plus a zeroed summary, no crash).

Output Format

Finding row (one per vulnerability, most severe first, capped per package):

FieldTypeDescription
typestringAlways "finding".
sourcestringManifest filename/URL (or package name in package-query mode).
ecosystemstringInternal ecosystem label: npm, PyPI, golang, cargo, maven, Composer, rubygems, pub, or hex.
packagestringPackage name (maven coordinates are groupId:artifactId).
installed_versionstring | nullPinned version, or null for range-only manifests.
osv_idstringOSV.dev identifier (GHSA-... / OSV-... / RUSTSEC-...).
cve_idsarrayCVE aliases of the OSV entry (non-CVE aliases like PYSEC are deduplication keys, not emitted).
summarystringOSV summary (truncated to 200 chars).
detailsstringOSV description (truncated to 500 chars).
cvss_v3number | nullCVSS v3 base score computed from OSV's vector, or null when the advisory carries no v3 vector.
severitystringCRITICAL, HIGH, MEDIUM, LOW, or UNKNOWN.
kevbooleanTrue when a CVE alias is in the CISA KEV catalog.
fixed_versionstring | nullFirst fixed version per OSV ranges, or null when no fix is known or the fix is recorded only as a git commit.
introduced_versionstring | nullVersion the vulnerability was introduced in ("0" = affected since the first published version, OSV convention).
referencesarrayUp to 3 advisory URLs.

Manifest error row: {type, source, error} — unsupported format, fetch failure, parse failure, or invalid package-query entry. Never charged.

SBOM row (when export_sbom=true): {type: "sbom", packages_count, packages} — every scanned package with source, ecosystem, package, version.

CI row (when ci_format=true): {type: "ci", pass, gate: "critical", critical_count}.

Summary row (always last): {type, manifests_parsed, manifests_failed, packages_scanned, total_findings, critical, high, medium, low, kev_findings}.

API Usage

Run the actor via the Apify API (replace example.com with your Apify API host and *** with your token):

cURL

# Scan an inline requirements.txt
curl -X POST "https://example.com/v2/acts/dependency-vulnerability-scanner/runs" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ***" \
-d '{"mode":"single-manifest","manifest_filename":"requirements.txt","manifest_content":"urllib3==1.26.0"}'
# Batch-scan manifests from URLs with KEV flagging
curl -X POST "https://example.com/v2/acts/dependency-vulnerability-scanner/runs" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ***" \
-d '{"mode":"batch-manifests","manifest_urls":["https://example.com/repo/package-lock.json"],"check_kev":true}'
# Direct package query
curl -X POST "https://example.com/v2/acts/dependency-vulnerability-scanner/runs" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ***" \
-d '{"mode":"package-query","packages":[{"name":"lodash","version":"4.17.20","ecosystem":"npm"}]}'

Python

import requests
API_TOKEN = "<APIFY_TOKEN>"
ACTOR_URL = "https://example.com/v2/acts/dependency-vulnerability-scanner/runs"
headers = {"Content-Type": "application/json", "Authorization": f"Bearer {API_TOKEN}"}
# Scan a lockfile
response = requests.post(ACTOR_URL, headers=headers, json={
"mode": "single-manifest",
"manifest_filename": "package-lock.json",
"manifest_content": open("package-lock.json").read(),
})
run_id = response.json()["id"]
# Poll the dataset for rows
dataset = requests.get(
f"https://example.com/v2/acts/dependency-vulnerability-scanner/runs/{run_id}/dataset/items",
headers=headers,
).json()
for row in dataset:
if row["type"] == "finding" and row["severity"] in ("CRITICAL", "HIGH"):
print(row["package"], row["osv_id"], row["fixed_version"])

Use Cases

  1. CI dependency gates — run ci_format=true + fail_on_critical=true on every PR; the pipeline fails on CRITICAL findings after the full report lands in the dataset.
  2. Scheduled lockfile audits — a weekly cron over every repo's lockfile URL catches newly disclosed CVEs in pinned versions the moment OSV indexes them.
  3. Security triage prioritization — kev=true findings are actively exploited in the wild (CISA catalog); sort by those first, then CVSS score.
  4. SBOM generation — export_sbom=true produces a structured package inventory with source attribution for multi-repo audits and vendor reviews.
  5. Compliance evidence — the dataset is a durable, per-manifest audit trail (package, version, vulnerability, fix version, references) suitable for SOC 2 / ISO 27001 evidence packs.

MCP Integration

Dependency Vulnerability Scanner is available as a remote MCP server. Connect with OAuth using a URL-only configuration — no client ID or secret needed in the client config:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com"
}
}
}

Alternatively, authenticate with a Bearer token:

{
"mcpServers": {
"apify": {
"url": "https://mcp.apify.com",
"headers": {
"Authorization": "Bearer YOUR_APIFY_TOKEN"
}
}
}
}

Example prompts:

  1. "Scan this requirements.txt for known vulnerabilities: urllib3==1.26.0"
  2. "Check if package lodash@4.17.20 on npm has any CISA KEV flagged advisories"

On first connection, your browser opens to sign in to Apify and authorize access.

Learn more: https://mcp.apify.com and https://docs.apify.com/integrations/mcp

FAQ

Q: Which ecosystems are supported? A: Nine: npm, PyPI, Go, Rust (crates.io), Maven, PHP (Packagist/Composer), RubyGems, Pub (Dart), and Hex (Elixir) — covering 14 manifest and lockfile formats listed in the Features section. The actor maps its internal ecosystem labels to OSV's canonical, case-sensitive names automatically.

Q: Do I need an API key for the vulnerability data? A: No. OSV.dev (Google) is free and keyless, and the CISA KEV feed is a public JSON file. The actor makes exactly three kinds of outbound calls: OSV querybatch (IDs, chunks of 100, retried once), parallel GETs for advisory details, and one KEV fetch per run when check_kev=true.

Q: How is the severity score computed? A: When the advisory carries a CVSS v3 vector, the base score is computed locally using the standard FIRST formula (the same math behind CVSS calculators). If no v3 vector exists, OSV's own database severity label is used. UNKNOWN is rare and means neither source had severity data.

Q: Why do I see fewer findings than OSV's website shows for a package? A: Two reasons, both deliberate. First, the same advisory is often imported into OSV under several IDs (GHSA, PYSEC, RUSTSEC, SNYK) — those duplicates are collapsed into one finding. Second, max_vulns_per_package (default 10) caps rows per package; the cap is applied after sorting by severity, so you always keep the worst ones.

Q: What does kev: true mean? A: At least one CVE alias of the finding appears in CISA's Known Exploited Vulnerabilities catalog — it has been used in real attacks. Example: log4j-core 2.14.0 matches CVE-2021-44228 (Log4Shell), which is in the KEV catalog. Prioritize these above raw CVSS score.

Q: How is fixed_version computed? A: From the OSV affected ranges: the first fixed event in any range. It is null when no fix exists yet, or when OSV records the fix only as a git commit hash (commit shas are not publishable versions and are deliberately dropped).

Q: What does introduced_version: "0" mean? A: OSV's convention for "affected since the first published version" — there is no clean lower bound to report.

Q: Why does my Yarn Berry (v2+) lockfile fail? A: Yarn Berry .yarn.lock files use a different format that cannot be mapped to exact installed versions reliably. The actor detects the __metadata: header and returns a clear manifest_error row instead of silently wrong results. Use a Yarn v1 lockfile, or export a static lockfile with yarn install --mode=update-lockfile equivalents.

Q: Does it scan Docker images or running services? A: No. v1 scans dependency manifest and lock files only. Container image scanning would need a different data source (image layers / SBOMs).

Q: Can it read private repository lockfiles? A: Inline content always works (paste the file text). URLs must be publicly fetchable — authenticated or private-network URLs are not supported in v1.

Q: How is billing counted? A: manifest-scan per successfully parsed manifest, package-query per package OSV answers in package-query mode, plus one apify-actor-start per run. Optional sbom-export and ci-report fire once when enabled. Errors are free.

Q: What happens with empty or missing input? A: Graceful degradation: an explanatory manifest_error row and a zeroed summary, no crash, no charge beyond the start event.

Q: What does fail_on_critical do to my run? A: All rows (findings, errors, CI gate, summary) are pushed to the dataset first; then the run exits with a failure status if any CRITICAL finding exists. That makes it safe to use as a CI gate without losing the report.

Q: How accurate is the detection? A: The actor is a deterministic transport layer over OSV.dev: version extraction and range matching are OSV's responsibility. OSV conservatively includes advisories when it cannot normalize a version range, so occasional false positives are possible; false negatives are possible when OSV has not yet indexed a vulnerability. Always review the advisory references before acting.

Q: Why was my package not charged in package-query mode? A: Only packages OSV successfully answers incur package-query charges. Entries with a missing ecosystem (and no global override) or an unsupported ecosystem are rejected as manifest_error rows and never charged.

Q: What are the resource limits? A: Default run options are 512 MB memory and a 300-second timeout. Manifests over 5 MB are rejected per-file; for very large monorepos, split manifests across batch entries or runs.

SEO Keywords

dependency vulnerability scanner, lockfile CVE check, OSV.dev scanner, package-lock.json vulnerability scan, requirements.txt CVE check, Cargo.lock security audit, go.mod dependency audit, composer.lock vulnerability, Gemfile.lock CVE, CISA KEV checker, SBOM export, DevSecOps CI gate, SCA lockfile scanner, npm vulnerability audit, PyPI vulnerability scan.