scout_cves
List CVEs in a container image via Docker Scout, with filters for fixed versions, severity, and base images. Supports SARIF, SPDX, GitLab, and SBOM formats.
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 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 |