scout_cves
Scan a container image for known CVEs, filtering by severity and fixed versions to produce a focused vulnerability report.
Instructions
List vulnerabilities (CVEs) in an image via Docker Scout.
Anonymous scans work for public images; Hub policy enforcement and richer recommendations need
docker login on the host that runs the CLI - this server's host, or the target ssh:// host
itself when no local scout plugin is installed. Start with scout_quickview for a
per-severity summary; scout_sbom inventories packages without vulnerability matching.
Does not raise on a non-zero CLI exit (a missing scout plugin or a timeout still raises) - inspect
raw.stderr.
Args:
image: Image reference (a tag or a digest)
only_fixed: Only report CVEs with a fixed version available
only_severity: Filter to these severities (omit for all)
ignore_base: Exclude CVEs introduced by the base image
format: Parsed into result as JSON: "sarif" (default, the standard vulnerability-report schema), "spdx",
"gitlab", "sbom". Returned verbatim as text: "packages" (Scout's own default, grouped by package),
"markdown". There is no plain "json" for this subcommand
platform: Platform of the image to analyze, e.g. "linux/amd64"
Returns: dict: {"format": , "result": , "raw": }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| format | No | sarif | |
| platform | No | ||
| only_fixed | No | ||
| ignore_base | No | ||
| only_severity | No |