# SECURITY.md template

> SECURITY.md tells people how to report a vulnerability privately instead of in a public issue, and what happens after they do. Copy the example below to the root or .github folder, replace the versions, contact and response times with yours, and turn on private vulnerability reporting in the repository settings.

Updated November 30, 2026. Canonical: https://sniptide.com/templates/security-md
Open it in the Sniptide editor: https://app.sniptide.com/new?template=security-md
Files as JSON: https://sniptide.com/templates/security-md.json

## Files

### SECURITY.md

```markdown
# Security policy

## Supported versions

We fix security problems in the latest minor release. Older versions get no updates, so upgrade
before you report.

| Version | Supported |
| --- | --- |
| 3.4.x | Yes |
| 3.3.x and older | No |

## Report a vulnerability

Please do not open a public issue, discussion or pull request for a security problem.

Report it privately through
[GitHub's private vulnerability reporting](https://github.com/acme/acme/security/advisories/new),
or email security@example.com. Include:

- The affected version and configuration
- Steps to reproduce, or a proof of concept
- What an attacker could do with it

## What happens next

- We confirm that we received your report within 3 working days.
- We tell you whether we accept it within 10 working days, and keep you updated until it is fixed.
- We aim to release a fix within 90 days, and agree the disclosure date with you.
- With your permission, we credit you in the advisory.

## Scope

In scope: this repository and the releases published from it.

Out of scope: denial of service through excessive traffic, findings from automated scanners
without a demonstrated impact, and vulnerabilities in dependencies that are already reported
upstream.

## Safe harbor

We will not take legal action against research done in good faith under this policy. Do not
access other users' data, degrade the service or keep data longer than needed to show the
problem.
```

## Turn on private reporting [#turn-on-private-reporting]

Open **Settings → Security** (**Code security** on some accounts) in the repository and enable **Private vulnerability reporting**. Reporters then get a **Report a vulnerability** button under the **Security** tab, and the report opens as a draft advisory that only maintainers and the reporter can see. [Privately reporting a security vulnerability](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability)

Commit `SECURITY.md` in the repository root, `.github/` or `docs/`. GitHub links it from the **Security** tab and the new issue page. To check it, open the **Security** tab while signed out of a maintainer account.

## What each section does [#what-each-section-does]

| Section | What it settles | When to change it |
| --- | --- | --- |
| Supported versions | Which releases get fixes, so reporters test the right one. | Each release. |
| Report a vulnerability | The private channel and what to include. | When the contact changes. Use a shared address, not a person's inbox. |
| What happens next | When the reporter hears back and when a fix ships. | Set times you can keep. A missed date pushes reporters to disclose early. |
| Scope | What counts, so you don't triage scanner noise. | When you add a hosted service or a bug bounty. |
| Safe harbor | That good-faith research won't bring legal action. | Have counsel review it if your organization has one. |

Keep `security@example.com` only as a placeholder. Use an address on your own domain that more than one maintainer reads.

## Variant: a GitHub issue form that sends reports to the right place [#variant-a-github-issue-form-that-sends-reports-to-the-right-place]

Add a contact link in `.github/ISSUE_TEMPLATE/config.yml`, so the issue chooser points security reports away from public issues. The [GitHub issue templates](/templates/github-issue-templates) include the full file.

```yaml title=".github/ISSUE_TEMPLATE/config.yml"
contact_links:
  - name: Report a security vulnerability
    url: https://github.com/acme/acme/security/advisories/new
    about: Report it privately. Please don't open a public issue.
```

## Variant: security.txt for a website [#variant-securitytxt-for-a-website]

For a hosted product, publish the same contact at `https://example.com/.well-known/security.txt` as [RFC 9116](https://www.rfc-editor.org/rfc/rfc9116) describes. `Contact` and `Expires` are required:

```text title=".well-known/security.txt"
Contact: mailto:security@example.com
Expires: 2027-11-30T00:00:00.000Z
Policy: https://github.com/acme/acme/security/policy
Preferred-Languages: en
```
