Skip to main content
Ecosystem Guide

Check composer.lock, go.sum, Cargo.lock, and Gemfile.lock for Vulnerabilities Online

Sudhir P.7 min read

You can run a composer.lock security check, or scan go.sum, Cargo.lock, or Gemfile.lock, online without installing composer audit, govulncheck, cargo-audit, or bundler-audit. Paste the lockfile into a browser-based scanner and it checks pinned versions against known CVE databases in seconds; anonymous scans cover the first 10 packages. Keep each native CLI in CI: a hosted scan is the faster front door for one-off polyglot checks.

A polyglot team running PHP, Go, Rust, and Ruby services doesn't have one dependency scanning problem — it has four, each with its own CLI tool, its own advisory database, and its own learning curve. composer audit, govulncheck, cargo-audit, and bundler-audit are each the right recommended tool for their ecosystem, but none of them talk to each other, and installing all four just to check one service before a release is disproportionate. This guide covers one paste-and-scan flow that handles composer.lock, go.sum, Cargo.lock, and Gemfile.lock the same way, with no installation required for any of them.

No account is needed for a quick check, but an anonymous scan covers only the first 10 packages (and allows 3 successful scans per day per IP). Most lockfiles list more than that, so create a free account (no credit card) and verify your email to scan larger lockfiles: that lifts the 10-package cap and keeps scan history.

composer.lock Security Check (PHP / Packagist)

Paste composer.lock into a browser-based scanner and it checks the pinned PHP package versions against known CVEs — no composer audit install required, useful for a fast check on a codebase you haven't set up locally yet.

  1. Go to /scanner/packagist or the general /scan page.
  2. Open Paste Text (or Upload File) and paste the full contents of composer.lock.
  3. Click scan. Results include CVSS, EPSS, and CISA KEV status for each finding.

PHP/Packagist dependencies have historically seen a disproportionate share of SQL injection and remote code execution CVEs, which makes exploit-probability context especially valuable here — see the full Packagist dependency security guide for the ecosystem's specific risk patterns. composer audit is still the right CI gate; compare the two approaches at composer audit alternatives.

go.sum Vulnerability Check (Go Modules) — Without govulncheck

govulncheck is Go's official tool, and it's notably precise: it can tell whether a vulnerable function is actually called by your code, not just present in the dependency tree. A hosted scan of go.sum can't match that call-graph precision, but it covers the more common question — "does anything in this dependency tree have a known CVE at all" — without installing the Go toolchain first.

  1. Go to /scanner/go.
  2. Paste or upload go.sum (the file that pins exact module versions and hashes; go.mod alone only declares version constraints).
  3. Review findings ranked by EPSS and CISA KEV, not just CVSS severity.

For teams that want both — fast triage plus call-graph precision — running a hosted scan first to find candidates, then govulncheck to confirm actual reachability, is a reasonable combination. go.sum typically pins more packages than go.mod lists directly, since it includes the full transitive graph. See govulncheck alternatives for a fuller tool comparison, and the full Go module vulnerability scanning guide for Go-specific attack patterns.

Cargo.lock Vulnerability Scan (Rust / crates.io) — Beyond cargo-audit

cargo-audit checks Cargo.lock against the RustSec Advisory Database and is the standard tool most Rust teams already use in CI. A hosted scan of the same Cargo.lock file adds EPSS and CISA KEV context RustSec's raw advisory listing doesn't include, which matters even in an ecosystem with generally strong memory safety — vulnerabilities in unsafe blocks and FFI boundaries still occur and still need real prioritization, not just a flat list.

  1. Go to /scanner/crates.io.
  2. Paste or upload Cargo.lock — the file with exact resolved crate versions.
  3. Review results; findings on CISA KEV or with high EPSS scores should jump ahead of theoretical-only criticals.

See cargo-audit alternatives for a fuller comparison of what each tool surfaces, and securing Rust dependencies beyond cargo audit for the ecosystem's specific risk patterns.

Gemfile.lock Vulnerability Check (Ruby / RubyGems) — Beyond bundler-audit

bundler-audit checks Gemfile.lock against the Ruby Advisory Database and is the standard CI tool for Rails and Ruby projects. Ruby gems have historically seen a meaningful share of deserialization and code injection CVEs, so knowing which findings carry active exploitation — not just theoretical severity — matters more here than in ecosystems with a lighter CVE history.

  1. Go to /scanner/rubygems.
  2. Paste or upload Gemfile.lock — the file with fully resolved gem versions.
  3. Review findings with EPSS and CISA KEV status included alongside CVSS.

See the full RubyGems dependency security guide for gem-specific attack patterns, and bundler-audit alternatives for a tool-by-tool comparison.

Reading Results Across All Four: CVSS, EPSS, and CISA KEV

Every finding across all four ecosystems carries the same three signals, so a polyglot team can triage PHP, Go, Rust, and Ruby findings in one consistent priority order instead of four different mental models. CVSS measures theoretical severity. EPSS — a FIRST.org model updated daily — estimates the probability of exploitation in the next 30 days. CISA KEV is a catalog of more than 1,700 CVEs confirmed under active exploitation. At most 6% of published CVEs are ever exploited — across four ecosystems that gap compounds fast, and a shared priority signal is what keeps triage from becoming four separate part-time jobs.

Automating All Four in CI

Native tools stay the right choice for continuous, per-commit gating: composer audit, govulncheck, cargo-audit, and bundler-audit each integrate cleanly into their own ecosystem's CI step and don't require a network call to a third party. A hosted scan complements that setup rather than replacing it — useful for cross-service audits before a release, for services you're onboarding into CI for the first time, or for a quick check when you're reviewing a dependency bump PR and don't want to pull four toolchains locally. See dependency scanning in GitHub Actions for exact YAML you can adapt per ecosystem. Pair the scan with a frozen install so CI builds from the lockfile you scanned; what a lockfile actually guarantees lists the current drift-check flags for npm, Poetry, Cargo, Bundler, and Yarn.

Frequently Asked Questions

Can I scan multiple lockfiles from different ecosystems in one pass?

Each scan currently checks one file at a time — paste or upload composer.lock, go.sum, Cargo.lock, or Gemfile.lock separately at their respective ecosystem pages. For a polyglot repo, running each service's lockfile through its matching page takes a few minutes total, still faster than installing four CLIs.

Is a hosted composer.lock security check as accurate as composer audit?

For "does a known CVE exist against a pinned version," yes — both read the same lockfile and check against public advisory data. composer audit has the advantage of running in your exact PHP environment as part of CI; a hosted scan is faster for a one-off check with no environment setup.

Does govulncheck's call-graph analysis mean I don't need to scan go.sum separately?

Not necessarily. govulncheck's reachability analysis reduces false positives by confirming a vulnerable function is actually called, which is valuable in CI. A broader go.sum scan is still useful for a fast initial pass or when you want to see the full dependency-level exposure, not just reachable calls.

Why do PHP and Ruby show up more often in CVE databases than Rust?

It reflects both ecosystem age and language design: PHP and Ruby have larger, older package ecosystems with more historical CVE disclosures, while Rust's memory-safety guarantees eliminate whole vulnerability classes common in C-derived languages. It doesn't mean Rust dependencies are risk-free — supply chain and logic-error vulnerabilities still occur in unsafe code and FFI boundaries.

Scan your composer.lock, go.sum, Cargo.lock, or Gemfile.lock now → — free, no signup for up to 10 packages, results in under a minute.