Repository navigation
v3.0.0
Release Notes
Added
unpatched: list the software you run, and a daily GitHub Action tells you only when something you run is affected, what to do, and whether it is being exploited. Keyless and open data only, and no servers: the database is built daily in this repository and published on the rollingdbrelease.- The
unpatchedcommand line:check(text, JSON, Markdown and SARIF output,--exit-code,--notify,--dry-run),init(questions in a terminal, a commented template otherwise;--githubadds the daily workflow),explain(a rule, a CVE or a finding key),search,catalog list|show,db update|info|build|sources-health,mcpandschema config|report. Exit codes: 1 fix today (with--exit-code), 2 usage or config error, 3 data error, 4 delivery error. - The GitHub Action (
uses: amet13/unpatched@v3): downloads the release binary, checks its SHA-256, caches it, and writes the run summary to the job. Inputs:version,binary,config,db,dry-run,args.templates/github/has a startingunpatched.ymland workflow. - The end-to-end corpus (
corpus/, 70+ cases) andcargo xtask corpus new <name>;cargo xtask schemawritesschema/unpatched.schema.jsonandschema/report.schema.json. - Findings and reports show the product's display name (
FortiOS 7.2.5) instead of its id, andFindinghas a newproduct_namefield. - The user guide (mdBook,
docs/guide/, published at https://amet13.github.io/unpatched/), a new README, andllms.txtandllms-full.txt.cargo xtask docsregenerates the parts that come from the code (config reference, rules, catalog, command help, examples), andcargo xtask checkfails when they are out of date. - Every report has
items: one recommendation per stack item (counts per bucket, the smallest upgrade that fixes the most findings, how many it fixes, end-of-life and unfixed counts).checkprints it first, as one line per item; the digest uses these lines only. Finding.fixed_after: when a source only gives an inclusive upper bound (<= 9.8), the advice reads "Upgrade to a release after 9.8" (with the latest release of the cycle when known).- New threshold
cvss_week_exposed(default 7.0). check --notifyin GitHub Actions warns (::warning::) when the repository is public, because the stack and the issues are then visible to everyone.--nowis a hidden global option, used bycheck,explainanddb info.unpatched db build --strict(fails, and writes nothing, when any source failed) andunpatched db info --json(counts and sources, for scripts). The daily database build uses both, and refuses to replace the published database when it has more than 20% fewer vulnerabilities or KEV entries.unpatched db updatetries again (after 20 s, then 60 s) when the release is being replaced and the checksum does not match yet, or the file is not there.- Notes for
ignoreentries that do nothing:ignore[2]: CVE-2099-1 matches no finding. Check the id or remove it.andignore[1] expired on 2020-01-01; the finding is back.Issue footers andexplain <finding key>show how to accept a risk (ignore:withcve,reason,until). unpatched explain --ruleslists every rule id.explainlists each reference once and names stack items like the report does.- Repository automation: CI on three operating systems, the daily database build, releases with
dist, a Docker image, and weekly and monthly upkeep (see MAINTAINING.md).
Security
- Release and CI workflows:
dist,cargo-zigbuildand actionlint are installed from pinned, hash-checked downloads (nocurl | sh);release.ymlis read-only by default and moves the major tag through the API; the Dependabot labeller usespull_requestinstead ofpull_request_target;workflow_runjobs ignore runs from forks; CI runs zizmor. - The MCP server refuses a
config_pathby its name before looking at the file system, so a caller cannot learn which other files exist. - MCP
check_stackonly reads the server's own config file, or a file namedunpatched*.ymlorunpatched*.yamlunder the server's working directory (links are resolved first). Before, any readable file could be named, and a YAML error could echo its content. Errors about a config file now give only the line and column.
Changed
-
Reports are shorter and use one vocabulary (today, this week, end of life, unknown, FYI; JSON keeps
now,week,eol,unknown,fyi). The text and Markdown reports and the status issue start with87 to act on (14 today, 69 this week, ...), 228 FYIand show FYI findings only as a count per item, with a line228 FYI not shown: run with -v or --format json. Issue bodies count FYI findings and no longer list them. The item headline says whether the upgrade clears everything (fixes all 11) or not (fixes 61 of 110; 49 have no fix on 7.2). "Checked" now reads990 vulnerabilities checked against your versions: not affected. -
--quietprints nothing on stdout except errors. The report still goes to--output, and exit codes are the same. -
MCP
check_stackreturns a small answer:summaryanditemsalways, andfindingsfor the buckets inbucket(default now, week, eol, unknown), at mostlimit(default 50), with evidence only wheninclude_evidenceis true. Every tool refuses arguments it does not declare. The text of a source (source says) is cut to about 200 characters inis_affectedandexplainunlessinclude_rawis true. MCPexplainaccepts finding keys (judged with the server's config). -
--notify --dry-runprints each message once (the channel, then its text); a missing secret is a warning in a dry run. Log lines readwarning: ...instead ofWARN .... -
Error messages say what to do: a missing version points to
unpatched catalog show <id>, a bad purl shows an example, a config file that is YAML but not theunpatched.ymlformat says so and suggests the closest field (Did you meanexposure?), and long parser messages are cut.initasks again when a version has spaces or cannot be read, and shows an example. Using an alias (product: fortigate) adds one note. -
searchand unknown-product errors say what to do when a product is not in the catalog (use a purl for OS packages, or ask for it), and only suggest names that are close:search yoastno longer suggestscisco-asa. -
cargo xtaskfinds the repository root at run time, andcargo xtask corpus newwrites a case that fails until you edit it. -
Catalog
version_hint: how a product writes its versions (7.2.5for FortiOS,22.7R2.5for Ivanti,7.2.1-69057-5for Synology).catalog showprints it, and the note for a version that cannot be compared repeats it. A note also warns when your version has fewer parts than the hint's example. -
Version scheme
synology(major.minor[.patch]-build[-update], also7.2.1-69057 Update 5) forsynology-dsm. Dotted read the build number as a patch number. -
New rule
UNP-UNKNOWN-DATA: a version in the data cannot be read; your version is fine.UNP-UNKNOWN-VERSIONnow means only your own configured version. -
Finding.fix_other_trainandFinding::advice(): when the only fix is on another release train, the advice says there is no fix on your branch, instead of "Upgrade to 7.4.10". -
CNA keys in the catalog can have
summary_starts, so a CNA that files every product under one name (Nextcloud'ssecurity-advisories) only counts for the product the description is about. -
A database that holds a source this build does not know is refused ("needs a newer unpatched", exit code 3) instead of silently dropping the findings.
-
NVD ranges: the CPE
updatefield is joined to the version (8.5+p1is 8.5p1, Ivanti22.7+r2.4is 22.7R2.4); other updates (cumulative_update_23,update2) are kept as unplaced, so a version that could match isunknown, nevernot-affected. CPE version-(not applicable) no longer means all versions: it gave WordPress core the flaws of its plugins. -
An affected verdict that rests only on "all versions" evidence is
unknown(UNP-UNKNOWN-NO-RANGES), and is shown only when the signals would make itnoworweek. It is nevernoworweekitself. -
9.8p1matches the bound9.8(OpenSSH has no plain 9.8):<= 9.8includes it. -
A source whose data cannot be read no longer blocks another source's clean
not-affected. -
An item's
upgrade_tois never lower than the installed version. -
rpm versions made only of separators (
+_,_+) compare equal, likerpmvercmp. -
weekneeds more than exposure: an affected finding isweekwhen EPSS is at or aboveepss_week, or CVSS is at or abovecvss_week, or the item is internet-facing and CVSS is at or abovecvss_week_exposed. An unknown CVSS score does not count.UNP-EXPOSEDnow means that. A first real run put 220 findings inweekbecause of exposure alone. -
A source that only says "all versions" (with a few unaffected versions) no longer beats a source with specific ranges that exclude your version: the verdict is
unknownwithUNP-CONFLICT. -
GitHub issues are per stack item, not per CVE: one issue lists the item's findings by bucket, is updated as they change, and is closed when none of
now,week,eolorunknownare left. The hidden marker is now<!-- unpatched:item=... -->and the delivery state tracks items for issues and findings for chat alerts. -
Finding titles in text, Markdown and issue output are the first sentence, at most 140 characters, unless
--verbose. JSON keeps the full text. -
unpatched explain <CVE>no longer says "not affected" for stack items the vulnerability is not about; it prints one line saying how many are not concerned. -
CVSS and EPSS scores are
f64, so JSON shows9.6and not9.600000381469727. -
A product that is in the catalog but not in the database now says so ("the database has no data for product ... yet. Run
unpatched db update"). -
unpatched init --githubprints.github/workflows/unpatched.ymlwithout a stray./; every command and argument has a help line; the config schema has a description for every key. -
Releasing needs no clone or local tag: Actions → autorelease → Run workflow →
publishreleases the version inCargo.toml(waiting for CI onmain), andpatch,minor,majororautoopen a release pull request that is published when it merges.
Install unpatched 3.0.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/Amet13/unpatched/releases/download/v3.0.0/unpatched-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/Amet13/unpatched/releases/download/v3.0.0/unpatched-installer.ps1 | iex"Install prebuilt binaries via Homebrew
brew install unpatchedDownload unpatched 3.0.0
| File | Platform | Checksum |
|---|---|---|
| unpatched-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| unpatched-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| unpatched-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| unpatched-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| unpatched-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo Amet13/unpatchedYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation> --repo Amet13/unpatched