# unpatched: the full guide This file is every page of the guide (https://amet13.github.io/unpatched/guide/) in one text. Generated by `cargo xtask docs`. --- Source: https://amet13.github.io/unpatched/guide/index.html # What is unpatched unpatched tells you when software you run is affected by a vulnerability, which version to upgrade to, and whether the bug is being exploited. You write down what you run, with versions, in one file (`unpatched.yml`). Every day it checks that list against open vulnerability data and tells you only about what needs action. It is for people who run software they did not write and have nobody whose job it is to watch advisories: - homelabbers and self-hosters with 5 to 30 things running - one-person IT teams and small businesses with a firewall, a VPN, a NAS, a mail server, a CMS and a few databases - MSPs that keep one private repository per client Edge devices with exploited bugs (Fortinet, Ivanti, Citrix, Palo Alto, MOVEit) and software past its end of life are what get small organisations breached. Dependabot, Renovate, OSV-Scanner and Trivy cover code and container images, not a FortiGate or a Nextcloud install. CVE feeds list every CVE for a vendor and leave the sorting to you. About 40% of CVEs have a CVSS score of 7 or more, so sorting by CVSS gives mostly noise. ## What you get - **Told only when it matters.** A finding is one product you run and one vulnerability that affects its version. Nothing else is sent. - **What to do.** Every finding says the version to upgrade to, and for end of life software, that you have to move to a supported release. - **Ranked by exploitation.** The bucket is decided by CISA KEV, the CISA SSVC exploitation flag, public exploits, EPSS and whether the item faces the internet. See [Findings and rules](findings.md). - **Evidence for every verdict.** Each finding lists the sources that said so and the rule ids behind its bucket. `unpatched explain` shows them. No model decides anything. - **Honest about gaps.** If the data is missing, conflicting or cannot be read, the verdict is `unknown`, with the reason. It is never "not affected" without evidence. - **Quiet by default.** A GitHub issue per stack item, a weekly digest in the chat channels you choose, and a status issue that says when it last ran, so silence never means broken. ## How it works ```text daily, in the unpatched repository daily, in your repository CVE.org, NVD, KEV, EPSS, endoflife.date, download the database (hash checked) Exploit-DB, Metasploit ids match your stack locally | rank findings, compare with last run v | one SQLite database, a release asset -------> v issues, chat messages, report ``` The list of what you run never leaves your repository. See [Privacy](privacy.md). ## Ways to run it | Way | For | | --- | --- | | [GitHub Action](start-github.md) | The main way. A private repository, two files, issues in your inbox. | | [Command line](start-cli.md) | A laptop, a cron job, a script. `--exit-code` can gate a pipeline. | | [Docker](start-docker.md) | A homelab server or a NAS that runs a scheduled container. | | [An AI agent](with-an-agent.md) | "Am I affected by this new Ivanti bug?" answered through an MCP server. | ## What it is not - **Not a dependency or container scanner.** It does not read your code, lock files or images. Use [OSV-Scanner](https://google.github.io/osv-scanner/) or [Trivy](https://trivy.dev/) for that. It can check a package you name with a `purl`, through OSV, but it does not discover packages. - **Not a network scanner.** It does not probe hosts or fingerprint versions. You say what runs and in which version, and it is only as good as that list. - **Not a SaaS.** There is no server, no account and no API key. GitHub runs it. - **Not a guarantee.** It can be wrong, and a quiet report is not proof of safety. Read [How accurate is it](accuracy.md). ## Where to go next - New here: [Start with GitHub](start-github.md). - Something looks wrong: [Findings and rules](findings.md) and the [FAQ](faq.md). --- Source: https://amet13.github.io/unpatched/guide/start-github.html # Start with GitHub This is the main way to run unpatched. You need a GitHub account and about five minutes. The Action runs once a day, opens an issue for each finding, and keeps one status issue up to date. It needs no token of your own and no secret, unless you also want chat messages. ## 1. Make a private repository Create a new repository and set it to **Private**. The stack file lists your software and its versions, which is a map for an attacker. Do not put it in a public repository. See [the public repository warning](faq.md#can-i-use-a-public-repository). ## 2. Write `unpatched.yml` Add `unpatched.yml` at the top of the repository. Start from this file (it is what `unpatched init` writes) and keep only what you run: ```yaml # unpatched.yml: what you run, and where to tell you. # Keep this file in a PRIVATE repository: it lists your software and versions. # Check it with `unpatched check`; `unpatched schema config` prints the format. # File format version. Only 1 exists. version: 1 # The software you run. Each entry is either a catalog `product` (find ids with # `unpatched search `) or a package `purl`. stack: # A firewall that faces the internet. Edge devices are what attackers hit first. - product: fortios version: 7.2.5 exposure: internet # internet | internal (default: internal) name: Office firewall # your label; tells several instances apart - product: nextcloud version: 29.0.3 exposure: internet # Quote versions YAML would read as numbers ("15.4" is a number to YAML). - product: postgresql version: "15.4" - product: home-assistant version: 2024.10.1 # A package: unpatched asks OSV about it (needs the network). # - purl: pkg:deb/debian/openssl@3.0.11-1~deb12u1?distro=bookworm # Accept a risk on purpose. `until` is required: nothing is ignored forever, and # the finding comes back when the date has passed. # ignore: # - cve: CVE-2024-1234 # product: nextcloud # optional: a product id or a stack `name`; default is all # reason: "The app is disabled" # until: 2027-01-31 # Where findings go. GitHub issues need no secret and are on by default. # Secrets are never written here: they come from environment variables # (repository secrets in GitHub Actions). notify: issues: true # telegram: # chat: "123456789" # the bot token is in UNPATCHED_TELEGRAM_TOKEN # slack: true # webhook URL in UNPATCHED_SLACK_WEBHOOK # discord: true # webhook URL in UNPATCHED_DISCORD_WEBHOOK # ntfy: # topic: my-unpatched-topic # optional token in UNPATCHED_NTFY_TOKEN # webhook: true # URL in UNPATCHED_WEBHOOK_URL # The day of the weekly digest (monday ... sunday), or `daily`. "Fix today" # findings are sent at once, whatever the day. digest: monday # When a finding gets more urgent. The defaults are shown. # thresholds: # epss_week: 0.05 # EPSS at or above this: fix this week # cvss_week: 9.0 # CVSS at or above this: fix this week # cvss_week_exposed: 7.0 # CVSS at or above this on an internet-facing item: fix this week # stale_warn_days: 3 # warn when the database is older than this # stale_fail_days: 7 # fail when the database is older than this ``` How to fill it in: - **`product`**: a catalog id. Run `unpatched search fortigate` (or look in the [catalog](catalog.md)) to find it. Aliases work in `search`, but write the id in the file. - **`version`**: the exact version that runs now, from the admin page or `--version`. Quote it if YAML would read it as a number: `"15.4"`. - **`exposure`**: `internet` if it is reachable from the internet (VPN portal, web app, mail server), else leave it out. It moves findings up a bucket. - **`name`**: your own label. Needed to tell two instances of one product apart. - A package that is not in the catalog (an OS package or a library) can be given as a `purl` instead. See the [config reference](config.md). If a product is not in the catalog, it cannot be matched yet. [Ask for it](catalog.md#ask-for-a-product). ## 3. Add the workflow Add `.github/workflows/unpatched.yml`. This is the file `unpatched init --github` writes: ```yaml # Checks your stack (unpatched.yml) every day and opens a GitHub issue for each # finding. Use it in a PRIVATE repository. It needs no token of your own. name: unpatched on: schedule: # Every day at 06:17 UTC. The database is rebuilt at 02:41 UTC. - cron: "17 6 * * *" # Lets you run it by hand from the Actions tab. workflow_dispatch: permissions: contents: read issues: write jobs: check: runs-on: ubuntu-latest timeout-minutes: 15 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: amet13/unpatched@v3 # Only for the chat channels you turned on in unpatched.yml. # Add each value as a repository secret first (Settings > Secrets and variables > Actions). # env: # UNPATCHED_TELEGRAM_TOKEN: ${{ secrets.UNPATCHED_TELEGRAM_TOKEN }} # UNPATCHED_SLACK_WEBHOOK: ${{ secrets.UNPATCHED_SLACK_WEBHOOK }} # UNPATCHED_DISCORD_WEBHOOK: ${{ secrets.UNPATCHED_DISCORD_WEBHOOK }} # UNPATCHED_NTFY_TOKEN: ${{ secrets.UNPATCHED_NTFY_TOKEN }} # UNPATCHED_WEBHOOK_URL: ${{ secrets.UNPATCHED_WEBHOOK_URL }} with: config: unpatched.yml ``` The job needs only `issues: write` (to open and close issues) and `contents: read` (to read your stack file). It never commits. The database is built at 02:41 UTC; the default run time is 06:17 UTC, a few hours later. Pick another time if you like, but a run before 02:41 UTC uses the day-old database, which is fine. `amet13/unpatched@v3` runs the newest `v3.x.y` release. To pin one exact release, use its full tag, such as `@v3.0.0`. See [GitHub Action](action.md). ## 4. Commit, push and run it once Commit both files and push. A scheduled workflow does not run until its first schedule, so start it by hand: 1. Open the repository on GitHub, then the **Actions** tab. 2. Choose **unpatched** in the list on the left. 3. Click **Run workflow**, then the green **Run workflow** button. When the run finishes, open it and read the **summary**: it has the same table you would get from `unpatched check --format markdown`. ## 5. Read the first result The first run creates: - the labels `unpatched`, `unpatched:now`, `unpatched:week`, `unpatched:eol`, `unpatched:unknown`, `unpatched:fyi` and `unpatched:status` - one issue for each stack item that has a finding that is not FYI, labelled with its most urgent bucket - one **unpatched status** issue (pinned when GitHub allows it) that lists everything open, the database date and the time of the last run GitHub emails you about new issues like any other. How to read an issue and the rules behind its label: [Findings and rules](findings.md). What closes an issue: fix it (change the version in `unpatched.yml`), and the next run closes it with a note. Closing an issue yourself means "I know"; unpatched does not reopen it, and lists it under "Closed but still affected" in the status issue. If the first run reports `unknown product`, the id in `unpatched.yml` is not in the catalog. Read the message: it suggests close matches, and says what to do for an operating-system package (use a purl). **Accept a risk you know about.** Every issue ends with the lines to add to `unpatched.yml`; the next run moves the finding out of the issue and lists it as ignored until the date you set: ```yaml ignore: - cve: CVE-2024-21762 reason: "The SSL VPN is switched off" until: 2027-01-31 ``` The report notes an entry that matches nothing or has expired. More in [the config](config.md#ignore-entries). ## Private repository, secrets and settings - **Actions must be on.** In an organization, check that Actions may run `amet13/unpatched`, `actions/checkout` and `actions/cache`. - **No token is needed** for issues. The workflow's own `GITHUB_TOKEN` is used. - **Secrets** are only for chat channels. Add each one under **Settings, Secrets and variables, Actions, New repository secret**, then uncomment the matching line in the workflow's `env:` block. Names and details are on [Notifications](notifications.md). A secret never goes in `unpatched.yml`. - **Minutes.** A run is short: it downloads one binary (cached) and one database. Private repositories on the free plan have 2,000 Actions minutes a month, far more than a daily run uses. - **Schedules pause in public repositories only.** GitHub turns off scheduled workflows after 60 days with no repository activity in a *public* repository. In a private one they keep running. See the [FAQ](faq.md#will-the-schedule-stop). ## Change what you run Edit `unpatched.yml` and push. The next run uses it. To see the result at once, run the workflow by hand again, or run `unpatched check` on your machine ([Start with the command line](start-cli.md)). ## Test without side effects Run the Action with `dry-run: true` to print what would happen (each message once, with its channel) and send nothing: ```yaml - uses: amet13/unpatched@v3 with: dry-run: "true" ``` ## If something goes wrong | What you see | What to do | | --- | --- | | `unknown product "..."` | Use an id from `unpatched catalog list`. The message suggests names. | | `stack[n]: ...` YAML error | Fix the line it shows. `unpatched schema config` prints the format. | | Exit code 3, "database too old" | The daily database build stopped. See [Data](data.md). | | `Resource not accessible by integration` | The job lacks `issues: write`. Copy the `permissions:` block above. | | `check` fails and names an environment variable | A chat channel is on but its secret is not passed in the workflow's `env:` block (exit code 2). | | A chat message is missing, the rest is fine | The token or URL is wrong, or the service is down. The run exits with code 4 and names the channel. | --- Source: https://amet13.github.io/unpatched/guide/start-cli.html # Start with the command line The command line is for a laptop, a cron job or a script. It does the same matching as the Action. Without GitHub, it keeps its delivery state in `.unpatched/state.json` next to your config file. ## Install | How | Command | | --- | --- | | Shell (Linux, macOS) | `curl --proto '=https' --tlsv1.2 -LsSf https://github.com/Amet13/unpatched/releases/latest/download/unpatched-installer.sh \| sh` | | PowerShell (Windows) | `powershell -ExecutionPolicy Bypass -c "irm https://github.com/Amet13/unpatched/releases/latest/download/unpatched-installer.ps1 \| iex"` | | Homebrew | Download `unpatched.rb` from the [latest release](https://github.com/Amet13/unpatched/releases/latest), then `brew install --formula ./unpatched.rb` | | From source | `cargo install --git https://github.com/Amet13/unpatched unpatched --locked` | | Archive | Download the `.tar.xz` (Linux, macOS) or `.zip` (Windows) from the releases page, check the `.sha256` file, and put `unpatched` on your `PATH` | The installers put the binary in `$CARGO_HOME/bin` (usually `~/.cargo/bin`). There is no Homebrew tap: the formula is a release asset that you install from a file. Builds exist for Linux (x86_64 and aarch64, static musl), macOS (Intel and Apple silicon) and Windows (x86_64). Every archive has a GitHub build attestation: `gh attestation verify --repo Amet13/unpatched`. Check it works: ```sh unpatched --version ``` ## Write `unpatched.yml` In a terminal, `unpatched init` asks what you run (it searches the catalog for each name, asks the version and whether it faces the internet) and writes `unpatched.yml`. With `--github` it also writes the workflow for the [GitHub route](start-github.md). When input is not a terminal, it writes the commented template instead. ```text $ unpatched init --github Wrote unpatched.yml Wrote .github/workflows/unpatched.yml Next steps: 1. Edit unpatched.yml: list what you really run, with exact versions. 2. Run `unpatched check` to see the result. 3. Keep this repository PRIVATE: unpatched.yml lists your software and versions. 4. Commit and push both files. The workflow runs every day at 06:17 UTC; start it once from the Actions tab (workflow_dispatch). 5. For Telegram, Slack, Discord, ntfy or a webhook, add the secrets named in unpatched.yml under Settings > Secrets and variables > Actions, and uncomment the `env:` lines in the workflow. ``` `init` refuses to overwrite files; add `--force` to do it anyway. Find product ids without `init`: ```text $ unpatched search forti ID NAME VENDOR KIND VERSIONS fortimanager FortiManager Fortinet appliance dotted fortios FortiOS Fortinet appliance dotted fortiproxy FortiProxy Fortinet appliance dotted fortiweb FortiWeb Fortinet appliance dotted Use the id in unpatched.yml: `product: `. ``` ## Run a check ```sh unpatched check ``` The first run downloads the database (a release asset of this repository, hash checked) into your cache folder. Later runs reuse it and refresh it when it is more than 20 hours old. If the refresh fails and an older copy exists, it warns and uses the older one. See [Data](data.md). The examples below use a small sample database that is in the repository (`fixtures/smoke/unpatched-db.sqlite`) and the date 2026-11-24, so you can compare. Your output uses live data. The stack is the template from above. ```text $ unpatched check 2 to act on (1 today, 1 end of life) 🔴 FortiOS 7.2.5 (Office firewall) 1 today → upgrade to 7.2.7 (fixes it) ⚫ Nextcloud 29.0.3 1 end of life → upgrade to a supported release 🔴 Fix today (1) FortiOS 7.2.5 (Office firewall) CVE-2024-21762 A out-of-bounds write vulnerability in Fortinet FortiOS 7.4.0 through 7.4.2, FortiOS 7.2.0 through 7.2.6, FortiOS 7.0.0 through 7.0.13, For… Why In CISA KEV since 2024-02-09 · ransomware use: known · CISA due date 2024-02-16 · SSVC: exploitation is active · SSVC: automatable · EPSS 84.6% (percentile 100) · CVSS 9.6 · internet-facing Do Upgrade to 7.2.7 or later. Rule UNP-KEV, UNP-SSVC-ACTIVE, UNP-EPSS, UNP-CVSS, UNP-EXPOSED · verdict affected ⚫ End of life (1) Nextcloud 29.0.3 nextcloud 29.0.3 is past end of life: the 29 release cycle no longer gets security fixes Why End of life · internet-facing Do Upgrade to a supported release. Rule UNP-EOL · verdict affected 🟢 1 vulnerability checked against your versions: not affected Database: built 2026-11-23 12:00 UTC, 0 days old Note: stack[2]: the database has no data for product "postgresql" yet. Run `unpatched db update`; if the id may be wrong, `unpatched catalog list` shows the ids. Note: stack[3]: the database has no data for product "home-assistant" yet. Run `unpatched db update`; if the id may be wrong, `unpatched catalog list` shows the ids. ``` Each finding shows the product and your label, the CVE, why it is in its bucket (`Why`), what to do (`Do`), and the rule ids. The title of a CVE can be long: it is the CVE's own description. Read [Findings and rules](findings.md) for the buckets. ### Formats `--format` is one of `text` (the default), `json`, `markdown` and `sarif`. `--output FILE` writes to a file instead of the screen. `json` has a published schema (`unpatched schema report`), so scripts and agents should read that, not the text. `sarif` is for code-scanning tools; uploading it to GitHub's Security tab needs GitHub Advanced Security on private repositories, so unpatched does not do it for you. The text and Markdown reports start with the counts (`87 to act on (14 today, 69 this week, ...), 228 FYI`) and show FYI findings only as a count per item, plus a line `228 FYI not shown: run with -v or --format json`. With `--verbose` (or `-v`) they list the FYI findings too and include the evidence of each source. The JSON always has everything. `--quiet` prints nothing on stdout, so a script or cron job stays silent; errors still go to stderr and the exit code is the same. If you give `--output FILE`, the report is still written there: ```sh unpatched check --quiet --format json --output report.json ``` The same report as `--format json`. Parts are cut out for this page and marked with `...`: the database sources, the long `title` and `evidence`, and the second finding. ```json { "format": 1, "generated_at": "2026-11-24T00:00:00Z", "db": { ... }, "summary": { "now": 1, "week": 0, "eol": 1, "unknown": 0, "fyi": 0, "ignored": 0, "not_affected": 1 }, "findings": [ { "key": "office-firewall/CVE-2024-21762", "item": "Office firewall", "product": "fortios", "product_name": "FortiOS", "version": "7.2.5", "exposure": "internet", "vuln": "CVE-2024-21762", "title": "...", "verdict": "affected", "bucket": "now", "rules": [ "UNP-KEV", "UNP-SSVC-ACTIVE", "UNP-EPSS", "UNP-CVSS", "UNP-EXPOSED" ], "fixed_in": "7.2.7", "latest_in_cycle": null, "cvss": { "version": "3.1", "score": 9.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:W/RC:C" }, "signals": { "kev": { "date_added": "2024-02-09", "due_date": "2024-02-16", "known_ransomware": true, "required_action": "Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.", "vendor_project": "Fortinet", "product": "FortiOS" }, "epss": { "score": 0.8458899855613708, "percentile": 0.9971100091934204, "date": "2026-11-23" }, "ssvc_exploitation": "active", "ssvc_automatable": true }, "evidence": [ ... ], "references": [ "https://fortiguard.com/psirt/FG-IR-24-015", "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-21762" ] }, ... ], "ignored": [], "items": [ ... ... ], "notes": [ "stack[2]: the database has no data for product \"postgresql\" yet. Run `unpatched db update`; if the id may be wrong, `unpatched catalog list` shows the ids.", "stack[3]: the database has no data for product \"home-assistant\" yet. Run `unpatched db update`; if the id may be wrong, `unpatched catalog list` shows the ids." ] } ``` ### Packages and the network A `purl` item in `unpatched.yml` is looked up live in OSV (see [Privacy](privacy.md)). `--offline` skips that and the database download. Catalog products still work with `--offline` when a database is on disk. Use `--db FILE` (or `$UNPATCHED_DB`) to choose the database file. ### Exit codes | Code | Meaning | | --- | --- | | 0 | OK | | 1 | `check --exit-code` found something to fix today | | 2 | Usage or configuration error (bad YAML, unknown product, missing secret) | | 3 | Data error (no database, database too old, a download failed) | | 4 | Delivery error (a chat channel or GitHub issue failed) | `--exit-code` makes `check` return 1 when there is a "fix today" finding, so a script or pipeline can stop: ```sh unpatched check --exit-code --quiet || echo "something to fix today" ``` A database older than `stale_fail_days` (7 by default) stops the run with exit code 3. `--allow-stale` overrides that. At `stale_warn_days` (3) you get a finding that says the data is old. ## Send messages from the command line `--notify` sends the findings to the channels in `unpatched.yml`. Outside GitHub Actions it uses the local state file to avoid repeats. `--dry-run` prints each message that would be sent (the channel, then its text) and what would be written, and sends and writes nothing. A missing secret is only a warning in a dry run. Secrets come from environment variables. See [Notifications](notifications.md). ```sh export UNPATCHED_NTFY_TOKEN=... # only if your ntfy topic needs one unpatched check --notify ``` A cron entry that runs it every morning (`--quiet` keeps cron from mailing you the report on stdout; errors still reach you): ```text 17 6 * * * cd /home/me/stack && unpatched check --notify --quiet ``` To keep a copy of the report as well: ```text 17 6 * * * cd /home/me/stack && unpatched check --notify --quiet --format json --output report.json ``` `--github` makes the command keep issues and state in a GitHub repository (it needs `GITHUB_TOKEN` and `GITHUB_REPOSITORY`). It is on by itself inside GitHub Actions. ## Look closer Show the evidence for a CVE, and what a rule means: ```text $ unpatched explain CVE-2024-21762 CVE-2024-21762 A out-of-bounds write vulnerability in Fortinet FortiOS 7.4.0 through 7.4.2, FortiOS 7.2.0 through 7.2.6, FortiOS 7.0.0 through 7.0.13, FortiOS 6.4.0 through 6.4.14, FortiOS 6.2.0 through 6.2.15, FortiOS 6.0 all versions, FortiProxy 7.4.0 through 7.4.2, FortiProxy 7.2.0 through 7.2.8, FortiProxy 7.0.0 through 7.0.14, FortiProxy 2.0.0 through 2.0.13, FortiProxy 01.02 all versions, FortiProxy 1.2 all versions, FortiProxy 01.01 all versions, FortiProxy 1.1 all versions, FortiProxy 01.00 all versions allows attacker to execute unauthorized code or commands via specifically crafted requests status: published · published 2024-02-09 · modified 2026-10-22 CVSS 3.1: 9.6 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:W/RC:C Exploitation signals CISA KEV: added 2024-02-09, due 2024-02-16, ransomware use: known EPSS: 84.6% (percentile 100) on 2026-11-23 SSVC exploitation: Active, automatable: yes ... ``` ```text $ unpatched explain UNP-KEV UNP-KEV: Known to be exploited CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog, so attackers are using it now. Fix it today. This rule puts an affected finding in: Fix today (now). ``` With a stack file, `explain CVE-...` also shows what the CVE means for your items, and `explain /` explains one finding by its key (the key is in the JSON report and in the hidden marker of each issue). It ends with the lines to add to `unpatched.yml` to accept the risk. `unpatched explain --rules` lists every rule id. Show a catalog entry, the names it matches in each source: ```text $ unpatched catalog show fortios # catalog/fortios.yml # Write the version like: 7.2.5 (three numbers; leave out 'build 1517') id: fortios name: FortiOS vendor: Fortinet kind: appliance versioning: dotted match: cpe: - fortinet:fortios cna: - vendor: Fortinet product: FortiOS - vendor: Fortinet product: Fortinet FortiOS, FortiProxy, FortiSwitchManager - vendor: Fortinet product: FortiOS-6K7K kev: - vendorProject: Fortinet product: FortiOS - vendorProject: Fortinet product: FortiOS and FortiProxy - vendorProject: Fortinet product: FortiOS and FortiProxy SSL-VPN - vendorProject: Fortinet product: FortiOS and FortiADC eol: fortios aliases: - fortigate - fortinet firewall homepage: https://www.fortinet.com/products/fortigate/fortios version_hint: 7.2.5 (three numbers; leave out 'build 1517') checked: 2026-11-23 ``` Check how old the database is: ```text $ unpatched db info File: fixtures/smoke/unpatched-db.sqlite Schema version: 1 Built: 2026-11-23 12:00 UTC (0 days old) Products: 7 (6 found in the data) Vulnerabilities: 7 Sources: CISA KEV ok 7 records 2026-11-23 12:00 UTC EPSS ok 8 records 2026-11-23 12:00 UTC NVD ok 2 records 2026-11-23 12:00 UTC 1 feeds, 7 records scanned CVE.org ok 14 records 2026-11-23 12:00 UTC endoflife.date ok 1 records 2026-11-23 12:00 UTC Exploit-DB ok 9 records 2026-11-23 12:00 UTC Metasploit ok 9 records 2026-11-23 12:00 UTC ``` `unpatched db update` downloads the latest database now. `unpatched db build` builds one from the sources yourself (slow; the repository does it daily), for people who do not want to trust the published one. The [command reference](cli.md) lists every command and option. --- Source: https://amet13.github.io/unpatched/guide/start-docker.html # Start with Docker The image `ghcr.io/amet13/unpatched` holds the `unpatched` binary and nothing else (a static build on a distroless base, running as a non-root user). It is for a homelab server or a NAS that can run a scheduled container, when you do not want GitHub Actions. Tags: a full version (`3.0.0`), `3.0`, `3` and `latest`. Pin a version if you want upgrades to be your decision. The image is built for `linux/amd64` and `linux/arm64`. ## Run it Make a folder with your `unpatched.yml` ([how to write it](start-github.md)) and run the image with that folder mounted at `/work`: ```sh docker run --rm \ --user "$(id -u):$(id -g)" \ -e UNPATCHED_CACHE_DIR=/work/.cache \ -v "$PWD:/work" \ ghcr.io/amet13/unpatched ``` With no arguments the image runs `unpatched check --notify`. Why each option: - `-v "$PWD:/work"`: the container's working directory is `/work`, where it looks for `unpatched.yml` and where it saves `.unpatched/state.json` (what was already sent, so you get no repeats). - `--user "$(id -u):$(id -g)"`: files it writes in the folder belong to you. - `UNPATCHED_CACHE_DIR=/work/.cache`: the database (a few tens of MB) is kept there between runs instead of being downloaded each time. Add `.cache/` and `.unpatched/` to your `.gitignore` if the folder is a repository. Keep it private: `unpatched.yml` lists your software. Any other command works by adding it after the image name: ```sh docker run --rm -v "$PWD:/work" ghcr.io/amet13/unpatched check --format markdown docker run --rm -v "$PWD:/work" ghcr.io/amet13/unpatched explain CVE-2024-21762 docker run --rm -v "$PWD:/work" ghcr.io/amet13/unpatched search nextcloud ``` ## Secrets Chat channels need a secret in an environment variable (names are on [Notifications](notifications.md)). Pass it through from your shell or an env file, so it never appears in the command line: ```sh docker run --rm \ --user "$(id -u):$(id -g)" \ -e UNPATCHED_CACHE_DIR=/work/.cache \ -e UNPATCHED_TELEGRAM_TOKEN \ -v "$PWD:/work" \ ghcr.io/amet13/unpatched ``` or `--env-file unpatched.env` with the file outside any repository. GitHub issues are not used outside GitHub Actions, unless you set `GITHUB_TOKEN` and `GITHUB_REPOSITORY` and add `--github`. With plain Docker, the chat channels and the report are what you have. ## On a schedule Cron on the host: ```text 17 6 * * * cd /srv/unpatched && docker run --rm --user 1000:1000 -e UNPATCHED_CACHE_DIR=/work/.cache --env-file /srv/unpatched.env -v /srv/unpatched:/work ghcr.io/amet13/unpatched --quiet check --notify ``` (Use your own user id.) A Compose service that you start with `docker compose run --rm unpatched`: ```yaml services: unpatched: image: ghcr.io/amet13/unpatched:0 user: "1000:1000" environment: UNPATCHED_CACHE_DIR: /work/.cache UNPATCHED_TELEGRAM_TOKEN: ${UNPATCHED_TELEGRAM_TOKEN} volumes: - ./:/work ``` The exit code tells your scheduler how it went: see [Exit codes](start-cli.md#exit-codes). A run that finds something to fix today only exits with 1 when you add `--exit-code`. ## Use it from an MCP client The MCP server runs in the image too, for agents that start servers with Docker. See [With an agent](with-an-agent.md#docker). ## Build it yourself ```sh docker build -f docker/Dockerfile -t unpatched . ``` --- Source: https://amet13.github.io/unpatched/guide/config.html # Config reference `unpatched.yml` says what you run and where to tell you. It is read by every command (`--config FILE` chooses another path). Keep it in a private repository. The file is YAML. Unknown keys are an error, so a typo such as `exposur:` is reported with its line instead of being ignored. Only `version` and `stack` are required. `unpatched schema config` prints the JSON Schema, which most editors can use for completion; it is also in `schema/unpatched.schema.json`. ## A complete example ```yaml version: 1 stack: - product: fortios version: 7.2.5 exposure: internet name: Office firewall - product: fortios version: 7.0.13 name: Lab firewall - product: nextcloud version: 29.0.3 exposure: internet - product: postgresql version: "15.4" - purl: pkg:deb/debian/openssl@3.0.11-1~deb12u1?distro=bookworm ignore: - cve: CVE-2024-1234 product: nextcloud reason: The app is disabled until: 2027-01-31 notify: issues: true telegram: chat: "123456789" ntfy: topic: my-unpatched-topic digest: monday thresholds: epss_week: 0.1 cvss_week: 8.0 ``` ## Keys ### Top level | Key | Type | Required | Default | What it does | | --- | --- | --- | --- | --- | | `version` | integer | yes | none | File format version. Only `1` exists. | | `stack` | list of `stack[]` | yes | none | The software you run, one entry per instance. | | `ignore` | list of `ignore[]` | no | none | Risks you accept on purpose, each with a reason and an end date. | | `notify` | object (see `notify`) | no | none | Channels. Secrets (tokens, webhook URLs) never go here: they come from environment variables named in the docs (`UNPATCHED_TELEGRAM_TOKEN`, …). | | `digest` | string | no | `monday` | Day of the weekly digest (`monday` … `sunday`), or `daily`. | | `thresholds` | object (see `thresholds`) | no | none | When a finding gets more urgent. | ### `stack[]` One thing you run. Give either `product` (a catalog id) or `purl` (a package). | Key | Type | Required | Default | What it does | | --- | --- | --- | --- | --- | | `product` | string | no | none | Catalog product id (`unpatched catalog list`). | | `purl` | string | no | none | Package URL with version, e.g. `pkg:deb/debian/openssl@3.0.11-1~deb12u1?distro=bookworm`. | | `version` | string | no | none | Required with `product`; taken from the purl otherwise. | | `exposure` | `internet` or `internal` | no | `internal` | Whether the item is reachable from the internet. It can move a finding up a bucket. | | `name` | string | no | none | Your label, e.g. "Office firewall". Tells instances apart. | ### `ignore[]` Accept a risk on purpose. `until` is required: nothing is ignored forever. | Key | Type | Required | Default | What it does | | --- | --- | --- | --- | --- | | `cve` | string | yes | none | The CVE (or advisory) id to ignore. | | `product` | string | no | none | Only for this product id (or stack item `name`); all items when empty. | | `reason` | string | yes | none | Why you accept the risk. Shown in the report. | | `until` | date (`YYYY-MM-DD`) | yes | none | The last day the entry applies. After it the finding comes back. | ### `notify` Channels. Secrets (tokens, webhook URLs) never go here: they come from environment variables named in the docs (`UNPATCHED_TELEGRAM_TOKEN`, …). | Key | Type | Required | Default | What it does | | --- | --- | --- | --- | --- | | `issues` | true or false | no | `true` | GitHub Issues in the repository the Action runs in. | | `telegram` | object (see `notify.telegram`) | no | none | Send messages to a Telegram chat. | | `slack` | true or false | no | `false` | Slack incoming webhook (URL in `UNPATCHED_SLACK_WEBHOOK`). | | `discord` | true or false | no | `false` | Discord webhook (URL in `UNPATCHED_DISCORD_WEBHOOK`). | | `ntfy` | object (see `notify.ntfy`) | no | none | Send messages to an ntfy topic. | | `webhook` | true or false | no | `false` | Generic JSON webhook (URL in `UNPATCHED_WEBHOOK_URL`). | ### `notify.telegram` | Key | Type | Required | Default | What it does | | --- | --- | --- | --- | --- | | `chat` | string | yes | none | Chat id. The bot token comes from `UNPATCHED_TELEGRAM_TOKEN`. | ### `notify.ntfy` | Key | Type | Required | Default | What it does | | --- | --- | --- | --- | --- | | `topic` | string | yes | none | The ntfy topic to publish to. | | `server` | string | no | `https://ntfy.sh` | The ntfy server. | ### `thresholds` | Key | Type | Required | Default | What it does | | --- | --- | --- | --- | --- | | `epss_week` | number | no | `0.05` | EPSS score at or above which an affected finding is at least `week`. | | `cvss_week` | number | no | `9.0` | CVSS base score at or above which an affected finding is at least `week`. | | `stale_warn_days` | integer | no | `3` | Days after which the database counts as stale (warning). | | `stale_fail_days` | integer | no | `7` | Days after which a run fails because the data is too old. | | `cvss_week_exposed` | number | no | `7.0` | CVSS base score at or above which an affected, internet-facing finding is at least `week`. | Unknown keys are an error: `additionalProperties` is `false` everywhere, so a typo is caught instead of ignored. The same schema is in `schema/unpatched.schema.json` and is printed by `unpatched schema config`. ## The stack Each entry is one thing you run. Give either `product` or `purl`, never both. **A catalog product** has `product` (an id from `unpatched catalog list`) and `version`. This is the better choice when the product is in the [catalog](catalog.md): matching is aware of the product's version scheme, end of life dates come from endoflife.date, and findings can name the fixed version. **A package** has `purl`, a [package URL](https://github.com/package-url/purl-spec) with the version after `@`: `pkg:deb/debian/openssl@3.0.11-1~deb12u1?distro=bookworm`, `pkg:apk/alpine/curl@8.5.0-r0?distro=alpine-3.19`, `pkg:pypi/django@3.2.0`, `pkg:npm/lodash@4.17.15`. Packages are looked up live in OSV, so they need the network and are skipped with `--offline`. See [Privacy](privacy.md) for what is sent. **Several instances** of one product are several entries. Give each a `name`, so findings say which one. The name also becomes the start of the finding's key (`office-firewall/CVE-2024-21762`). **Versions** are compared by the product's own scheme (dotted numbers, semver, calendar versions, Debian, RPM, APK, PEP 440). If a version cannot be read in that scheme, the verdict is `unknown` with the reason, never a guess. Quote versions that YAML could read as numbers (`"15.4"`). **`exposure`** is `internet` (reachable from the internet: VPN portals, web apps, mail servers) or `internal`, the default. It changes the bucket: an affected internet-facing finding with CVSS ≥ 7.0 (`cvss_week_exposed`) is at least this week; with a public exploit it is fix today, whatever the score. Mark only what really is reachable. ## Ignore entries An ignore entry accepts a risk on purpose, like a VEX statement "not affected because...": ```yaml ignore: - cve: CVE-2024-1234 product: nextcloud # optional: a product id or a stack `name` reason: The app is disabled until: 2027-01-31 ``` - `cve`, `reason` and `until` are required. There is no "ignore forever": `until` is the last day the entry applies. - Without `product`, the entry covers every stack item that the CVE affects. With it, only the item whose product id or `name` matches. - An ignored finding leaves the main report and is listed under "ignored", with the reason and date (rule `UNP-IGNORED`). Its GitHub issue is closed with a note. - When the date has passed, the finding is back in its bucket with the rule `UNP-IGNORE-EXPIRED`, and the issue is reopened. - The report has a note for an entry that does nothing: `ignore[2]: CVE-2099-1 matches no finding. Check the id or remove it.` (the number counts from 0), or `ignore[1] expired on 2020-01-01; the finding is back.` ## Thresholds Every number has a default; set only what you want to change. ```yaml thresholds: epss_week: 0.05 cvss_week: 9.0 cvss_week_exposed: 7.0 stale_warn_days: 3 stale_fail_days: 7 ``` - `epss_week`: an affected finding with an EPSS score at or above this is at least "this week" (rule `UNP-EPSS`). EPSS is the estimated probability of exploitation in the next 30 days, from 0 to 1. - `cvss_week`: the same for the CVSS base score (rule `UNP-CVSS`). - `cvss_week_exposed`: the CVSS base score at or above which an affected internet-facing finding is at least `week` (rule `UNP-EXPOSED`, default 7.0). With a public exploit it is `now`, whatever the score. - `stale_warn_days`: when the database is older than this, the report has a finding that says so (rule `UNP-STALE-DATA`). - `stale_fail_days`: when it is older than this, the run stops with exit code 3. `check --allow-stale` overrides it. The "fix today" conditions (KEV, SSVC active, public exploit on an internet-facing item) have no threshold. See [Findings and rules](findings.md). ## Notifications ```yaml notify: issues: true # GitHub issues; the default telegram: chat: "123456789" # token in UNPATCHED_TELEGRAM_TOKEN slack: true # webhook URL in UNPATCHED_SLACK_WEBHOOK discord: true # webhook URL in UNPATCHED_DISCORD_WEBHOOK ntfy: topic: my-topic # optional: server (default https://ntfy.sh); token in UNPATCHED_NTFY_TOKEN webhook: true # URL in UNPATCHED_WEBHOOK_URL, optional signing secret in UNPATCHED_WEBHOOK_SECRET digest: monday # monday ... sunday, or daily ``` Secrets are never read from this file. If a channel is turned on and its variable is missing, the run stops with exit code 2 and names the variable. Each channel, with an example message, is on [Notifications](notifications.md). `digest` is the day of the weekly digest sent to chat channels. It does not delay "fix today" findings, which are sent once as soon as they appear. --- Source: https://amet13.github.io/unpatched/guide/findings.html # Findings and rules A **finding** is one thing you run and one vulnerability that matters for it. It has a **verdict** (is your version affected?), a **bucket** (how soon to act) and **rules** (why it is in that bucket). The end of life of a release and a few problems with the data are findings too. ## Verdicts | Verdict | Meaning | | --- | --- | | `affected` | Your version is inside an affected range that at least one source gives. | | `fixed` | It was affected and your version is now at or past the fix. Used to close issues. | | `not-affected` | At least one source has data and every source with data says your version is outside its ranges. Not reported. | | `unknown` | The data cannot say: no source has version data yet (new CVEs often wait for NVD analysis), your version cannot be read in the product's scheme, or the product is not found in the data. | Every source is judged on its own, then the verdicts are combined. One source saying `affected` is enough. `not-affected` needs evidence: having no data is never "not affected". When sources disagree the finding is reported and the rule `UNP-CONFLICT` is added, so you can read the evidence and decide. An `unknown` is not shown for every vulnerability that lacks data: that would bury the report. It is shown only when the signals would have made it "fix today" or "this week" if it were confirmed (for example a CVE in KEV for your product with no version range yet). The reason is given in the finding. ## Buckets The bucket is decided by evidence of exploitation first, not by severity. The report says the bucket in words, and the JSON keeps short ids. They mean the same: | JSON (`bucket`) | In the text report, issues and chat | Meaning | | --- | --- | --- | | `now` | today | Fix today | | `week` | this week | Fix this week | | `eol` | end of life | The release is past its end of life | | `unknown` | unknown | The data cannot say yet | | `fyi` | FYI | Affected, low urgency | The first line of a report counts what you can act on, then the FYI findings: `87 to act on (14 today, 69 this week, 3 end of life, 1 unknown), 228 FYI`. "To act on" is everything except FYI. The line "990 vulnerabilities checked against your versions: not affected" counts the vulnerabilities that were compared with your versions and found not to affect you; it does not count the findings above. | Bucket | Label | When (for an `affected` finding) | | --- | --- | --- | | `now` | Fix today | In CISA KEV, or CISA SSVC says exploitation is active, or a public exploit exists (Exploit-DB or Metasploit) and the item is `exposure: internet`. | | `week` | Fix this week | EPSS at or above `epss_week` (default 0.05), or CVSS at or above `cvss_week` (default 9.0), or the item is `exposure: internet` and CVSS is at or above `cvss_week_exposed` (default 7.0). Exposure alone is not enough, and an unknown CVSS score does not count. | | `fyi` | FYI | Any other affected finding. No issue is opened for it. The text and Markdown reports and the status issue show only a count per item; `-v` and `--format json` list them. | | `eol` | End of life | The release cycle of the item is past its end of life (endoflife.date). One finding per item, not one per CVE. | | `unknown` | Unknown | An `unknown` verdict that would have been `now` or `week` if confirmed, or a data problem (product not found, stale database). | The first matching bucket wins, from the top. A `now` finding lists the `week` rules too, so you see every reason. Thresholds can be changed in [the config](config.md#thresholds); the other conditions cannot. The reasoning (why not CVSS) is in the comments of `crates/unpatched-core/src/matching.rs`. For an affected finding, `fixed_in` is the lowest version that fixes it, taken from the upper bound of the affected range. `latest_in_cycle` is the newest release in your release cycle from endoflife.date, shown when it is newer. When a source only gives an inclusive upper bound ("up to 9.8"), `fixed_after` holds that bound and the advice reads "upgrade to a release after 9.8". When your release branch has no fix in the data but a newer one does, `fix_other_train` names it and the advice says so. ## Read a GitHub issue There is one issue per stack item, not one per CVE. The title is the most urgent bucket's emoji, the product and version, how many findings are in that bucket and the one upgrade that helps most, like `🔴 FortiOS 7.2.5 (Office firewall): 14 to fix today — upgrade to 7.2.12`. Labels: `unpatched` and the label of the most urgent bucket (`unpatched:now`, `unpatched:week`, `unpatched:eol` or `unpatched:unknown`). This is the body the renderer writes for an item with a "fix today" finding (the renderer's own test fixture, so the CVE text and numbers differ from the sample database): ````markdown 🔴 FortiOS 7.2.5 (Office firewall) 1 today → upgrade to 7.2.7 (fixes it) This item is marked as internet-facing. ### 🔴 Fix today (1) - **CVE-2024-21762** Out-of-bounds write in sslvpnd allows remote code execution — In CISA KEV since 2024-02-09 · ransomware use: known · CISA due date 2024-02-16 · SSVC: exploitation is active · SSVC: automatable · EPSS 94.1% (percentile 100) · public exploit: fortios_sslvpnd · CVSS 9.8 · internet-facing — Upgrade to 7.2.7 or later (7.2.11 is current in this branch). --- unpatched keeps this issue up to date and closes it once the item has nothing left to fix (when the version in unpatched.yml is fixed). To accept this risk, add to unpatched.yml: ```yaml ignore: - cve: CVE-… reason: … until: YYYY-MM-DD ``` ```` - The first line is the recommendation for the item: counts per bucket and the smallest version that fixes the most findings. It says whether that upgrade clears everything (`fixes all 11`) or not (`fixes 61 of 110; 49 have no fix on 7.2`). FYI findings are only counted, not listed. - Then one section per bucket lists its findings: id, a one-sentence title, why it is in that bucket, and what to do. A long list stops after about 60 entries with "...and N more (run `unpatched check` for all)". - The hidden comment at the end (``) is how unpatched finds the issue again. Do not remove it. When an item has no `now`, `week`, `eol` or `unknown` finding left (you upgraded, the advisories were withdrawn, or ignore entries cover them), unpatched comments on the issue and closes it. If findings come back, an issue that unpatched closed is reopened. An issue that *you* closed is left closed, and is listed under "Closed but still affected" in the status issue. ## The status issue One issue called **unpatched status** (label `unpatched:status`, pinned when GitHub allows it) is rewritten on every run. It has the count per bucket (FYI only as a count), the open findings with links to their issues, issues you closed that are still affected, notes, the date of the database and the time of the last run. It also holds a hidden block with what was already sent to chat channels, so messages are not repeated. Do not delete it: the next run would make a new one and may repeat messages once. More in [Notifications](notifications.md#how-state-works). ## Read the JSON report `unpatched check --format json` prints the report. It has a published schema: `unpatched schema report` (also `schema/report.schema.json`). Scripts and agents should read this, not the text output. One, with parts cut out for this page and marked with `...` (the database sources, the long `title` and `evidence`, and the second finding): ```json { "format": 1, "generated_at": "2026-11-24T00:00:00Z", "db": { ... }, "summary": { "now": 1, "week": 0, "eol": 1, "unknown": 0, "fyi": 0, "ignored": 0, "not_affected": 1 }, "findings": [ { "key": "office-firewall/CVE-2024-21762", "item": "Office firewall", "product": "fortios", "product_name": "FortiOS", "version": "7.2.5", "exposure": "internet", "vuln": "CVE-2024-21762", "title": "...", "verdict": "affected", "bucket": "now", "rules": [ "UNP-KEV", "UNP-SSVC-ACTIVE", "UNP-EPSS", "UNP-CVSS", "UNP-EXPOSED" ], "fixed_in": "7.2.7", "latest_in_cycle": null, "cvss": { "version": "3.1", "score": 9.6, "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:W/RC:C" }, "signals": { "kev": { "date_added": "2024-02-09", "due_date": "2024-02-16", "known_ransomware": true, "required_action": "Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.", "vendor_project": "Fortinet", "product": "FortiOS" }, "epss": { "score": 0.8458899855613708, "percentile": 0.9971100091934204, "date": "2026-11-23" }, "ssvc_exploitation": "active", "ssvc_automatable": true }, "evidence": [ ... ], "references": [ "https://fortiguard.com/psirt/FG-IR-24-015", "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-21762" ] }, ... ], "ignored": [], "items": [ ... ... ], "notes": [ "stack[2]: the database has no data for product \"postgresql\" yet. Run `unpatched db update`; if the id may be wrong, `unpatched catalog list` shows the ids.", "stack[3]: the database has no data for product \"home-assistant\" yet. Run `unpatched db update`; if the id may be wrong, `unpatched catalog list` shows the ids." ] } ``` `summary` counts the findings per bucket, plus `ignored` and `not_affected`. Each finding has its `key` (stable across runs), `verdict`, `bucket`, `rules`, `fixed_in`, `fixed_after`, `fix_other_train`, `latest_in_cycle`, `cvss`, `signals` (KEV, EPSS, SSVC, exploits), `evidence` per source and `references`. `notes` lists problems with the run itself: an unknown product id, a stale database, a version that cannot be compared. ## Accept a risk Every issue, and `unpatched explain `, ends with how to accept the risk on purpose. Add this to `unpatched.yml`: ```yaml ignore: - cve: CVE-2024-21762 reason: "The SSL VPN is switched off" until: 2027-01-31 ``` `until` is required. The report tells you when an entry does nothing: `ignore[2]: CVE-2099-1 matches no finding. Check the id or remove it.` and `ignore[1] expired on 2020-01-01; the finding is back.` More in [the config](config.md#ignore-entries). ## Explain a finding ```sh unpatched explain UNP-KEV # what a rule means unpatched explain CVE-2024-21762 # the record: ranges per source, signals unpatched explain office-firewall/CVE-2024-21762 # one finding of your stack, with its evidence ``` The finding key is `/`, where the item is your `name` (lowercased, spaces become `-`) or the product id. `unpatched explain --rules` lists every rule id. Examples are on [Start with the command line](start-cli.md#look-closer). The examples on this page come from a small sample database (`fixtures/smoke/unpatched-db.sqlite`) and the date 2026-11-24. The issue example above comes from the renderer's own test fixture, so its CVE text and numbers differ from the other examples. ## Every rule Rule ids are part of the public interface: they do not change meaning, and renaming one would be a breaking change. | Rule | Title | What it means | Effect | | --- | --- | --- | --- | | `UNP-KEV` | Known to be exploited | CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog, so attackers are using it now. Fix it today. | This rule puts an affected finding in: Fix today (now). | | `UNP-SSVC-ACTIVE` | Exploitation is active | CISA's SSVC assessment says exploitation of this vulnerability is active. Treat it like a known exploited vulnerability and fix it today. | This rule puts an affected finding in: Fix today (now). | | `UNP-EXPLOIT-EXPOSED` | Public exploit and reachable from the internet | A public exploit exists (Exploit-DB or Metasploit) and this item is marked as internet-facing. Anyone can try it against you, so fix it today. | This rule puts an affected finding in: Fix today (now). | | `UNP-EPSS` | Likely to be exploited soon | The EPSS score is at or above your threshold (default 0.05), which means exploitation in the next 30 days is more likely than for most vulnerabilities. Fix it this week. | This rule puts an affected finding in: This week (week), unless a Fix today rule applies. | | `UNP-CVSS` | Critical severity | The CVSS base score is at or above your threshold (default 9.0). Severity alone does not mean it is being exploited, but it is serious enough to fix this week. | This rule puts an affected finding in: This week (week), unless a Fix today rule applies. | | `UNP-EXPOSED` | Affected, reachable from the internet and severe | This version is affected, the item is marked as internet-facing and the CVSS base score is at or above your exposed threshold (default 7.0). Attackers can reach it, so fix it this week. | This rule puts an affected, internet-facing finding with CVSS at or above cvss_week_exposed in: This week (week), unless a Fix today rule applies. | | `UNP-AFFECTED` | Affected, no sign of exploitation | This version is affected, but nothing says it is exploited, it is not both internet-facing and severe, and the scores are below your thresholds. Fix it with your normal updates. | This rule puts an affected finding in: FYI (fyi). | | `UNP-EOL` | End of life | This release cycle no longer gets security fixes (endoflife.date). New vulnerabilities will not be patched, so plan an upgrade to a supported cycle. | This rule makes the finding: End of life (eol), one per stack item. | | `UNP-UNKNOWN-NO-RANGES` | No usable version data yet | No source names the affected versions: new CVEs often wait for NVD analysis, and a record that only says "all versions" or gives no version is not a range anyone checked. It could matter, so check the advisory yourself. The finding goes away when data arrives. | This rule makes the verdict unknown; shown when the signals would make it Fix today or This week. | | `UNP-UNKNOWN-VERSION` | Version cannot be compared | Your configured version does not parse under this product's version scheme. unpatched does not guess, so check the version in unpatched.yml (`unpatched catalog show` says how the product writes versions). | This rule makes the verdict unknown; shown when the signals would make it Fix today or This week. | | `UNP-UNKNOWN-DATA` | A version in the data cannot be read | A source gave a version bound that does not parse under this product's version scheme, so it cannot be compared. Your own version is fine. Read the advisory and check it by hand. | This rule makes the verdict unknown; shown when the signals would make it Fix today or This week. | | `UNP-CONFLICT` | Sources disagree | One source says this version is affected and another says it is not. A source that only says "all versions" does not outweigh one with exact ranges, so the verdict is unknown. Read the evidence to see which source to trust. | This rule is added when sources disagree; it makes the verdict unknown when the only "affected" comes from a source that says all versions. | | `UNP-UNVERIFIED-PRODUCT` | Product not found in the data | The catalog's names for this product match no record in the database, so an empty result would not mean you are safe. Check the catalog entry or report it. | This rule makes a finding in: Unknown, so an empty result is never read as safe. | | `UNP-IGNORED` | Ignored on purpose | An ignore entry in unpatched.yml accepts this risk until its date. The finding is listed separately and comes back when the entry expires. | This rule moves the finding to the ignored list. | | `UNP-IGNORE-EXPIRED` | Ignore entry has expired | An ignore entry matched this finding but its date has passed, so the finding is back. Fix the issue or write a new entry with a new date. | This rule is added when an ignore entry ran out. | | `UNP-STALE-DATA` | Data is out of date | The vulnerability database is older than your warning threshold (default 3 days). Results may miss new vulnerabilities, so check that the daily database build is running. | This rule makes a finding in: Unknown about the database itself. | --- Source: https://amet13.github.io/unpatched/guide/notifications.html # Notifications unpatched tells you in three kinds of message: | Message | When | | --- | --- | | Alert | A finding that is "fix today" is new, or has just become "fix today". Sent once. | | Digest | On your digest day (`digest:` in `unpatched.yml`, default `monday`), even when nothing needs action: the footer says how many items were checked and how old the database is, so silence never means broken. Also sent if the last one is 7 or more days old. | | Resolved | A finding that you were told about is gone. | GitHub issues work differently: one issue per stack item, opened and closed as the item's findings change. See [Findings and rules](findings.md#read-a-github-issue). Chat channels are opt-in. Add them in `unpatched.yml` and give each its secret in an environment variable. In GitHub Actions, add a repository secret and pass it in the workflow's `env:` block (the workflow template has the lines, commented out). Elsewhere, export the variable. A secret is never read from `unpatched.yml`, and never printed in logs or error messages. If a channel is on and its variable is missing, `check --notify` stops with exit code 2 and names every missing variable at once. If a channel fails to deliver (wrong token, service down), the others are still delivered and the run exits with code 4. ## Channels | Channel | In `unpatched.yml` | Environment variable | | --- | --- | --- | | GitHub issues | `issues: true` (default) | none; the workflow's `GITHUB_TOKEN` and `issues: write` | | Telegram | `telegram: { chat: "123456789" }` | `UNPATCHED_TELEGRAM_TOKEN` (the bot token) | | Slack | `slack: true` | `UNPATCHED_SLACK_WEBHOOK` (an incoming webhook URL) | | Discord | `discord: true` | `UNPATCHED_DISCORD_WEBHOOK` (a webhook URL) | | ntfy | `ntfy: { topic: "my-topic" }` | `UNPATCHED_NTFY_TOKEN`, optional (for a protected topic) | | Webhook | `webhook: true` | `UNPATCHED_WEBHOOK_URL`; `UNPATCHED_WEBHOOK_SECRET`, optional | ### GitHub issues On by default inside GitHub Actions (and with `check --github`). Needs the job permission `issues: write` and nothing else. Outside GitHub it is skipped. FYI findings do not get an issue; the others do, with a label for the bucket. Set `issues: false` to turn it off, for example if you only want chat messages. ### Telegram Create a bot with [@BotFather](https://t.me/BotFather) and copy its token into `UNPATCHED_TELEGRAM_TOKEN`. Send the bot a message, then find your chat id (for example with `https://api.telegram.org/bot/getUpdates`) and put it in `chat`. Keep the id quoted. Messages are sent with MarkdownV2 and are cut to fit Telegram's length limit ("...and 3 more"). ### Slack Create an [incoming webhook](https://api.slack.com/messaging/webhooks) for a channel and store its URL in `UNPATCHED_SLACK_WEBHOOK`. ### Discord In the channel settings, Integrations, Webhooks, make a webhook and store its URL in `UNPATCHED_DISCORD_WEBHOOK`. Messages do not mention anyone. ### ntfy Set `topic`. The default server is `https://ntfy.sh`; use `server` for your own. If the topic needs authentication, put the access token in `UNPATCHED_NTFY_TOKEN`. Anyone who knows a public topic name can read it, so choose a long random name. ```yaml notify: ntfy: topic: unpatched-8f3k29dkq1 server: https://ntfy.example.org ``` ### Webhook A JSON `POST` to the URL in `UNPATCHED_WEBHOOK_URL`, for your own tooling: ```json { "event": "alert", "generated_at": "2026-11-24T06:17:00Z", "summary": { "now": 1, "week": 0, "eol": 1, "unknown": 0, "fyi": 0, "ignored": 0, "not_affected": 1 }, "findings": [ { "key": "office-firewall/CVE-2024-21762", "bucket": "now" } ], "report_url": "https://github.com/me/stack/actions/runs/123" } ``` `event` is `alert`, `digest` or `resolved`; each finding is shaped like a finding of [the JSON report](findings.md#read-the-json-report) (the example above is cut down). A `resolved` message has a `resolved` list of keys. `report_url` is set inside GitHub Actions. If you set `UNPATCHED_WEBHOOK_SECRET`, the request carries `X-Unpatched-Signature: sha256=`, the HMAC-SHA256 of the exact body bytes with that secret. Check it before you trust the request. ## Example messages An alert (plain text; Slack, Discord and Telegram get the same lines with their own bold and escaping). This is the renderer's own test fixture: ```text unpatched · 1 to fix today 🔴 Fix today FortiOS 7.2.5 (Office firewall): CVE-2024-21762, exploited, upgrade to 7.2.7+ 🟢 1,412 vulnerabilities checked against your versions: not affected Database: built 2026-11-22 02:41 UTC, 1 day old https://example.com/r ``` A digest, with one line per item and bucket, `(new)` for findings since the last digest, and a footer that says it is still running: ```text unpatched · week 48 🔴 FortiOS 7.2.5 (Office firewall): 1 today → upgrade to 7.2.7 (fixes it) 🟡 Nextcloud 29.0.3: 2 this week → upgrade to 29.0.8 (fixes all 2) ⚫ PostgreSQL 13.12: 1 end of life → upgrade to a supported release ❔ Home Assistant 2024.10.1: 1 unknown ⚪ Redis 7.2.1: 1 FYI → upgrade to 7.2.4 (fixes it) 🟢 1,412 vulnerabilities checked against your versions: not affected Database: built 2026-11-22 02:41 UTC, 1 day old ``` ## How state works unpatched must not repeat itself, and must close what is fixed. It needs to remember what it already told you, and it does this without committing anything to your repository. **In GitHub Actions** the state lives in GitHub itself: - Each finding issue has a hidden marker, ``. A run finds its issues by that marker, and creates, updates, closes or reopens them to match the report. - The pinned **unpatched status** issue holds, in a hidden JSON block, which findings were seen, in which bucket, and which channels were told. That is how an alert is sent once, and how a chat channel you add later still gets the open "fix today" findings once. - The Action never commits and needs only `issues: write`. If you delete the status issue, the next run makes a new one and may repeat messages once. A finding that becomes "fix today" is announced even if it was reported in a lower bucket before. **On the command line or in Docker** the same state is kept in `.unpatched/state.json`, next to your config file. Keep that file between runs. A run with `--dry-run` writes nothing. The state is as durable as the issues or the file. Both stores hold the same information. Treat both as private, like `unpatched.yml`: they name your items and versions. --- Source: https://amet13.github.io/unpatched/guide/catalog.html # Catalog Sources name the same product in different ways: NVD writes CPE names (`fortinet:fortios`), CVE records use the vendor's own words (`Fortinet` / `FortiOS`), CISA KEV has its own pair, and endoflife.date has a slug. The catalog is one small YAML file per product (`catalog/.yml`) that ties these names together, and says how the product's versions are compared. You use the catalog id in `unpatched.yml`: ```yaml stack: - product: fortios version: 7.2.5 ``` Find an id with `unpatched search ` (it matches the id, name, vendor and aliases such as `fortigate`) or `unpatched catalog list`. `unpatched catalog show ` prints the whole entry. ## What is not covered The catalog covers named products: appliances, servers, apps and the like. It does **not** cover: - **WordPress plugins and themes.** `wordpress` is the core only. - **Operating-system packages**, other than ones you name with a `purl`. There is no `debian`, `ubuntu` or `windows` product. Write the package as a purl, for example `pkg:deb/debian/openssl@3.0.11-1~deb12u1?distro=bookworm`; it is looked up in OSV. unpatched does not discover packages for you. - Libraries and anything else that is not listed below, unless you give it as a `purl`. ## Supported products | Id | Name | Vendor | Kind | Versions | End of life | Checked | | --- | --- | --- | --- | --- | --- | --- | | `apache-http-server` | Apache HTTP Server | Apache Software Foundation | server | dotted | tracked (`apache-http-server`) | 2026-11-23 | | `bitbucket` | Atlassian Bitbucket (Data Center and Server) | Atlassian | server | dotted | tracked (`bitbucket`) | 2026-11-23 | | `caddy` | Caddy | Caddy | server | semver | tracked (`caddy`) | 2026-11-23 | | `check-point-quantum` | Check Point Quantum Security Gateway | Check Point | appliance | dotted | not tracked | 2026-11-23 | | `cisco-asa` | Cisco Adaptive Security Appliance (ASA) Software | Cisco | appliance | dotted | not tracked | 2026-11-23 | | `cisco-ftd` | Cisco Firepower Threat Defense (FTD) Software | Cisco | appliance | dotted | not tracked | 2026-11-23 | | `confluence` | Atlassian Confluence (Data Center and Server) | Atlassian | server | dotted | tracked (`confluence`) | 2026-11-23 | | `docker-engine` | Docker Engine (Moby) | Docker | server | dotted | tracked (`docker-engine`) | 2026-11-23 | | `dovecot` | Dovecot | Dovecot | server | dotted | tracked (`dovecot`) | 2026-11-23 | | `drupal` | Drupal | Drupal | cms | dotted | tracked (`drupal`) | 2026-11-23 | | `elasticsearch` | Elasticsearch | Elastic | database | dotted | tracked (`elasticsearch`) | 2026-11-23 | | `esxi` | VMware ESXi | Broadcom | os | dotted | tracked (`esxi`) | 2026-11-23 | | `exchange-server` | Microsoft Exchange Server | Microsoft | server | dotted | tracked (`msexchange`) | 2026-11-23 | | `exim` | Exim | Exim | server | dotted | tracked (`exim`) | 2026-11-23 | | `fortimanager` | FortiManager | Fortinet | appliance | dotted | not tracked | 2026-11-23 | | `fortios` | FortiOS | Fortinet | appliance | dotted | tracked (`fortios`) | 2026-11-23 | | `fortiproxy` | FortiProxy | Fortinet | appliance | dotted | not tracked | 2026-11-23 | | `fortiweb` | FortiWeb | Fortinet | appliance | dotted | not tracked | 2026-11-23 | | `gitea` | Gitea | Gitea | server | semver | not tracked | 2026-11-23 | | `gitlab` | GitLab | GitLab | server | dotted | tracked (`gitlab`) | 2026-11-23 | | `grafana` | Grafana | Grafana Labs | app | semver | tracked (`grafana`) | 2026-11-23 | | `haproxy` | HAProxy | HAProxy | server | dotted | tracked (`haproxy`) | 2026-11-23 | | `home-assistant` | Home Assistant | Home Assistant | app | calver | not tracked | 2026-11-23 | | `ivanti-connect-secure` | Ivanti Connect Secure | Ivanti | appliance | dotted | not tracked | 2026-11-23 | | `ivanti-epmm` | Ivanti Endpoint Manager Mobile (EPMM) | Ivanti | server | dotted | not tracked | 2026-11-23 | | `jellyfin` | Jellyfin | Jellyfin | server | semver | not tracked | 2026-11-23 | | `jenkins` | Jenkins | Jenkins Project | server | dotted | tracked (`jenkins`) | 2026-11-23 | | `jira` | Atlassian Jira (Data Center and Server) | Atlassian | server | dotted | tracked (`jira-software`) | 2026-11-23 | | `joomla` | Joomla! | Joomla! Project | cms | dotted | tracked (`joomla`) | 2026-11-23 | | `keycloak` | Keycloak | Red Hat | server | semver | tracked (`keycloak`) | 2026-11-23 | | `kubernetes` | Kubernetes | Kubernetes | server | semver | tracked (`kubernetes`) | 2026-11-23 | | `linux-kernel` | Linux kernel | Linux | os | dotted | tracked (`linux`) | 2026-11-23 | | `mariadb` | MariaDB | MariaDB Foundation | database | dotted | tracked (`mariadb`) | 2026-11-23 | | `mattermost` | Mattermost | Mattermost | server | semver | tracked (`mattermost`) | 2026-11-23 | | `moveit-transfer` | MOVEit Transfer | Progress | server | dotted | not tracked | 2026-11-23 | | `mysql` | MySQL | Oracle | database | dotted | tracked (`mysql`) | 2026-11-23 | | `netscaler` | NetScaler ADC and Gateway | Cloud Software Group | appliance | dotted | not tracked | 2026-11-23 | | `nextcloud` | Nextcloud Server | Nextcloud | server | dotted | tracked (`nextcloud`) | 2026-11-23 | | `nginx` | nginx | F5 | server | dotted | tracked (`nginx`) | 2026-11-23 | | `nodejs` | Node.js | OpenJS Foundation | server | semver | tracked (`nodejs`) | 2026-11-23 | | `openssh` | OpenSSH | OpenBSD | server | dotted | not tracked | 2026-11-23 | | `openssl` | OpenSSL | OpenSSL | library | dotted | tracked (`openssl`) | 2026-11-23 | | `opnsense` | OPNsense | Deciso | os | dotted | tracked (`opnsense`) | 2026-11-23 | | `pan-os` | PAN-OS | Palo Alto Networks | appliance | dotted | tracked (`panos`) | 2026-11-23 | | `pfsense` | pfSense | Netgate | os | dotted | not tracked | 2026-11-23 | | `php` | PHP | PHP Group | server | dotted | tracked (`php`) | 2026-11-23 | | `phpmyadmin` | phpMyAdmin | phpMyAdmin | app | dotted | tracked (`phpmyadmin`) | 2026-11-23 | | `plex-media-server` | Plex Media Server | Plex | server | dotted | not tracked | 2026-11-23 | | `postfix` | Postfix | Postfix | server | dotted | tracked (`postfix`) | 2026-11-23 | | `postgresql` | PostgreSQL | PostgreSQL | database | dotted | tracked (`postgresql`) | 2026-11-23 | | `proxmox-ve` | Proxmox Virtual Environment | Proxmox | os | dotted | tracked (`proxmox-ve`) | 2026-11-23 | | `python` | Python (CPython) | Python Software Foundation | server | pep440 | tracked (`python`) | 2026-11-23 | | `qnap-qts` | QNAP QTS | QNAP | os | dotted | not tracked | 2026-11-23 | | `redis` | Redis | Redis | database | dotted | tracked (`redis`) | 2026-11-23 | | `rocket-chat` | Rocket.Chat | Rocket.Chat | server | semver | tracked (`rocket-chat`) | 2026-11-23 | | `roundcube` | Roundcube Webmail | Roundcube | app | dotted | tracked (`roundcube`) | 2026-11-23 | | `routeros` | MikroTik RouterOS | MikroTik | os | dotted | tracked (`routeros`) | 2026-11-23 | | `samba` | Samba | Samba | server | dotted | tracked (`samba`) | 2026-11-23 | | `screenconnect` | ConnectWise ScreenConnect | ConnectWise | server | dotted | not tracked | 2026-11-23 | | `sonicos` | SonicOS | SonicWall | appliance | dotted | not tracked | 2026-11-23 | | `synology-dsm` | Synology DiskStation Manager (DSM) | Synology | os | synology | not tracked | 2026-11-23 | | `tomcat` | Apache Tomcat | Apache Software Foundation | server | dotted | tracked (`tomcat`) | 2026-11-23 | | `traefik` | Traefik | Traefik Labs | server | semver | tracked (`traefik`) | 2026-11-23 | | `truenas` | TrueNAS | iXsystems | os | dotted | tracked (`truenas`) | 2026-11-23 | | `vaultwarden` | Vaultwarden | Vaultwarden | server | semver | not tracked | 2026-11-23 | | `vcenter` | VMware vCenter Server | Broadcom | server | dotted | tracked (`vcenter`) | 2026-11-23 | | `veeam-backup-replication` | Veeam Backup & Replication | Veeam | server | dotted | tracked (`veeam-backup-and-replication`) | 2026-11-23 | | `wordpress` | WordPress | WordPress | cms | dotted | tracked (`wordpress`) | 2026-11-23 | | `zabbix` | Zabbix | Zabbix | server | dotted | tracked (`zabbix`) | 2026-11-23 | | `zimbra` | Zimbra Collaboration | Synacor | server | dotted | not tracked | 2026-11-23 | | `zyxel-zld` | Zyxel firewalls (ZLD: USG FLEX, ATP, VPN series) | Zyxel | appliance | dotted | not tracked | 2026-11-23 | 71 products. Columns: - **Versions** is the scheme used to compare versions of this product: `dotted` (numbers separated by dots), `semver`, `calver`, `debian`, `rpm`, `apk`, `pep440` or a named custom scheme. - **End of life** says whether the product has an endoflife.date slug. If it does, `unpatched` reports a release cycle that is past its end of life. If it does not (endoflife.date has no page for it), end of life is not checked for that product. - **Checked** is the date a person last verified the entry against real CVE and NVD data. ## How an entry is checked A wrong name in the catalog would silently mean "no vulnerabilities". Three things guard against that: 1. A person checks every entry against a real CVE record and NVD entry before it is added, and sets `checked:` to that date. The pull request that adds or changes an entry names the CVE records its CNA names were copied from. 2. `cargo xtask catalog verify` re-checks the CPE, KEV and endoflife keys against the live sources. It runs weekly in the repository. It cannot check CNA keys, because CVE.org cannot be searched by vendor. 3. When the daily database is built, a product whose names match nothing in the data is marked unverified. A stack item with such a product shows up as an `unknown` finding with the rule `UNP-UNVERIFIED-PRODUCT`, so an empty result is never read as "safe". Known gaps: - `mariadb`, `proxmox-ve` and `phpmyadmin` have no CNA keys: every record names the product `n/a`. They match on CPE (and KEV for phpMyAdmin). - `truenas` matches TrueNAS CORE only: TrueNAS SCALE has no CPE in NVD. - `docker-engine` has no KEV key: KEV only lists Docker Desktop. - Some products have no endoflife.date page, so their end of life is not checked (see the table above). ## Ask for a product If something you run is not here, it cannot be matched yet. Open an issue with the **Add a product** template at and give: - the product name and vendor, and where its releases are published - how its versions look (`7.2.5`, `2024.10.1`, `15.4`) and whether they follow semver, calendar versioning or something unusual - one CVE that affects it, so the names can be checked against a real record - its endoflife.date page, if there is one Or add it yourself: copy a similar file in `catalog/`, fix the names, add a corpus case for one affected and one fixed version, and run `cargo xtask check`. The steps are in [CONTRIBUTING.md](https://github.com/Amet13/unpatched/blob/main/CONTRIBUTING.md#adding-a-product). A person checks every new entry before it is merged. For a library or an operating system package that is not a catalog product, use a `purl` in your stack instead: those are looked up in OSV and need no catalog entry (for example `pkg:deb/debian/openssl@3.0.11-1~deb12u1?distro=bookworm`). WordPress plugins and themes are not covered either way. See the [config reference](config.md#the-stack). --- Source: https://amet13.github.io/unpatched/guide/action.html # GitHub Action `amet13/unpatched` is a composite Action. It downloads the release binary for the runner, checks its SHA-256 against the release, caches it, runs `unpatched check --notify`, and writes the report to the run summary. The step-by-step setup is on [Start with GitHub](start-github.md). ```yaml - uses: actions/checkout@v7 - uses: amet13/unpatched@v3 ``` It needs `actions/checkout` before it (to read `unpatched.yml`) and the job permissions `contents: read` and `issues: write`. It sets `GITHUB_TOKEN` for itself. Linux, macOS and Windows runners are supported, on x86_64 and, except for Windows, arm64. ## Inputs | Input | Default | What it does | | --- | --- | --- | | `args` | empty | Extra arguments for `unpatched check`, for example `--exit-code --verbose`. | | `binary` | empty | Path to an unpatched binary you built. Skips the download. Used by this repository's CI. | | `config` | `unpatched.yml` | Path to your stack file. | | `db` | empty | Path to a database file. Empty: download the daily database. | | `dry-run` | `false` | Send nothing and write no issues; only print what would happen. | | `version` | empty | The unpatched release to run, like v3.0.0, v3.1.0-rc.1 or v3 (the newest stable v3.x.y). Empty: the version in the tag you used (`uses: amet13/unpatched@v3.0.0`), else the latest release. Set it when you pin the action to a commit SHA (`uses: amet13/unpatched@`), because a SHA says nothing about the version. | `version` takes a full tag (`v3.0.0`), or a major or minor prefix (`v3`, `v3.0`), which means the newest published release that starts with it. It defaults to the version in the tag you wrote after `@`, and to the latest release when that is a branch or a commit. The checksum comes from the `.sha256` file of the same release; on a mismatch the Action stops and does not run the file. The action always passes `--notify --format markdown` and writes the report to the run summary (`$GITHUB_STEP_SUMMARY`). `args` adds options to `unpatched check`, split on spaces. ## Outputs The Action has no outputs. The report is in the run summary, findings are in issues, and the exit code of the step is the exit code of `unpatched`: see [Exit codes](start-cli.md#exit-codes). With `args: --exit-code` the step fails (exit code 1) when something is to be fixed today, which turns the run red in the Actions tab and sends GitHub's own failure email. ## Secrets for chat channels The Action reads secrets from the environment of the step. Set the ones you use: ```yaml - uses: amet13/unpatched@v3 env: UNPATCHED_TELEGRAM_TOKEN: ${{ secrets.UNPATCHED_TELEGRAM_TOKEN }} UNPATCHED_SLACK_WEBHOOK: ${{ secrets.UNPATCHED_SLACK_WEBHOOK }} ``` Names for each channel are on [Notifications](notifications.md). ## Examples **Pin an exact release**, so an upgrade is your decision: ```yaml - uses: amet13/unpatched@v3.0.0 ``` **Try it without side effects.** Prints what would happen; opens no issues and sends nothing: ```yaml - uses: amet13/unpatched@v3 with: dry-run: "true" ``` **Fail the run on a "fix today" finding**, and see more in the summary: ```yaml - uses: amet13/unpatched@v3 with: args: --exit-code --verbose ``` **Another config path**, if the file is not called `unpatched.yml` or is in a folder: ```yaml - uses: amet13/unpatched@v3 with: config: infra/stack.yml ``` Use one config per repository. Issues, the status issue and the delivery state belong to the repository, and a run closes every issue whose finding is not in *its* report. Two configs in one repository would close each other's issues. An MSP uses one private repository per client. **A database you built or downloaded yourself:** ```yaml - uses: amet13/unpatched@v3 with: db: ./unpatched-db.sqlite ``` **A binary you built** (used by this repository's own tests): `binary: target/release/unpatched` skips the download. ## Behaviour to know - A run does not commit and does not need `contents: write`. - A scheduled workflow is paused by GitHub after 60 days without repository activity **in public repositories**. Private repositories are not paused. - The cache key is the release tag and the runner, so the binary is downloaded once per release and runner. --- Source: https://amet13.github.io/unpatched/guide/cli.html # Command reference `unpatched [options]`. The help below is the program's own, written by `cargo xtask docs`. Run `unpatched --help` for the same on your machine. ## Global options These work with every command, before or after its name: | Option | Meaning | | --- | --- | | `--config FILE` | Your stack and settings. Default `unpatched.yml`. | | `--db FILE` | The vulnerability database. Default `$UNPATCHED_DB`, else the cache folder. | | `--offline` | No network: no database download and no OSV lookups for packages. | | `-v`, `--verbose` | More detail: evidence in reports; `-v` info logs, `-vv` debug logs. | | `--quiet` | Print nothing on stdout except errors; a report still goes to `--output`. Cannot be used with `-v`. | | `--color WHEN` | `auto` (default), `always` or `never`. | ## Exit codes | Code | Meaning | | --- | --- | | 0 | OK | | 1 | `check --exit-code` found something to fix today | | 2 | Usage or configuration error: bad YAML, unknown product, a missing secret | | 3 | Data error: no database, database too old, a download or source failed | | 4 | Delivery error: a notification channel or GitHub issue failed | ## Environment variables | Variable | Meaning | | --- | --- | | `UNPATCHED_DB` | The same as `--db`. | | `UNPATCHED_DB_URL` | Where `check` and `db update` download the database from. Default: the `db` release of `Amet13/unpatched`. | | `UNPATCHED_CACHE_DIR` | Where the downloaded database is kept. Default: your system's cache folder, plus `unpatched`. | | `UNPATCHED_TELEGRAM_TOKEN`, `UNPATCHED_SLACK_WEBHOOK`, `UNPATCHED_DISCORD_WEBHOOK`, `UNPATCHED_NTFY_TOKEN`, `UNPATCHED_WEBHOOK_URL`, `UNPATCHED_WEBHOOK_SECRET` | Secrets for [notifications](notifications.md). | | `GITHUB_TOKEN`, `GITHUB_REPOSITORY`, `GITHUB_API_URL` | Used for GitHub issues (set by GitHub Actions). | ## Commands ### `unpatched` ```text Tells you when software you run has a vulnerability you need to act on Usage: unpatched [OPTIONS] Commands: check Match your stack against the database and print the report init Write a starting unpatched.yml (and, with --github, the workflow) explain Show the evidence: a rule id, a CVE, or a finding key search Find a product in the catalog catalog The products unpatched knows db The vulnerability database mcp Run the MCP server on stdio, for AI agents schema Print a JSON Schema help Print this message or the help of the given subcommand(s) Options: --config Your stack and settings [default: unpatched.yml] --db The vulnerability database (default: $UNPATCHED_DB, else the cache directory) [env: UNPATCHED_DB=] --offline Use no network: no database download and no package (OSV) lookups -v, --verbose... More detail (FYI findings and evidence in reports, `-v` info logs, `-vv` debug logs) --quiet Print nothing on stdout except errors. A report still goes to --output --color When to use colour [default: auto] [possible values: auto, always, never] -h, --help Print help -V, --version Print version Exit codes: 0 ok 1 `check --exit-code` found something to fix today 2 usage or configuration error 3 data error (no database, database too old, a download or source failed) 4 delivery error (a notification channel or GitHub issue failed) Docs: https://amet13.github.io/unpatched/ ``` ### `unpatched check` ```text Match your stack against the database and print the report Usage: unpatched check [OPTIONS] Options: --config Your stack and settings [default: unpatched.yml] --format How to print the report [default: text] [possible values: text, json, markdown, sarif] --db The vulnerability database (default: $UNPATCHED_DB, else the cache directory) [env: UNPATCHED_DB=] --output Write the report to FILE instead of stdout. A file named by $GITHUB_STEP_SUMMARY is appended to, so other steps keep their text --exit-code Exit with 1 when something has to be fixed today --offline Use no network: no database download and no package (OSV) lookups --notify Also send the findings to the configured channels (issues, chat) -v, --verbose... More detail (FYI findings and evidence in reports, `-v` info logs, `-vv` debug logs) --dry-run With --notify: send and write nothing; print each message and what would be written --quiet Print nothing on stdout except errors. A report still goes to --output --color When to use colour [default: auto] [possible values: auto, always, never] --github Keep delivery state and issues in GitHub (automatic inside GitHub Actions) --allow-stale Do not fail when the database is older than `stale_fail_days` -h, --help Print help -V, --version Print version ``` ### `unpatched init` ```text Write a starting unpatched.yml (and, with --github, the workflow) Usage: unpatched init [OPTIONS] Options: --config Your stack and settings [default: unpatched.yml] --github Also write .github/workflows/unpatched.yml --db The vulnerability database (default: $UNPATCHED_DB, else the cache directory) [env: UNPATCHED_DB=] --force Overwrite files that exist --offline Use no network: no database download and no package (OSV) lookups -v, --verbose... More detail (FYI findings and evidence in reports, `-v` info logs, `-vv` debug logs) --quiet Print nothing on stdout except errors. A report still goes to --output --color When to use colour [default: auto] [possible values: auto, always, never] -h, --help Print help -V, --version Print version ``` ### `unpatched explain` ```text Show the evidence: a rule id, a CVE, or a finding key Usage: unpatched explain [OPTIONS] [TARGET] Arguments: [TARGET] `UNP-KEV`, `CVE-2024-21762` or a finding key such as `office-firewall/CVE-2024-21762` Options: --config Your stack and settings [default: unpatched.yml] --rules List every rule id with its title, and stop --db The vulnerability database (default: $UNPATCHED_DB, else the cache directory) [env: UNPATCHED_DB=] --offline Use no network: no database download and no package (OSV) lookups -v, --verbose... More detail (FYI findings and evidence in reports, `-v` info logs, `-vv` debug logs) --quiet Print nothing on stdout except errors. A report still goes to --output --color When to use colour [default: auto] [possible values: auto, always, never] -h, --help Print help -V, --version Print version ``` ### `unpatched search` ```text Find a product in the catalog Usage: unpatched search [OPTIONS] ... Arguments: ... Words from the product's name, vendor or alias Options: --config Your stack and settings [default: unpatched.yml] --db The vulnerability database (default: $UNPATCHED_DB, else the cache directory) [env: UNPATCHED_DB=] --offline Use no network: no database download and no package (OSV) lookups -v, --verbose... More detail (FYI findings and evidence in reports, `-v` info logs, `-vv` debug logs) --quiet Print nothing on stdout except errors. A report still goes to --output --color When to use colour [default: auto] [possible values: auto, always, never] -h, --help Print help -V, --version Print version ``` ### `unpatched catalog list` ```text List the products Usage: unpatched catalog list [OPTIONS] Options: --config Your stack and settings [default: unpatched.yml] --kind Only this kind of product [possible values: appliance, app, os, database, server, library, desktop, cms] --db The vulnerability database (default: $UNPATCHED_DB, else the cache directory) [env: UNPATCHED_DB=] --offline Use no network: no database download and no package (OSV) lookups -v, --verbose... More detail (FYI findings and evidence in reports, `-v` info logs, `-vv` debug logs) --quiet Print nothing on stdout except errors. A report still goes to --output --color When to use colour [default: auto] [possible values: auto, always, never] -h, --help Print help -V, --version Print version ``` ### `unpatched catalog show` ```text Show one product (id or alias) Usage: unpatched catalog show [OPTIONS] Arguments: A product id or alias, like `fortios` or `fortigate` Options: --config Your stack and settings [default: unpatched.yml] --db The vulnerability database (default: $UNPATCHED_DB, else the cache directory) [env: UNPATCHED_DB=] --offline Use no network: no database download and no package (OSV) lookups -v, --verbose... More detail (FYI findings and evidence in reports, `-v` info logs, `-vv` debug logs) --quiet Print nothing on stdout except errors. A report still goes to --output --color When to use colour [default: auto] [possible values: auto, always, never] -h, --help Print help -V, --version Print version ``` ### `unpatched db update` ```text Download the latest prebuilt database now Usage: unpatched db update [OPTIONS] Options: --config Your stack and settings [default: unpatched.yml] --db The vulnerability database (default: $UNPATCHED_DB, else the cache directory) [env: UNPATCHED_DB=] --offline Use no network: no database download and no package (OSV) lookups -v, --verbose... More detail (FYI findings and evidence in reports, `-v` info logs, `-vv` debug logs) --quiet Print nothing on stdout except errors. A report still goes to --output --color When to use colour [default: auto] [possible values: auto, always, never] -h, --help Print help -V, --version Print version ``` ### `unpatched db info` ```text Show what is in the database and how old it is Usage: unpatched db info [OPTIONS] Options: --config Your stack and settings [default: unpatched.yml] --json Print the counts and the sources as JSON --db The vulnerability database (default: $UNPATCHED_DB, else the cache directory) [env: UNPATCHED_DB=] --offline Use no network: no database download and no package (OSV) lookups -v, --verbose... More detail (FYI findings and evidence in reports, `-v` info logs, `-vv` debug logs) --quiet Print nothing on stdout except errors. A report still goes to --output --color When to use colour [default: auto] [possible values: auto, always, never] -h, --help Print help -V, --version Print version ``` ### `unpatched db build` ```text Build the database from the sources (slow; CI does this daily) Usage: unpatched db build [OPTIONS] --out Options: --config Your stack and settings [default: unpatched.yml] --out Where to write. A name ending in `.zst` is compressed --cvelist A checkout of CVEProject/cvelistV5. Without it CVE.org is skipped --db The vulnerability database (default: $UNPATCHED_DB, else the cache directory) [env: UNPATCHED_DB=] --nvd-years NVD years to read, like `2018..2026` (default: all) --offline Use no network: no database download and no package (OSV) lookups --nvd-cache Keep downloaded NVD feeds here between builds -v, --verbose... More detail (FYI findings and evidence in reports, `-v` info logs, `-vv` debug logs) --quiet Print nothing on stdout except errors. A report still goes to --output --strict Fail, and write nothing, when any source failed (CI uses this) --color When to use colour [default: auto] [possible values: auto, always, never] -h, --help Print help -V, --version Print version ``` ### `unpatched db sources-health` ```text Ask every source for one known item; fails when any source fails Usage: unpatched db sources-health [OPTIONS] Options: --config Your stack and settings [default: unpatched.yml] --db The vulnerability database (default: $UNPATCHED_DB, else the cache directory) [env: UNPATCHED_DB=] --offline Use no network: no database download and no package (OSV) lookups -v, --verbose... More detail (FYI findings and evidence in reports, `-v` info logs, `-vv` debug logs) --quiet Print nothing on stdout except errors. A report still goes to --output --color When to use colour [default: auto] [possible values: auto, always, never] -h, --help Print help -V, --version Print version ``` ### `unpatched mcp` ```text Run the MCP server on stdio, for AI agents Usage: unpatched mcp [OPTIONS] Options: --config Your stack and settings [default: unpatched.yml] --db The vulnerability database (default: $UNPATCHED_DB, else the cache directory) [env: UNPATCHED_DB=] --offline Use no network: no database download and no package (OSV) lookups -v, --verbose... More detail (FYI findings and evidence in reports, `-v` info logs, `-vv` debug logs) --quiet Print nothing on stdout except errors. A report still goes to --output --color When to use colour [default: auto] [possible values: auto, always, never] -h, --help Print help -V, --version Print version ``` ### `unpatched schema` ```text Print a JSON Schema Usage: unpatched schema [OPTIONS] Arguments: `config` (unpatched.yml) or `report` (check --format json) [possible values: config, report] Options: --config Your stack and settings [default: unpatched.yml] --db The vulnerability database (default: $UNPATCHED_DB, else the cache directory) [env: UNPATCHED_DB=] --offline Use no network: no database download and no package (OSV) lookups -v, --verbose... More detail (FYI findings and evidence in reports, `-v` info logs, `-vv` debug logs) --quiet Print nothing on stdout except errors. A report still goes to --output --color When to use colour [default: auto] [possible values: auto, always, never] -h, --help Print help -V, --version Print version ``` --- Source: https://amet13.github.io/unpatched/guide/with-an-agent.html # With an agent unpatched is built to be used by agents as well as people. The verdicts are deterministic and carry their evidence, so an agent can pass them on without guessing. The agent never decides a verdict: it asks. What is available: | Piece | What it does | | --- | --- | | MCP server (`unpatched mcp`) | Read-only tools: check your stack, ask if a product and version is affected, explain, search the catalog, show database status. | | Skills | Instructions for four jobs: set up, inventory, plan upgrades, explain. | | Plugin and extension | Claude Code plugin and Gemini CLI extension that install the skills and the server together. | | JSON report and schemas | `check --format json`, with `schema/report.schema.json`. Read this, not the text output. | | `llms.txt`, `llms-full.txt` | The guide, for a model: and . | All of them need the `unpatched` command on the `PATH` (see [Start with the command line](start-cli.md)), except the Docker form of the server. ## The MCP server `unpatched mcp` speaks the Model Context Protocol on stdio (newline-delimited JSON-RPC). Every tool is read-only: nothing is written, no message is sent, no issue is opened. | Tool | Arguments | What it returns | | --- | --- | --- | | `check_stack` | `config_path`, `bucket`, `limit`, `include_evidence` (all optional) | The report for `unpatched.yml`. It always has `summary` (counts) and `items` (the upgrade that helps most, per stack item). `findings` lists, by default, only the `now`, `week`, `eol` and `unknown` buckets, at most 50, without evidence; ask for `fyi` with `bucket`, for more with `limit`, and for the evidence and references with `include_evidence`. Packages are looked up in OSV unless the server runs with `--offline`. | | `is_affected` | `product`, `version`, `cve` (optional), `exposure` (optional), `include_raw` (optional) | An answer for one product at one version, without a config file. With `cve` it always gives a verdict (`affected`, `not-affected` or `unknown`) with evidence. A source's own text is cut to about 200 characters unless `include_raw` is true. | | `explain` | `id`, `include_raw` (optional) | A CVE or advisory id (summary, CVSS, affected ranges per source, exploitation signals), a rule id such as `UNP-KEV`, or a finding key such as `office-firewall/CVE-2024-21762` (judged with the server's `unpatched.yml`). | | `search_catalog` | `text` | Catalog product ids by name, vendor or alias, with the version scheme and endoflife slug. | | `db_status` | none | When the database was built, its age, whether it is stale, and the state of each source. Run this before trusting an answer. | A tool that fails because of its input (an unknown product, an argument it does not have, a missing database) answers with an error that the model can read and fix; it is not a protocol error. `check_stack` reads only the server's own config file, or a file named `unpatched*.yml` or `unpatched*.yaml` under the folder the server runs in (links are followed first, so a link cannot point elsewhere). Any other `config_path` is refused, and an error about a config file never repeats what the file says, only the line and column. `is_affected` needs an exact version: the instructions tell the agent to ask you, not to guess. Options before `mcp` apply to the server: `unpatched --config path/to/unpatched.yml --db path/to/db.sqlite --offline mcp`. ### Claude Code Install the plugin (skills and server together): ```text /plugin marketplace add Amet13/unpatched /plugin install unpatched@unpatched ``` or add only the server: ```sh claude mcp add unpatched -- unpatched mcp ``` ### Gemini CLI ```sh gemini extensions install https://github.com/Amet13/unpatched ``` The extension (`gemini-extension.json`) starts `unpatched mcp`. ### Any other MCP client Run the command `unpatched` with the argument `mcp`. For clients that use a JSON config: ```json { "mcpServers": { "unpatched": { "command": "unpatched", "args": ["mcp"] } } } ``` ### Docker For clients that start servers with Docker, mount the folder with `unpatched.yml`: ```sh docker run -i --rm \ -e UNPATCHED_CACHE_DIR=/work/.cache \ --mount type=bind,src=/path/to/stack,dst=/work \ ghcr.io/amet13/unpatched mcp ``` `-i` keeps stdin open, which the protocol needs. See [Start with Docker](start-docker.md) for the user and cache options. ### The MCP Registry The server is listed in the MCP Registry as `io.github.Amet13/unpatched` (`server.json` in the repository), as an OCI package on `ghcr.io/amet13/unpatched` that runs `mcp` over stdio. ## Skills The skills are folders with a `SKILL.md` in `skills/`. The plugin and extension install them. For other agents that read skills, copy the folders into `.claude/skills/` or `.agents/skills/` in your project. | Skill | Use it when | | --- | --- | | `set-up-unpatched` | You want to be told about vulnerabilities in what you run. The agent asks what you run and its versions, finds the catalog ids, writes `unpatched.yml` and the workflow in a private repository, and runs the first check. It does not guess versions and does not put secrets in files. | | `inventory-from-notes` | You have a pasted list, a `docker-compose.yml`, Kubernetes manifests, package lists or screenshots of admin pages. The agent proposes stack entries (`product` or `purl`), leaves out anything without a real version, and checks them with `unpatched check`. | | `plan-upgrades` | You have several findings. The agent orders them into a patch plan by bucket and exposure, with target versions from the data. | | `explain-a-finding` | You ask why something is flagged, what a rule id means, or "am I affected by CVE-X?". The agent answers from the verdict, rules and evidence, and does not turn `unknown` into "not affected". | Agents should write `unpatched.yml` from facts you give them, never from a guess. The rule in every skill: never invent a version. ## Evals `evals/` has small tasks that check whether the skills help an agent: set up a homelab, read a compose file, answer "am I affected by CVE-2024-21762 with FortiOS 7.2.5?", plan upgrades, explain a finding. Each is scored by running `unpatched check` on what the agent wrote or by comparing the answer to the sample database. No results are published yet; running agents costs money, so the owner runs them by hand. See `evals/README.md` to run them yourself. ## For agents that work on this repository `AGENTS.md` has the layout and the one command to run before a commit (`cargo xtask check`). `CONTEXT.md` is the glossary. The end-to-end corpus (`corpus/`) is the specification: a wrong verdict is fixed by adding a failing case first. See [Accuracy](accuracy.md). --- Source: https://amet13.github.io/unpatched/guide/data.html # Data unpatched uses only open data that needs no account or API key. A workflow in this repository builds one SQLite database every day and publishes it. Your Action or command downloads it and matches your stack locally. ## Sources | Source | What it gives | How it is read | Terms | | --- | --- | --- | --- | | [CISA KEV](https://www.cisa.gov/kev) | Known exploited vulnerabilities: date added, due date, ransomware use | One JSON file, daily | Public domain (US government) | | [NVD](https://nvd.nist.gov) | CPE version ranges and CVSS scores | The yearly JSON 2.0 feeds, which carry a SHA-256 in a `.meta` file; no API key | Public; NVD notice in [NOTICE](https://github.com/Amet13/unpatched/blob/main/NOTICE) | | [CVE.org](https://www.cve.org) (`cvelistV5`) | Vendor-supplied affected versions from the CVE record, plus CISA's SSVC exploitation and automatable flags (CISA ADP, "Vulnrichment") | A shallow clone of the repository in the build workflow | CVE Terms of Use; the CISA data is CC0 | | [EPSS](https://www.first.org/epss) | The estimated chance each CVE is exploited in the next 30 days | One daily file | Free, with attribution | | [endoflife.date](https://endoflife.date) | End of life dates and the newest release of each cycle | The JSON API, once per product | MIT | | [Exploit-DB](https://www.exploit-db.com) and [Metasploit](https://github.com/rapid7/metasploit-framework) | Whether a public exploit exists | Only the CVE ids from the index and the module metadata | Exploit-DB GPLv2 and Metasploit BSD-3: no exploit code or text is stored | | [OSV](https://osv.dev) | Package vulnerabilities (Debian, Alpine, PyPI, npm, Go and more) | Queried live at run time, only for `purl` items; not in the database | CC-BY 4.0 | Attributions and exact terms are in [NOTICE](https://github.com/Amet13/unpatched/blob/main/NOTICE). The database holds facts and identifiers taken from these sources, not their prose or code beyond what a finding shows. Not used: vendor advisories (CSAF) and the EUVD and CIRCL mirrors. They may come later. Today the fixed version is read from the upper bound of an affected range, and the newest release in a cycle from endoflife.date. ## How often | What | When | | --- | --- | | The database is built and published | Every day at 02:41 UTC, by `build-db.yml` | | Your Action runs | As you schedule it; the template uses 06:17 UTC | | The command line fetches a new database | When the one on disk is more than 20 hours old, or `unpatched db update` | | The sources are probed for format changes | Every Wednesday (`unpatched db sources-health`), and a failure opens an issue | The database is published as assets of the rolling pre-release `db` of this repository: `unpatched-db.sqlite.zst`, `SHA256SUMS` and a GitHub build attestation. The release is replaced every day, so do not pin to it. ## When a source fails | What fails | What happens | | --- | --- | | CISA KEV or NVD, at build time | No database is built. The previous assets stay as they are, and a watchdog opens an issue. A broken database is never published. | | EPSS, CVE.org, endoflife.date, Exploit-DB or Metasploit, at build time | The database is built without that source and records it as failed. `unpatched db info` shows its state. Findings still work; signals from that source are missing. | | The daily build stops for several days | The database gets old. After `stale_warn_days` (3) the report has a "data is out of date" finding. After `stale_fail_days` (7) `check` exits with code 3, unless `--allow-stale`. | | The download fails when you run | If an older database is on disk, `check` warns and uses it. If there is none, it exits with code 3. | | OSV is down for a `purl` item | The item cannot be checked; the report says so. Catalog products are not affected. | | A source changes its format | The weekly health check opens an issue, "Sources need a look". A person updates the parser. Until then the last good database is used. | The freshness of every source is in the report (`db.sources` in the JSON, and `unpatched db info`). ## Check what you downloaded The checksum of the database is verified on download against `SHA256SUMS` from the same release. You can also verify the build attestation: ```sh gh attestation verify unpatched-db.sqlite.zst --repo Amet13/unpatched ``` Anyone can build the same kind of file from the sources, and compare: ```sh git clone --depth 1 https://github.com/CVEProject/cvelistV5 cvelist unpatched db build --cvelist cvelist --out unpatched-db.sqlite.zst ``` Then pass it with `--db`. `UNPATCHED_DB_URL` points the download somewhere else, for example an internal mirror. ## What is in the database Only catalog products go in: their vulnerabilities with the affected ranges each source gives, all of KEV, EPSS scores, exploit flags, end of life cycles, and a `meta` table with the schema version, the build time and the state of every source. Packages are not stored; they go to OSV when you ask. A binary refuses a database with a schema version it does not know, and asks to be upgraded. --- Source: https://amet13.github.io/unpatched/guide/accuracy.html # How accurate is it **No accuracy has been measured yet, and this page does not claim one.** There is no published figure for how many affected findings are found or how many findings are wrong. What exists is a method, described here, and a list of things that can go wrong. A report with no findings is not a guarantee that nothing is affected. ## How verdicts are tested **The corpus is the specification.** `corpus/` holds more than 70 end-to-end cases. Each one is a small stack, a frozen slice of source data and the exact findings that must come out (`expect` is exact: a finding that is reported but not listed fails the case). The cases cover every rule id and every bucket, version schemes (dotted, semver, calver, Debian, RPM, APK, PEP 440), range boundaries, sources that agree, conflict or are empty, ignore entries and their expiry, unknown products and versions, end of life, stale data, and packages. Some use the shape of real records (FortiOS and CVE-2024-21762, Citrix Bleed, Ivanti Connect Secure, Nextcloud, PAN-OS). **A wrong verdict starts as a failing case.** When a report says something is wrong, the fix is to add a case that shows it, watch it fail, then change the code. Cases are never loosened, skipped or deleted to get green. This is the rule in `AGENTS.md`, and a person reviews each case. **Offline and deterministic.** No test uses the network. Source data is replayed from `fixtures/`, recorded from the real sources. A case fixes its own clock, so a run never depends on today's date. **The catalog is checked against real data.** A wrong name in a catalog entry would silently mean "no vulnerabilities". A person verifies each entry against a real CVE record and NVD entry; `cargo xtask catalog verify` re-checks the keys against the live sources every week; and a product whose names match nothing in the daily database is reported as unverified, not as clean. See [Catalog](catalog.md#how-an-entry-is-checked). **Version comparison is per product scheme, and unparseable means unknown.** A version that cannot be read in the product's scheme gives `unknown` with the reason, never a guess or a fall back to another scheme. The dotted, semver, Debian, RPM, APK and PEP 440 parsers have property tests (the order is total and transitive, and garbage input never panics). **No model decides.** Verdicts, buckets and rules are plain code. Every finding lists the rule ids and the evidence of each source. ## Limits These are real, and you should know them. - **Your list is the input.** If a version in `unpatched.yml` is wrong, old, or missing, the result is wrong. unpatched does not look at your systems. - **Only products in the catalog are matched.** Anything else is not checked at all (packages with a `purl` go through OSV instead). See [Catalog](catalog.md). - **New CVEs lag.** NVD often has no version data for a new CVE for days or weeks. Such a CVE is `unknown`, and shown only when exploitation signals say it would matter. Many of the rest are not shown, by design. - **Source data can be wrong.** A vendor can write a range too narrow or too wide. Sources are combined (one source saying affected is enough), which favours a false alarm over a miss. Conflicts are shown. - **Vendor advisories are not read directly.** The fix version comes from the upper bound of a range in CVE.org or NVD. If a vendor ships a fix in a different branch, or a workaround without a fix, unpatched may not say so. Read the advisory linked in the finding. - **Appliance version strings are messy.** Builds, patch levels and hotfixes that are not part of the version number cannot be compared. Such cases end as `unknown`, and can be added to the corpus. - **A product can be affected through a component** that has its own CVE (a library inside an app). That is not found unless you list the component. - **Configuration matters.** A CVE may apply only if a feature is on. unpatched does not know your configuration. It reports "affected" by version and leaves the feature to you. Use an `ignore` entry with a reason when the feature is off. - **End of life comes from endoflife.date.** If the page is wrong or missing, so is that finding. - **The signals are inputs, not truth.** KEV lists what CISA knows is exploited. A bug can be exploited and not yet listed. EPSS is a probability. - **Data can be old.** The database is built daily. If the build stops, you get a finding at 3 days and a failure at 7. See [Data](data.md). ## Plans The repository is set up to measure accuracy: a monthly benchmark against held-out cases is planned, and so are agent evals (`evals/`). When measured numbers exist they will be published here, with the method and the date. Until then, if you find a wrong verdict, please report it: (the **Wrong verdict** template asks for the product, version, CVE, and expected and actual result). --- Source: https://amet13.github.io/unpatched/guide/privacy.html # Privacy unpatched has no server, no account and no telemetry. It does not know who you are and does not phone home. This page lists every network request it makes. ## What stays with you - **Your stack.** `unpatched.yml` is read on your machine (or in your own GitHub Action) and is never uploaded. Matching runs locally against the database. - **Your findings.** They go only where you send them: your repository's issues, and the chat channels you set up. ## What leaves your machine | Request | When | What is sent | To whom | | --- | --- | --- | --- | | Database download | A run with no database, or one older than 20 hours, and `db update` | A plain `GET` for `unpatched-db.sqlite.zst` and `SHA256SUMS` | GitHub (the release of `Amet13/unpatched`). GitHub sees the request like any download: your IP address and a user agent `unpatched/` | | Binary download | The Action, once per release and runner; the installers | A `GET` for the release archive and its `.sha256` | GitHub | | Package lookups | Only for `purl` items in your stack, and not with `--offline` | The package name, ecosystem and version, for example `openssl`, `Debian`, `3.0.11-1~deb12u1`. For a package type OSV has no named ecosystem for, the purl without qualifiers. Then a request for each vulnerability id found | OSV (`api.osv.dev`) | | Issues | In GitHub Actions or with `--github` | The findings, as issues | The GitHub API of your repository | | Chat messages | Only for channels you turn on | The findings: product, version, CVE, advice | Telegram, Slack, Discord, ntfy (or the server you set) or your webhook | That is all. Catalog products are matched without any request about them: the database holds the vulnerabilities of every catalog product, so nobody learns which ones you run. `--offline` stops the database download and the package lookups. The requests carry a user agent `unpatched/ (+https://github.com/Amet13/unpatched)`, nothing that identifies you. ## What you should know - **Package lookups tell OSV what you run.** If that matters, use catalog products instead of `purl` items, or run with `--offline` and no packages. - **Messages go through third parties.** A chat message about your firewall is sent through Telegram, Slack or Discord. Use a channel you trust, or use only GitHub issues in a private repository. - **The status issue and the issues name your items and versions.** In a public repository, anyone can read them. Keep the repository private. See [the FAQ](faq.md#can-i-use-a-public-repository). - **Secrets** come from environment variables, are not written to logs or error messages, and are never read from `unpatched.yml`. ## The database is public The database on the `db` release is built from public data and is the same for everyone. It holds no information about any user. You can build the same file yourself (`unpatched db build`) and use it with `--db`, so that even the download is not needed. --- Source: https://amet13.github.io/unpatched/guide/faq.html # FAQ ## Why not Dependabot or Renovate? They keep the dependencies of your code up to date. They do not know about a FortiGate, a NAS or a Nextcloud server that you installed and did not write. Use them for code and use unpatched for what you run. ## Why not Trivy, Grype or OSV-Scanner? Those scan container images, file systems and lock files, and they are the right tool for that. They find the packages themselves and list every known CVE in them. unpatched does the opposite: you tell it what runs, at the level of a product (FortiOS 7.2.5, Nextcloud 29.0.3), and it ranks what matters by exploitation. The two fit together: scan your images with Trivy, and watch your firewall, VPN and apps with unpatched. unpatched can also check a single package you name with a `purl`, but it does not discover packages. ## Why not OpenCVE, Vulners or an NVD alert? CVE feeds show every CVE for a vendor and leave the sorting to you. About 40% of CVEs have a CVSS score of 7 or more, so a filter on CVSS is mostly noise. unpatched compares the CVE's affected versions with the version you run, then ranks by evidence of exploitation (CISA KEV, SSVC, public exploits, EPSS). The result is rare, specific and says what to do. It also keeps no accounts and no server for you to depend on. ## Why is a finding `unknown`? Because the data cannot say, and unpatched does not guess. Read the rule on the finding: - `UNP-UNKNOWN-NO-RANGES`: no source has version data yet. New CVEs often wait days or weeks for NVD analysis. The finding goes away, or becomes `affected`, when data arrives. Read the advisory and check your version by hand. - `UNP-UNKNOWN-VERSION`: your version cannot be read in the product's version scheme. Check the version in `unpatched.yml` (a build suffix, a typo, `latest`); `unpatched catalog show ` shows the expected format. - `UNP-UNKNOWN-DATA`: a version in a source's data cannot be read, or the data cannot place your release. Your version is fine: read the advisory and check it by hand. - `UNP-UNVERIFIED-PRODUCT`: the catalog's names for the product match nothing in the database, so an empty result would not mean you are safe. - `UNP-STALE-DATA`: the database is old. An `unknown` is only shown when it would matter if it were confirmed. `unknown` is never turned into "not affected". See [Findings and rules](findings.md). ## Why does it say my product is not verified? The catalog ties a product's names in NVD, CVE records and KEV together. A person checks each entry against real data and records the date as `checked:`. "Not verified" (rule `UNP-UNVERIFIED-PRODUCT`) means that, in the current database, the entry's names matched no record at all. Either the product really has no known vulnerabilities, or a name is wrong. unpatched cannot tell which, so it does not say you are safe. Report it with the **Wrong verdict** or **Add a product** template and the entry will be checked. See [Catalog](catalog.md). ## Why is my product not in the catalog? The catalog is checked by hand, so it grows by request. See [Ask for a product](catalog.md#ask-for-a-product). For a library or an operating system package you can use a `purl` today, like `pkg:deb/debian/openssl@3.0.11-1~deb12u1?distro=bookworm`. WordPress plugins and themes are not covered. ## Why did it flag something that does not apply to me? unpatched matches by version, and it does not know your configuration. A CVE may need a feature that you have turned off. If you are sure, add an `ignore` entry with a reason and an `until` date; it comes back when the date passes. See [the config](config.md#ignore-entries). If the verdict is wrong for everyone, please report it. ## Why did it not flag a CVE I read about? Common reasons: the product is not in the catalog; NVD has no version data for it yet (it may be `unknown` and not shown); your version is outside the affected range; or the database is older than the news. Run `unpatched explain CVE-...` to see what the data says, and `unpatched db info` for the age of the data. ## Can I use a public repository? You can, but you should not. `unpatched.yml` lists your software and versions, and the issues and the status issue name them. In a public repository anyone can read that, which is a map for an attacker. Use a private repository. `unpatched init` reminds you of this. If you do use a public one, remember that GitHub pauses scheduled workflows there (see the next question). ## Will the schedule stop? GitHub disables scheduled workflows after 60 days with no repository activity, **only in public repositories**. In a private repository the schedule keeps running. unpatched does not commit to your repository to fake activity: it needs only `issues: write`. If you run it from a public repository anyway, make a commit now and then, or run the workflow by hand from the Actions tab when you get the "workflow disabled" email from GitHub. ## Does it need an API key or an account? No. Every data source works without one, and the database is public. The only secrets are optional: tokens for chat channels, kept in GitHub secrets or environment variables. See [Notifications](notifications.md). ## Does it cost anything? No. The code is MIT licensed and the data is open. The Action runs on GitHub's runners and uses a little of your Actions minutes (a private repository on the free plan has 2,000 a month). ## Does it fix or update anything? No. It tells you what to do and with which version. You do the upgrade, then change the version in `unpatched.yml`, and the next run closes the issue. ## Can it find what I run by itself? Not yet. You write the list, or an agent helps you build it from a compose file or a pasted list (the `inventory-from-notes` skill). Reading local package lists (dpkg, apk, rpm, brew, winget, docker) may come later. ## How do I report a wrong verdict? Open an issue with the **Wrong verdict** template: . Give the product, the version, the CVE, what you expected and what you got, and the output of `unpatched explain `. Each report becomes a failing test case first, then a fix. See [How accurate is it](accuracy.md). ## Where does the data come from, and is it current? See [Data](data.md). The database is built daily; `unpatched db info` shows its age.