Orofold Labs

Launching soon

Notes Get in touch

Operations and security 4 min read Updated

security.txt and vulnerability reports

In short

Publish a security.txt file at /.well-known/security.txt with Contact and Expires fields, and renew it before the expiry date passes.

A security researcher who finds a vulnerability needs to know where to report it. The security.txt file tells them at a fixed address. It is a short plain-text file, and its format is defined in RFC 9116. Start by publishing it in the right place, with the required fields. The UK National Cyber Security Centre (NCSC) describes the same file in its Vulnerability Disclosure Toolkit.

The file is plain text with Name: value lines

The file is plain text, encoded in UTF-8, made of lines in the form Name: value. Lines that begin with a hash sign are comments, and blank lines are allowed. The NCSC describes the file as a way to advertise your disclosure process. Because it has a standard name and location, researchers do not have to search your site or guess a contact address.

Publish the file at /.well-known/security.txt

Serve the file over HTTPS at /.well-known/security.txt, for example https://example.com/.well-known/security.txt. The RFC also allows the file at the top level of the site, or a redirect to the /.well-known/ copy, for compatibility. If both locations hold a file, the /.well-known/ copy is the one to use. The NCSC advises publishing the file on every domain and subdomain, so that each one has its own copy and researchers can find it wherever they look.

Contact and Expires are required

Two fields are required. Contact gives a method for reporting a vulnerability, such as a mailto, tel or https address, and it must always be present. Expires gives the date and time after which the file is considered stale, and it may appear only once. The other fields are optional.

FieldRequiredWhat it does
ContactYesGives the method for reporting a vulnerability
ExpiresYes, once onlySets the date after which the file should not be used
PolicyNoLinks to your vulnerability disclosure policy
EncryptionNoLinks to a public key for encrypted reports
CanonicalNoLists the addresses where the file is meant to be found

The RFC also defines further optional fields, such as Acknowledgments, Hiring and Preferred-Languages. Check their exact meaning in the RFC before you use them.

The Canonical field matters for trust. If the address a researcher used to retrieve the file is not listed in any Canonical field, the contents should not be trusted. An OpenPGP cleartext signature is recommended, though not required, and it helps confirm that the file really comes from you.

Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea

Plan the renewal before the file expires

An expired file is treated as stale, so the expiry date needs a process behind it. The NCSC recommends an expiry date less than a year in the future. Put the renewal date in a shared calendar and give the task to a named person, so the file does not lapse without anyone noticing.

Handle reports under a published policy

A file that invites reports should be backed by a disclosure policy. The NCSC lists what a basic policy should cover: how to contact you, secure ways to communicate, what a report should include, what the finder can expect in return, and what is in and out of scope. The Policy field can link to that document, so researchers can read the rules before they report.

A checklist for publishing

  1. Write the file with Contact and Expires, and add Policy and Encryption if you have them.
  2. Set Expires less than a year ahead, and record the renewal date in a shared calendar.
  3. Publish the file at /.well-known/security.txt on every domain and subdomain.
  4. Add Canonical with the addresses where the file lives, and consider signing the file.
  5. Publish a disclosure policy that covers contact, scope and what finders can expect.
  6. Open the file in a browser over HTTPS after every change, to confirm it loads.

The protections that secure the site itself are covered in the article on HTTP security headers worth setting. A reported vulnerability that turns out to be serious follows the steps in the article on incident response for a small team. The categories of risk that reports usually describe are summarised in the article on the OWASP Top 10 for product owners.

A summary of RFC 9116 and the NCSC Vulnerability Disclosure Toolkit. Read the RFC for the full definition of each field. In your policy, promise only the response times and actions that your team can actually deliver.

Sources and limits

Common questions

Is security.txt the same as a disclosure policy?
No. The file tells researchers how to reach you, while the policy sets out the rules. The Policy field in the file can link to the policy.
What happens when the file expires?
The RFC treats the file as stale after the date in the Expires field, and it should not be used after that. Renew the file before that date.
Can the contact be an email address only?
The Contact field accepts a method such as a mailto, tel or https address. Choose one that someone reads reliably, and check it regularly.

Sources

  1. A File Format to Aid in Security Vulnerability Disclosure (RFC 9116), IETF. Accessed 24 November 2026
  2. The NCSC’s Vulnerability Disclosure Toolkit, NCSC (UK). Accessed 24 November 2026

Further reading

  • HTTP security headers worth setting

    Set Strict-Transport-Security, X-Content-Type-Options, Referrer-Policy and Permissions-Policy, roll each one out in a safe order and check that nothing breaks.

  • Incident response for a small team

    A small team handles an incident well when roles, severity levels and the first hour are agreed before anything breaks.

  • The OWASP Top 10 for product owners

    The OWASP Top 10 is an awareness list of the most critical web risks, and the 2025 edition gives ten categories you can turn into planning questions.

Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea

All notes