Skip to content

Release checklist: set patched_versions on every published security advisory when the next release is cut #828

Closed

Description

@scttfrdmn

Process gap found while publishing the first advisory from the 2026-10 review.

The situation

GHSA-w7wx-6439-wff7 is published with patched_versions deliberately empty.
The fix is merged (a813c11) but the latest release is v0.127.0, which is
affected. Setting patched_versions: 0.128.0 would have named a version that does
not exist — a fabricated fact, and the one consumers' tooling acts on most
directly, since a dependency scanner reading "fixed in 0.128.0" will report a
clean bill of health against a release that was never cut.

That is the same defect class the audit exists to remove, so the field was left
empty with the status spelled out in the description instead.

What needs to happen at release time

When the next release is cut, for every published advisory whose fix is in that
release
:

gh api --method PATCH repos/spore-host/spawn/security-advisories/<GHSA-ID> \
  --input - <<JSON
{"vulnerabilities":[{"package":{"ecosystem":"go","name":"github.com/spore-host/spawn"},
  "vulnerable_version_range":"<= 0.127.0","patched_versions":"<the actual version>"}]}
JSON

and trim the "not yet in a released version" paragraph from the description.

Currently affected: GHSA-w7wx-6439-wff7 (published). Five more drafts will
land in the same state as their fixes merge —
GHSA-54x4-pc23-4m6j, GHSA-2hfh-q6jv-qgjp, GHSA-3x4q-99gh-fxhx,
GHSA-q9qq-223w-mqx6, GHSA-qc2h-6qqf-wcm4.

Why this is an issue rather than a note

The release ritual is recorded in CLAUDE.md (promote [Unreleased], update
compare links, tag) and says nothing about advisories, because there were none
until today. A step that exists only in one conversation will be missed.

Suggested

  1. Add the advisory step to CLAUDE.md's On release list.
  2. Consider gating it: a test that fails when a published advisory has an empty
    patched_versions and the repo has a release newer than its
    vulnerable_version_range. That is the condition under which the empty field
    has gone from honest to stale, and it is checkable without a network call if
    the advisory IDs are listed — though per rule 4 that list wants discovering
    from the API rather than hand-maintaining.

Note the next release must be MINOR regardless: the same cycle removes
spawn autoscale (13 subcommands) and 13 exported members of pkg/aws.

Activity

  1. added
    enhancement
    on Oct 11, 2026
  2. scttfrdmn commented on Oct 12, 2026

    @scttfrdmn
    ContributorAuthor

    One exclusion for this checklist, so it isn't applied mechanically.

    GHSA-xqx8-pcpv-cx2h must NOT be published at the next release. It is a private draft for an unfixed, live defect — a Slack signing secret stored in plaintext (#868) — and #868 is now backlogged, so the fix will not be in the next release. Publishing it would disclose an unremediated exposure, and setting patched_versions on it would assert a fix that does not exist.

    So when working this checklist, the rule is narrower than "every published advisory": set patched_versions only on advisories whose fix is actually in the release being cut. Current state:

    advisory status at next release
    GHSA-7pm4-cqjg-vh2q (#835, DNS caller authorization) fixed and deployed — set patched_versions, publish
    GHSA-q9qq-223w-mqx6 (#820, alias ownership) fixed and deployed 2026-10-12 — set patched_versions
    GHSA-xqx8-pcpv-cx2h (#868, bot signing secret) unfixed — leave as a private draft, do not publish

    Worth adding to the checklist as an explicit step rather than carrying it as knowledge: "confirm each advisory's fix is in this release before publishing it."

  3. scttfrdmn commented on Oct 13, 2026

    @scttfrdmn
    ContributorAuthor

    Done for v0.128.0. patched_versions = 0.128.0 set on all seven published advisories, each with its existing package and range preserved (a PATCH replaces the whole vulnerabilities array, so each was read and only the patched version changed):

    advisory fixing commit(s) first release containing it
    GHSA-54x4-pc23-4m6j 790c099 0.128.0
    GHSA-w7wx-6439-wff7 a813c11 (PR #826 — no commit message names it, found via the PR) 0.128.0
    GHSA-2hfh-q6jv-qgjp 13ca7a2 0.128.0
    GHSA-3x4q-99gh-fxhx 2b53ad5 0.128.0
    GHSA-q9qq-223w-mqx6 f894cbf 0.128.0
    GHSA-qc2h-6qqf-wcm4 ac6207a, 790c099, 9b08faf 0.128.0
    GHSA-8q3p-qcv8-2pr4 05a6d9f 0.128.0

    Checked the ranges before setting anything, rather than assuming them. Each advisory says vulnerable <= 0.127.0; had any fix landed before the v0.127.0 tag, that range would wrongly mark a patched release as vulnerable. git merge-base --is-ancestor <fix> v0.127.0^{} is false for every fix and true against v0.128.0^{}, so the existing ranges are correct.

    Deliberately not touched

    advisory why
    GHSA-7pm4-cqjg-vh2q draft. Fixed, deployed, and in 0.128.0 — ready to publish, but publishing is the maintainer's call
    GHSA-xqx8-pcpv-cx2h draft, unfixed (#868, backlogged) — must not be published
    GHSA-q59f-6gc3-qj2p draft, unfixed (#879, the Windows install path, filed today) — must not be published

    A suggestion for the checklist itself

    Make the rule "set patched_versions only on advisories whose fix is an ancestor of the release tag", and run that ancestor check per advisory. It is mechanical, it caught nothing wrong this time, and it is exactly the check that would stop a future release from claiming a fix it doesn't contain. Leaving this issue open for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions