EU CRA

How to write a good security.txt file for the CRA

What a security.txt file must contain under RFC 9116, where to host it, the mistakes to avoid, and how it supports a manufacturer's CRA reporting duties.

This article is for informational purposes only and is not intended as legal advice. For advice on a specific situation, please consult an attorney.

A security.txt file is a short plain-text file at /.well-known/security.txt on a website. It tells security researchers where and how to report a vulnerability. RFC 9116 requires only the Contact and Expires fields.1

For manufacturers, the file is a simple way to make the vulnerability reporting contact that the EU Cyber Resilience Act asks for easy to find. In October 2026, ENISA published a draft technical advisory on security.txt, coordinated vulnerability disclosure (CVD) policies, and security advisories, aimed at small and medium-sized manufacturers.2 This article draws on that draft and on RFC 9116 to explain what a good security.txt file contains, how to host it, which mistakes to avoid, and what else the CRA expects around it.

The ENISA advisory is a draft. It was published for public consultation, so details may change in the final version. The requirements of RFC 9116 and the CRA quoted below do not depend on it.

Why does security.txt matter under the CRA?

The CRA does not mention security.txt by name. It does require manufacturers to make vulnerability reporting easy, and a security.txt file is one of the most direct ways to show where reports should go:

  • Manufacturers must provide a contact address for reporting vulnerabilities discovered in their products, as part of facilitating the sharing of vulnerability information.3

  • Manufacturers must put in place and enforce a policy on coordinated vulnerability disclosure.4 Coordinated vulnerability disclosure (CVD) is the process in which a reporter and a manufacturer agree on when and how details of a vulnerability become public, usually after a fix is available.

  • Manufacturers must designate a single point of contact that lets users communicate directly and rapidly with them, including to report vulnerabilities. That contact must be easily identifiable.5

  • The information and instructions that accompany a product must name the single point of contact and where the CVD policy can be found.6

The ENISA draft advisory names security.txt as a practical way to provide the reporting contact and make the single point of contact easy to identify.7 The draft harmonised standard prEN 40000-1-3 on vulnerability handling also recommends publishing a security.txt file.8 Our overview of the CRA harmonised standards shows how far that standard is.

A security.txt file alone does not meet these obligations. The contact behind it must be monitored, the CVD policy must actually be applied, and reports must lead to fixes. The ENISA draft advisory says the same of the CVD policy: publication alone is not sufficient.9

The same security.txt file can also serve NIS2. NIS2 is the EU directive on cybersecurity risk management and incident reporting for organizations in listed sectors, including some types of manufacturing. Medium-sized and large manufacturers in those sectors may fall under it, and it requires entities in scope to address vulnerability handling and disclosure for their own network and information systems.10 According to the ENISA draft advisory, one security.txt file and one monitored reporting channel can serve both laws. The CVD policy should then make clear whether a report concerns the manufacturer’s products, notified under Article 14 of the CRA, or its own systems, notified under Article 23 of NIS2.11

What must a security.txt file contain?

RFC 9116 defines the fields. Only Contact and Expires are required; every other field is optional.12 “Required” here means required by RFC 9116, not by law. The last column shows the section of RFC 9116 that defines each field.

Field Required? What goes in it RFC 9116
Contact Yes, at least once A URI for reporting, such as mailto: for email, tel: for phone, or an https:// link to a report form. List several in order of preference; the first one is the preferred channel. Use a role-based address such as security@, not a personal mailbox. 2.5.3
Expires Yes, exactly once The date and time after which the file should no longer be trusted, in RFC 3339 format. RFC 9116 recommends a date less than a year ahead. 2.5.5
Policy No An https:// link to the CVD policy. For a manufacturer, this is the natural place to show where the policy can be found. 2.5.7
Encryption No An https:// link to a public key for encrypted reports. The key itself must not appear in the file. 2.5.4
Canonical No The URL or URLs where this file officially lives. When a file lists canonical URLs and the address a reader used is not among them, its contents should not be trusted. 2.5.2
Preferred-Languages No, at most once Comma-separated language tags, for example en, nl, de. Without it, readers may assume English. 2.5.8
Acknowledgments No A link to a page that thanks reporters. 2.5.1
Hiring No A link to security job openings. 2.5.6
CSAF No A link to the manufacturer’s CSAF provider metadata (provider-metadata.json). CSAF is a machine-readable format for security advisories. Not in RFC 9116

