SECURITY.md Security Policy Template
SECURITY.md: supported versions, private reporting channels, response targets, embargo, safe harbour, CVE and advisories, security.txt, CRA note
How to use: Use it for the SECURITY.md file of any repository or product. Fill the supported versions and reporting channels first, then set response targets the maintainers can meet on a holiday weekend and link the full disclosure policy. The main pitfall is an unmonitored security mailbox or an expired security.txt.
Preview
Security Policy: [Project or product name]
A repository security policy (
SECURITY.md) that tells security researchers and users which versions are supported, how to report a vulnerability privately, what to include, how fast the maintainers respond, how disclosure is coordinated, and how fixed vulnerabilities are announced. Its structure follows the disclosure topics of ISO/IEC 29147:2018 and points to asecurity.txtfile under RFC 9116. It is the short public summary; the full coordinated vulnerability disclosure policy lives in a separate document. Replace every[bracketed]value and every row marked Example. The safe harbour and regulatory sections are a documentation format, not legal advice.
Document control
| Field | Value |
|---|---|
| Document ID | [SEC-POLICY-001] |
| Project / product | [Project name and repository URL] |
| Version | [1.0] |
| Status | [Draft / Published / Superseded] |
| Owner | [@security-maintainer] |
| Approvers / reviewers | [@lead-maintainer], [@legal], [@psirt-lead] |
| Last updated | YYYY-MM-DD |
| Classification | Public |
| Full disclosure policy | [URL of the coordinated vulnerability disclosure policy] |
| security.txt location | [https://example.com/.well-known/security.txt] |
| Next review | YYYY-MM-DD (at least annually) |
Approvals
| Role | Name | Decision | Date |
|---|---|---|---|
| Lead maintainer | [@name] | [Approved / Changes requested] | YYYY-MM-DD |
| Security lead or PSIRT lead | [@name] | [Decision] | YYYY-MM-DD |
| Legal (safe harbour wording) | [@name] | [Decision] | YYYY-MM-DD |
Revision history
| Version | Date | Author | Change |
|---|---|---|---|
| 1.0 | YYYY-MM-DD | [@name] | First published version |
| 1.1 | YYYY-MM-DD | [@name] | Example: Added encrypted email channel and updated supported versions after 3.0 release |
| 2.0 | 2026-10-24 | Template maintainers | Updated to a full SECURITY.md: response targets, embargo, CVE and advisory statement, security.txt (RFC 9116), ISO/IEC 29147 structure and EU CRA note; response targets aligned with the disclosure policy and PSIRT templates |
Contents
1. Supported versions
Security fixes are released for the versions marked as supported. Users of unsupported versions should upgrade to a supported version before reporting, unless the vulnerability also affects a supported version.
| Version | Supported | Security fixes until | Notes |
|---|---|---|---|
| 3.x (Example) | Yes | Until 12 months after 4.0 is released | Current release line |
| 2.x (Example) | Security fixes only | YYYY-MM-DD | Critical and High fixes only |
| 1.x and earlier (Example) | No | Ended YYYY-MM-DD | Upgrade to 3.x |
| [Version] | [Yes / Security fixes only / No] | YYYY-MM-DD | [Notes] |
We announce the end of security support for a release line at least [90 days] in advance in the release notes and in [project announcement channel]. If this project is a product placed on the EU market, the support period we commit to is stated in [product documentation URL] (see section 11).
2. Reporting a vulnerability
Please do not report security vulnerabilities through public issues, pull requests, discussions or chat channels. Public reports put users at risk before a fix exists.
Report privately through one of these channels:
| Channel | Address | Use when | Monitored |
|---|---|---|---|
| Private vulnerability reporting on the code host (Example) | Repository, then Security tab, then "Report a vulnerability" | You have an account on the code host; preferred because it creates a private draft advisory | Daily by the security maintainers |
| [security@example.com] | You prefer not to use the code host or need to send large files | Daily | |
| Encrypted email | [security@example.com] with OpenPGP key [fingerprint] at [key URL] | The report contains exploit details or sensitive data | Daily |
| Coordinator | A national CSIRT or a coordination centre of your choice | You want a third party to coordinate with us | As received |
| [Channel] | [Address] | [When] | [Frequency] |
If you have not received an acknowledgement within the time given in section 4, please follow up through a second channel from the table; a message may have been filtered. The full coordinated vulnerability disclosure policy, including detailed scope and legal terms, is at [policy URL].
3. What to include in a report
A good report lets us reproduce the problem quickly. Please include as much of the following as you can; a partial report is still welcome.
| Item | Why we need it |
|---|---|
| Summary of the vulnerability and its type (for example injection, authentication bypass, path traversal) | To route the report to the right maintainer |
| Affected component, version or commit, and configuration | To confirm which releases are affected |
| Steps to reproduce, or a minimal proof of concept | To reproduce without guesswork |
| Impact: what an attacker could achieve, and any preconditions | To assess severity |
| Your own severity estimate, for example a CVSS v4.0 vector | Helpful but optional; we make the final assessment |
| Whether the issue is already public or known to others | To decide how fast to act |
| How you would like to be credited, or that you prefer to stay anonymous | For the advisory |
| Suggested fix or mitigation | Optional; always welcome |
Do not include personal data of other people. If you accidentally accessed such data during research, tell us in the report, do not keep copies, and do not share it.
4. What to expect
We aim to meet the response targets below. Business days are counted in the [time zone] time zone; all other periods are calendar days.
| Stage | Target (Example) | What happens |
|---|---|---|
| Acknowledgement | Within 2 business days | A human confirms receipt and gives you a case reference |
| Initial assessment | Within 7 calendar days | We confirm whether we can reproduce the issue, which versions are affected and our first severity rating |
| Status updates | At least every 14 days until the fix is released | We tell you what is happening, including delays |
| Fix for Critical severity | Within 30 days of confirmation; faster when actively exploited | Release or documented mitigation |
| Fix for High severity | Within 60 days | Release or documented mitigation |
| Fix for Medium and Low severity | Within 90 to 180 days | Release in a scheduled version |
| Disclosure | At the agreed date (section 5) | Advisory published, reporter credited |
Severity is assessed with FIRST CVSS v4.0 (base and, where we know of exploitation, threat metrics) and adjusted for how the software is actually deployed. A vulnerability known to be exploited is handled as Critical regardless of its score. If we decide a report is not a vulnerability, or is out of scope, we explain why; you can ask for a second review by [@security-lead].
5. Coordination, embargo and disclosure
We follow coordinated vulnerability disclosure: we fix first, then publish, and we agree the publication date with the reporter.
- Default timeline. We aim to publish an advisory when a fixed release is available. Unless the reporter and we agree another date, we ask reporters to wait until the earlier of [14] days after the fixed release and advisory, or [90] days after we acknowledged the report (Example; copy the values from the full disclosure policy).
- Extensions. If a fix needs more time (for example a design change or many downstream vendors), we explain why and propose a new date. We do not extend silently.
- Shorter timelines. If the vulnerability is being exploited or becomes public, we publish mitigation guidance as soon as possible, even before a fix is ready, and tell the reporter first.
- Embargo. Details shared with us, and fixes we share with downstream maintainers before release, are confidential until the agreed date. Downstream recipients (for example distribution packagers or major integrators) receive embargoed information only when they need it to protect users and agree to the same date.
- Multi-party issues. If the vulnerability affects other projects or vendors, we coordinate with them directly or through a CSIRT or coordination centre and align the publication date.
- Reporter publication. We ask reporters not to publish details, write-ups or proofs of concept before the agreed date. After it, you are free to publish your own write-up; we appreciate a link to our advisory.
6. Scope
In scope:
- The code in this repository and the official release artefacts published from it: [packages, container images, binaries].
- The default configuration documented in [docs URL].
- [Project-operated services, if any, such as the documentation site or update server].
Out of scope (Example):
- Vulnerabilities in third-party dependencies that do not affect this project's use of them; please report those upstream. If a dependency vulnerability does affect us, report it here as well.
- Findings that need a compromised host, physical access or a malicious administrator, unless the project claims to protect against them.
- Denial of service by sending very large volumes of traffic.
- Social engineering of maintainers or users.
- Reports produced only by automated scanners without a demonstrated impact.
- Missing security headers or best-practice suggestions without a concrete attack.
Never test against systems you do not own or do not have permission to test, and never test against other users' installations or data.
7. Safe harbour
We will not pursue or support legal action against anyone who, in good faith:
- follows this policy and the full disclosure policy;
- tests only within the scope in section 6 and only against their own installations or test accounts;
- avoids privacy violations, data destruction and service disruption, and stops as soon as they confirm a vulnerability;
- does not access, modify or keep data that is not theirs beyond what is needed to show the issue; and
- gives us reasonable time to fix the issue before any disclosure.
If a third party takes legal action against you for research that complied with this policy, we will make it known that your activity was authorised by us. If you are unsure whether an activity is covered, ask us first at [security@example.com]. The full safe harbour terms are in [policy URL]. This summary is not legal advice.
8. CVE identifiers and security advisories
For every confirmed vulnerability in a supported version we:
| Action | How (Example) |
|---|---|
| Request or assign a CVE ID | [We are a CVE Numbering Authority (CNA) for this project / We request IDs through the code host's CNA / through [CNA name]] |
| Publish a security advisory | On the repository's Security Advisories page and at [advisory URL] |
| Publish machine-readable data | Advisory in the code host's advisory database; for products, a CSAF 2.0 document at [CSAF provider URL] |
| State affected and fixed versions | In the advisory and the release notes |
| Publish VEX where relevant | "Not affected" statements for vulnerabilities in our dependencies that do not affect this project, per [SBOM and VEX policy URL] |
| Credit the reporter | Unless they ask to stay anonymous |
Each advisory gives a description, the affected and fixed versions, the
severity with its CVSS vector, the impact, the remediation or
workaround, and credits. Advisories are written with the security
advisory template (security/security-advisory). We do not fix security
vulnerabilities silently: if a release contains a security fix, its
notes say so.
9. security.txt
We publish a security.txt file under RFC 9116 at
/.well-known/security.txt on [project domain]. It points to the same
channels and policy as this document. Our file contains:
| Field | Value (Example) |
|---|---|
| Contact | mailto:security@example.com and the private reporting URL |
| Expires | A date less than one year ahead (RFC 9116 recommends this), renewed by [@owner] each quarter |
| Encryption | URL of the OpenPGP key |
| Policy | URL of the full disclosure policy |
| Acknowledgments | URL of the hall of fame or advisory credits |
| Preferred-Languages | en, [other languages] |
| Canonical | The file's own URL |
We sign the file with the OpenPGP key listed under Encryption, as RFC 9116 recommends, and, because the file is signed, include the Canonical field, as RFC 9116 also recommends. The Contact and Expires fields are required by RFC 9116; the others are optional but help finders.
10. Recognition
We credit reporters by name or handle in the advisory and in [acknowledgements page], unless they prefer to stay anonymous. [This project does not run a paid bug bounty.] or [Eligible reports may receive a reward under the rules at [bounty URL]; this file does not change those rules.] We do not offer rewards in exchange for silence, and accepting credit does not restrict your right to publish after the agreed disclosure date.
11. Regulatory notes
EU Cyber Resilience Act. If [Project or product name] is placed on
the EU market as a product with digital elements, its manufacturer must
report actively exploited vulnerabilities and severe incidents to the
designated CSIRT and ENISA through the ENISA Single Reporting Platform.
That duty under Article 14 of Regulation (EU) 2024/2847 has applied since
11 September 2026, with an early warning due within 24 hours of
awareness. When a report you send us shows that a vulnerability is being
exploited, we may therefore have to notify the authorities quickly.
Those notifications are confidential channels, not public disclosure,
and we will tell you if we make one. The internal procedure is in
security/cra-vulnerability-handling. The Regulation's other duties,
including a single point of contact for vulnerability reports and a
published coordinated disclosure policy, apply from 11 December 2027.
Check the consolidated text on EUR-Lex for the current wording.
Coordinators. Under the NIS2 Directive (EU) 2022/2555, Article 12, each EU Member State designates a CSIRT as coordinator for coordinated vulnerability disclosure. You may report through that CSIRT instead of contacting us directly.
Alignment. The topics covered here (receipt of reports, what to
include, response expectations, coordination and advisory publication)
follow the structure of ISO/IEC 29147:2018 for vulnerability disclosure.
Our internal handling of each report follows the process structure of
ISO/IEC 30111:2019, documented with security/psirt-vulnerability-handling.
Both standards have new editions in development; check iso.org for the
current editions.
12. Glossary and references
| Term | Meaning |
|---|---|
| Vulnerability | A weakness that an attacker can use to compromise confidentiality, integrity or availability |
| Coordinated vulnerability disclosure (CVD) | Process in which finder and maintainer agree when and how details are published |
| Embargo | Period during which vulnerability details are kept confidential among the parties fixing it |
| CVE ID | Public identifier for a vulnerability, assigned by a CVE Numbering Authority (CNA) |
| Security advisory | Public notice describing a vulnerability, affected versions and the fix |
| CSAF | Common Security Advisory Framework, an OASIS standard for machine-readable advisories |
| VEX | Vulnerability exploitability exchange: a statement of whether a product is affected |
| security.txt | Text file at a well-known web location that lists security contacts (RFC 9116) |
| CVSS | Common Vulnerability Scoring System, maintained by FIRST |
References:
- ISO/IEC 29147:2018, Information technology, Security techniques, Vulnerability disclosure (structure only)
- ISO/IEC 30111:2019, Information technology, Security techniques, Vulnerability handling processes (structure only)
- RFC 9116, A File Format to Aid in Security Vulnerability Disclosure, April 2022, https://www.rfc-editor.org/info/rfc9116
- Regulation (EU) 2024/2847 (Cyber Resilience Act), Article 14, https://eur-lex.europa.eu/eli/reg/2024/2847/oj
- ENISA, CRA Single Reporting Platform (SRP), https://www.enisa.europa.eu/topics/product-security/single-reporting-platform-srp
- Directive (EU) 2022/2555 (NIS2), Article 12
- FIRST CVSS v4.0, https://www.first.org/cvss/ (cited by name only)
- OASIS CSAF 2.0, https://docs.oasis-open.org/csaf/csaf/
- Related templates: Vulnerability disclosure policy (
security/vulnerability-disclosure-policy), PSIRT vulnerability handling (security/psirt-vulnerability-handling), Security advisory (security/security-advisory), CRA vulnerability handling (security/cra-vulnerability-handling), SBOM and VEX policy (security/sbom-vex-policy)
Standard and licence note
Structure aligned with ISO/IEC 29147:2018 (vulnerability disclosure) and ISO/IEC 30111:2019 (vulnerability handling processes); only the topics they cover are reflected, and no text, table or definition from these copyrighted standards is reproduced. Based on RFC 9116 for the security.txt fields, and on Regulation (EU) 2024/2847 (Cyber Resilience Act) Article 14 and Directive (EU) 2022/2555 Article 12, which are summarised in original wording; EU legislative texts are free to reuse. FIRST CVSS and OASIS CSAF are cited by name only. The text is original. Check the current official version of each source, including new editions of ISO/IEC 29147 and 30111 and the consolidated text of the Regulation, before publishing. This is a documentation format, not legal advice. Template licence: MIT.
Related templates
AI Coding Assistant Policy Template
Policy for AI coding assistants and agents: autonomy levels, tool register, secrets, sandboxing, review of generated code, provenance, OWASP ASI and SSDF mapping
Software & EngineeringCode Ownership Policy Template (CODEOWNERS)
Code ownership policy: ownership models, RACI, MUST/SHOULD rules, CODEOWNERS standard and example, review SLAs, escalation, orphaned code, transfers, metrics
Software & EngineeringDependency Management Policy Template (SSDF, Scorecard)
Dependency policy: tiers, intake scoring, approved sources, lock files and SHA pinning, cooldown, update targets, malicious packages, licences, forks, metrics