# security.txt: tell researchers how to report a vulnerability

Canonical: [security.txt: tell researchers how to report a vulnerability](https://contextingo.com/blog/security-txt-vulnerability-disclosure)

Locale: en

Purpose: RFC 9116 defines a security.txt file served at /.well-known/security.txt. The fields to include, an example, and why it matters before the CRA.

Content updated: 2026-10-24

Source revision: content.ts 2026-10-24

Maintenance owner: the Contextingo site owner

[Topic map](https://contextingo.com/llm/topics/blog.md) · [Complete scoped map](https://contextingo.com/sitemap.md)

When someone finds a security problem in your service, they need to know whom to tell. `security.txt` is a small text file at a known location that answers that question. It is defined in RFC 9116.

## Where it lives

At `/.well-known/security.txt` on your domain, served over HTTPS.

## Example

```
Contact: mailto:security@example.com
Expires: 2027-06-30T00:00:00Z
Preferred-Languages: en
Canonical: https://example.com/.well-known/security.txt
Policy: https://example.com/security
```

## Fields

- **Contact** (required): an address or URL. It may appear more than once.
- **Expires** (required): when the file should no longer be trusted. Keep it current.
- Optional: Encryption, Acknowledgments, Preferred-Languages, Canonical, Policy, Hiring.

## Process behind the file

1. Make sure the mailbox is read.
2. Confirm receipt within a few days.
3. Triage, fix, and tell the reporter.
4. Say what you expect from reporters, and do not threaten them.

Vulnerability handling becomes a legal duty for many products in the EU, see [the Cyber Resilience Act](/blog/cyber-resilience-act-2027).

## Source

- [RFC 9116: A file format to aid in security vulnerability disclosure](https://www.rfc-editor.org/rfc/rfc9116)

## Questions

### Is the Expires field required?

Yes. RFC 9116 requires Contact and Expires.

### Should I sign the file?

Signing is recommended by the RFC but optional.