The CSAF field comes from the OASIS CSAF 2.0 standard, which registered it in the IANA security.txt fields registry.13 Researchers and their tools must ignore fields they do not support, so adding optional fields never breaks a file.14

What does a good security.txt file look like?

The example below is based on the template in the ENISA draft advisory, with a comment line and a CSAF line added, for a fictional manufacturer.15 Every field is on its own line, and lines starting with # are comments.16

# Security contact for Example Devices B.V. products and services
Contact: mailto:[email protected]
Contact: https://www.example.com/security/report
Expires: 2027-10-26T23:00:00.000Z
Encryption: https://www.example.com/.well-known/pgp-key.asc
Policy: https://www.example.com/security/disclosure-policy
Acknowledgments: https://www.example.com/security/hall-of-fame
Preferred-Languages: en, nl, de
Canonical: https://www.example.com/.well-known/security.txt
CSAF: https://www.example.com/.well-known/csaf/provider-metadata.json

Before publishing, the ENISA draft advisory recommends these steps:17

  • save the file as plain text named security.txt, in UTF-8 without a byte order mark and with Unix line endings

  • replace every placeholder and remove optional lines that do not apply, including Encryption if no key has been set up

  • set Expires no more than 12 months ahead and add a calendar reminder to renew it

RFC 9116 itself accepts both LF and CRLF line endings.18

RFC 9116 requires only one Contact line.19 The example has two, which gives reporters a choice of channel. That fits the CRA’s rule that the single point of contact must let users choose their preferred means of communication and not limit them to automated tools.20 The ENISA draft advisory also recommends offering channels that work through more than one sense, for accessibility.21

Where and how should the file be hosted?

These requirements come from section 3 of RFC 9116, unless a note says otherwise:22

  • Location. The file must be at /.well-known/security.txt. A copy at /security.txt is allowed for older tools, but the ENISA draft advisory recommends a redirect to the /.well-known/ file rather than a second copy.23 If both exist, the /.well-known/ file wins.

  • HTTPS only. The file must be served over https, and every web link inside it must start with https://.24

  • Content type. The server must send Content-Type: text/plain; charset=utf-8. Hosting providers often get this wrong, so the ENISA draft advisory recommends checking it after upload.25

  • Public access. No login, CAPTCHA, or firewall rule may block the file. The ENISA draft advisory lists a blocked file as a common mistake.26

  • Scope per domain. A file applies only to the domain or IP address it is retrieved from, not to its subdomains or parent domains, but it may also cover the products and services of the organization that publishes it.27 The ENISA draft advisory recommends publishing it on the primary domain and on every domain linked to an in-scope product, such as the domain of a companion app’s cloud backend.28

  • Redirects and links. Redirects are allowed, but researchers are advised to record them because they can lead to a domain an attacker controls.29 The ENISA draft advisory recommends keeping the file and every linked resource on infrastructure the organization controls, without URL shorteners.30

Devices with a built-in web interface, such as an HMI or an edge device, should point users and researchers to the manufacturer’s disclosure information. According to the ENISA draft advisory, the device’s web interface or documentation can link to the manufacturer’s security.txt file or CVD policy. A separate file on the device itself needs a clear scope and current contact details.31

Should the file be signed?

RFC 9116 recommends signing the file with an OpenPGP cleartext signature, which lets readers check that the file has not been tampered with.32 A signed file should also list its address in Canonical.33

Signing is not mandatory. The ENISA draft advisory advises smaller manufacturers to check first whether they can manage the keys properly. Where they cannot, an accurate, reachable, and regularly maintained file comes first.34

Germany’s BSI asks for more. Its technical guideline TR-03183-3 requires an OpenPGP-signed file, a check of its contents at least quarterly, a Canonical field, English among the preferred languages, and a fixed order of contacts: the PSIRT mailbox first, then the CSIRT mailbox, then the web page for reports.35 A PSIRT is a product security incident response team: the people who handle vulnerability reports about a manufacturer’s products. The guideline is a technical recommendation, not law, but customers and partners in Germany may refer to it.

How can manufacturers keep a security.txt file useful?

The ENISA draft advisory and RFC 9116 provide the checks below for keeping a security.txt file reachable, valid, and current.3637

Mistake What goes wrong How to avoid it
File in the wrong place, for example only at /security.txt Researchers and tools do not find it Publish it at /.well-known/security.txt
Login, CAPTCHA, or firewall in front of the file Nobody can read it Make the file publicly reachable
Wrong format or missing Contact or Expires Tools cannot parse it, and it does not meet RFC 9116 Plain text, UTF-8, both required fields present
Broken links or HTTPS errors Researchers cannot follow the links Test the file and every link over HTTPS
Expired file or an unmonitored contact Reports never reach the right person A monitored, role-based contact and a renewal reminder
Unclear or broken policy link Researchers do not know how to report or what is covered Link to a clear, reachable CVD policy
No owner The file goes stale and reports go unanswered Name someone to maintain the file and watch the inbox
Publishing the file without a vulnerability-handling process No one is assigned to assess, track, or fix reports Define the process and assign responsibility before publishing the file
Public key pasted into Encryption The file breaks RFC 9116 Link to the key instead
Expires listed twice, or years ahead The file breaks RFC 9116, or stale data looks current One Expires line, less than a year ahead

Stale information is worse than none. RFC 9116 notes that having no security.txt file may be preferable to having one with outdated details.38

What else does a manufacturer need around the file?

The security.txt file points to the reporting process. Under the CRA, the process behind it matters more:

  • A CVD policy. The ENISA draft advisory includes a template with ten parts: introduction, scope, how to report, rules for responsible testing, required information, what reporters can expect, safe harbor, the disclosure timeline, recognition, and data protection.39 It recommends one named owner and at least one deputy, a shared role-based mailbox, and an annual review.40 For acknowledging a report, ENISA notes that the draft prEN 40000-1-3 sets a maximum of 7 calendar days.41

  • Checking every report for active exploitation. An actively exploited vulnerability triggers an early warning within 24 hours of becoming aware of it.42 The ENISA draft advisory recommends deciding in advance who assesses this and who files the notification.43 Our article on the CRA for US and non-EU companies explains the reporting deadlines and where reports go.

  • Security advisories. Once a security update is available, manufacturers must publicly disclose information about fixed vulnerabilities, including a description, the affected products, the impact, the severity, and remediation guidance. In duly justified cases, publication may be delayed until users have been able to apply the patch.44 Users affected by an actively exploited vulnerability or a severe incident must be informed, where appropriate in a structured, machine-readable format.45 The ENISA draft advisory points to CSAF, standardized as ISO/IEC 20153:2025, and to its VEX profile, which lets a manufacturer state that a product is not affected by a vulnerability.46 Our overview of ENISA’s SBOM advisory covers how VEX fits next to SBOMs.

  • Reports about third-party components. A manufacturer that finds a vulnerability in a component, including an open-source component, must report it to the person or organization that makes or maintains it.47 The security.txt files of suppliers and open-source projects are where that report starts.

A safe harbor statement has limits. According to the ENISA draft advisory, it can only authorize testing of the manufacturer’s own systems and waive the manufacturer’s own claims. It cannot authorize testing of systems owned by others, and the legal position differs between Member States.48

How can a manufacturer check its security.txt file?

  1. Open the file in a browser at https:// plus the domain plus /.well-known/security.txt, on every domain that should have one. The link builder at the top of this article builds and opens that link for any domain.

  2. Check the HTTP response with a command such as the one below, which the ENISA draft advisory suggests.49 The response should show status 200 and content-type: text/plain; charset=utf-8.

  3. Check the fields for Contact and Expires, an Expires date in the future and less than a year ahead, and no key pasted into Encryption.

  4. Follow every link to the policy, key, acknowledgments page, and report form.

  5. Send a test report to each Contact and confirm that it reaches a monitored queue.

  6. Set a reminder to renew Expires and review the file, at least yearly. BSI TR-03183-3 asks for a quarterly check.50

curl -sI https://www.example.com/.well-known/security.txt

The project site securitytxt.org offers a form that generates a file with the required fields.51

Frequently asked questions

Does the CRA require a security.txt file?

Not by name. The CRA requires a contact address for reporting vulnerabilities, an easily identifiable single point of contact, and a CVD policy.52 A security.txt file is a widely recognized way to publish that contact. The ENISA draft advisory recommends it,53 and so does the draft prEN 40000-1-3.54

Does a security.txt file allow researchers to test a product?

No. The presence or absence of a security.txt file does not grant or deny permission to test.55 What researchers may test, and on what terms, belongs in the CVD policy.

Can one file cover both the website and the products?

Yes. A file may also apply to the products and services of the organization that publishes it.56 The CVD policy should then say which reports concern products and which concern the organization’s own systems. An individual IETF draft from September 2026 proposes separate Product-Security and Product-Security-Policy fields for this purpose.57 It is not a standard, and current parsers ignore fields they do not know.

What happens when the file expires?

Readers and scanners treat an expired file as a sign that the contact details may be out of date.58 RFC 9116 notes that no file at all may be preferable to stale information.59 A renewal reminder well before the Expires date avoids this.

Is a web form enough as the only contact?

A form is a valid Contact value. Adding an email address as well gives reporters a choice, which fits the CRA’s requirement that the single point of contact lets users choose their preferred means of communication and is not limited to automated tools.60

How we help

Manufacturers preparing for the CRA should address vulnerability reporting first because those duties have applied since 11 September 2026.61 The first work package in the EU CRA Compliance Journey covers reporting readiness, including incident response and CVD policies and the processes that identify, assess, escalate, and report events within the deadlines. The EU CRA Internal Audit checks the existing setup and lists what is missing. Manufacturers that want a first indication can take the free EU CRA Self Assessment or book a free EU CRA strategy call. Questions about a specific setup can go through the contact form.

Citations

  1. Edwin Foudil and Yakov Shafranovich, A File Format to Aid in Security Vulnerability Disclosure, RFC 9116 (RFC Editor, April 2022), sec. 2.5, https://www.rfc-editor.org/info/rfc9116/ (hereafter cited as RFC 9116). ↩

  2. European Union Agency for Cybersecurity (ENISA), ENISA Technical Advisory on security.txt, CVD Policies and Security Advisories: SME Vulnerability Kit, draft for public consultation (Athens: ENISA, October 2026), 4, Scope and context, https://www.enisa.europa.eu/sites/default/files/2026-10/Technical%20Advisory%20on%20security.txt%20CVD%20Policies%20and%20Security%20Advisories%20Public%20Consultation.pdf. ↩

  3. Regulation (EU) 2024/2847 of the European Parliament and of the Council of 23 October 2024 on horizontal cybersecurity requirements for products with digital elements (Cyber Resilience Act), OJ L, 2024/2847, 20.11.2024, annex I, part II, point 6, https://eur-lex.europa.eu/eli/reg/2024/2847/oj (hereafter cited as CRA). ↩

  4. CRA, annex I, part II, point 5. ↩

  5. CRA, art. 13(17), first and second subparagraphs. ↩

  6. CRA, annex II, point 2. ↩

  7. ENISA, Technical Advisory on security.txt, 6, sec. 1, table, row “security.txt”. ↩

  8. CEN and CENELEC, prEN 40000-1-3, draft harmonised standard on vulnerability handling for products with digital elements, prepared by CEN/CLC/JTC 13 (not yet published), sec. 5.3.2.4.1, requirement RCP-1-RC-01 (hereafter cited as prEN 40000-1-3). ↩

  9. ENISA, Technical Advisory on security.txt, 7, sec. 1.2, last bullet. ↩

  10. Directive (EU) 2022/2555 of the European Parliament and of the Council of 14 December 2022 on measures for a high common level of cybersecurity across the Union (NIS 2 Directive), OJ L 333, 27.12.2022, 80, arts. 1(2)(b), 2(1), and 21(2)(e); annex II, point 5, https://eur-lex.europa.eu/eli/dir/2022/2555/oj (hereafter cited as NIS2). ↩

  11. ENISA, Technical Advisory on security.txt, 4–5, Scope and context, paragraph “Relevance under NIS2”. ↩

  12. RFC 9116, sec. 2.5. ↩

  13. Internet Assigned Numbers Authority (IANA), “security.txt Fields,” protocol registry, accessed 27 October 2026, https://www.iana.org/assignments/security-txt-fields/security-txt-fields.xhtml. ↩

  14. RFC 9116, sec. 2.4. ↩

  15. ENISA, Technical Advisory on security.txt, 12, sec. 3.1.4. ↩

  16. RFC 9116, secs. 2 and 2.1. ↩

  17. ENISA, Technical Advisory on security.txt, 7, sec. 1.1, fourth bullet; 12, sec. 3.1.4, first paragraph. ↩

  18. RFC 9116, sec. 2.2. ↩

  19. RFC 9116, sec. 2.5.3. ↩

  20. CRA, art. 13(17), third subparagraph. ↩

  21. ENISA, Technical Advisory on security.txt, 16, sec. 3.2.2, second bullet. ↩

  22. RFC 9116, sec. 3. ↩

  23. ENISA, Technical Advisory on security.txt, 11, sec. 3.1.2, table, row “Must be at /.well-known/security.txt”. ↩

  24. RFC 9116, secs. 2.5 and 5.7. ↩

  25. ENISA, Technical Advisory on security.txt, 11, sec. 3.1.2, table, row “Must be served with Content-Type: text/plain; charset=utf-8”. ↩

  26. ENISA, Technical Advisory on security.txt, 8, sec. 2, table, row “File cannot be accessed”. ↩

  27. RFC 9116, sec. 3.1. ↩

  28. ENISA, Technical Advisory on security.txt, 10, sec. 3.1.1, first paragraph. ↩

  29. RFC 9116, sec. 5.2. ↩

  30. ENISA, Technical Advisory on security.txt, 11, sec. 3.1.2, table, row “Redirects are allowed but scrutinised”. ↩

  31. ENISA, Technical Advisory on security.txt, 10, sec. 3.1.1, last paragraph. ↩

  32. RFC 9116, sec. 2.3. ↩

  33. RFC 9116, sec. 5.1. ↩

  34. ENISA, Technical Advisory on security.txt, 12, sec. 3.1.3, paragraph below the table. ↩

  35. Federal Office for Information Security (BSI), Technical Guideline BSI TR-03183: Cyber Resilience Requirements for Manufacturers and Products. Part 3: Vulnerability Reports and Notifications, version 1.0.0 (Bonn: BSI, 20 August 2025), secs. 4.2.2, 4.2.3, 4.2.6, 4.2.9, and 4.2.10, https://www.bsi.bund.de/dok/TR-03183-en (hereafter cited as BSI TR-03183-3). ↩

  36. ENISA, Technical Advisory on security.txt, 8, sec. 2, table, rows under “security.txt”. ↩

  37. RFC 9116, secs. 2.5.4 and 2.5.5. ↩

  38. RFC 9116, sec. 5.3. ↩

  39. ENISA, Technical Advisory on security.txt, 13–16, sec. 3.2.1. ↩

  40. ENISA, Technical Advisory on security.txt, 7, sec. 1.2, fourth bullet. ↩

  41. ENISA, Technical Advisory on security.txt, p. 15, sec. 3.2.1, footnote 7 (attached to the row “Acknowledgement of receipt”). ↩

  42. CRA, art. 14(2)(a). ↩

  43. ENISA, Technical Advisory on security.txt, 9, sec. 2, table, row “Report not checked for active exploitation”; 16, sec. 3.2.2, third bullet. ↩

  44. CRA, annex I, part II, point 4. ↩

  45. CRA, art. 14(8). ↩

  46. ENISA, Technical Advisory on security.txt, 18, sec. 3.3.2, fourth bullet. ↩

  47. CRA, art. 13(6). ↩

  48. ENISA, Technical Advisory on security.txt, 16, sec. 3.2.2, fifth bullet. ↩

  49. ENISA, Technical Advisory on security.txt, 11, sec. 3.1.2, table, row “Must be served with Content-Type: text/plain; charset=utf-8”. ↩

  50. BSI TR-03183-3, sec. 4.2.9. ↩

  51. securitytxt.org, “security.txt,” accessed 27 October 2026, https://securitytxt.org/. ↩

  52. CRA, art. 13(17), second subparagraph; annex I, part II, points 5 and 6. ↩

  53. ENISA, Technical Advisory on security.txt, 6, sec. 1, table, row “security.txt”; 10, sec. 3.1, first paragraph. ↩

  54. prEN 40000-1-3, sec. 5.3.2.4.1, RCP-1-RC-01. ↩

  55. RFC 9116, sec. 5.5. ↩

  56. RFC 9116, sec. 3.1. ↩

  57. Jannick Bruhns, “Product Security Fields for security.txt,” Internet-Draft draft-bruhns-securitytxt-product-security-00 (Internet Engineering Task Force, 10 September 2026), https://www.ietf.org/ietf-ftp/internet-drafts/draft-bruhns-securitytxt-product-security-00.html. ↩

  58. ENISA, Technical Advisory on security.txt, 13, sec. 3.1.4, note below the file. ↩

  59. RFC 9116, sec. 5.3. ↩

  60. CRA, art. 13(17), third subparagraph. ↩

  61. CRA, art. 71(2), second subparagraph. ↩

Sources

Bruhns, Jannick. “Product Security Fields for security.txt.” Internet-Draft draft-bruhns-securitytxt-product-security-00. Internet Engineering Task Force, 10 September 2026. https://www.ietf.org/ietf-ftp/internet-drafts/draft-bruhns-securitytxt-product-security-00.html.

Directive (EU) 2022/2555 of the European Parliament and of the Council of 14 December 2022 on measures for a high common level of cybersecurity across the Union, amending Regulation (EU) No 910/2014 and Directive (EU) 2018/1972, and repealing Directive (EU) 2016/1148 (NIS 2 Directive). OJ L 333, 27.12.2022, 80–152. https://eur-lex.europa.eu/eli/dir/2022/2555/oj.

European Union Agency for Cybersecurity (ENISA). ENISA Technical Advisory on security.txt, CVD Policies and Security Advisories: SME Vulnerability Kit. Draft for public consultation. Athens: ENISA, October 2026. https://www.enisa.europa.eu/sites/default/files/2026-10/Technical%20Advisory%20on%20security.txt%20CVD%20Policies%20and%20Security%20Advisories%20Public%20Consultation.pdf.

CEN and CENELEC. prEN 40000-1-3. Draft harmonised standard on vulnerability handling for products with digital elements, prepared by CEN/CLC/JTC 13. Not yet published.

Federal Office for Information Security (BSI). Technical Guideline BSI TR-03183: Cyber Resilience Requirements for Manufacturers and Products. Part 3: Vulnerability Reports and Notifications. Version 1.0.0. Bonn: BSI, 20 August 2025. https://www.bsi.bund.de/dok/TR-03183-en.

Foudil, Edwin, and Yakov Shafranovich. A File Format to Aid in Security Vulnerability Disclosure. RFC 9116. RFC Editor, April 2022. https://www.rfc-editor.org/info/rfc9116/.

Internet Assigned Numbers Authority (IANA). “security.txt Fields.” Protocol registry. Accessed 27 October 2026. https://www.iana.org/assignments/security-txt-fields/security-txt-fields.xhtml.

Regulation (EU) 2024/2847 of the European Parliament and of the Council of 23 October 2024 on horizontal cybersecurity requirements for products with digital elements and amending Regulations (EU) No 168/2013 and (EU) 2019/1020 and Directive (EU) 2020/1828 (Cyber Resilience Act). OJ L, 2024/2847, 20.11.2024. https://eur-lex.europa.eu/eli/reg/2024/2847/oj.

securitytxt.org. “security.txt.” Accessed 27 October 2026. https://securitytxt.org/.