How to fix missing security txt on WooCommerce

Create and publish a /.well-known/security.txt file with at least a Contact: line so security researchers know how to report vulnerabilities responsibly.

Steps for WooCommerce

  1. In your WordPress file manager (cPanel File Manager, SFTP, or a plugin like WP File Manager), navigate to the root of your site (the folder containing wp-config.php).
  2. Create a folder named .well-known if it does not already exist.
  3. Inside .well-known, upload or create a plain-text file named security.txt containing your contact details (see code snippets).
  4. Confirm the file is served by visiting https://yourdomain.com/.well-known/security.txt — WordPress should pass through static files without needing any rewrite rules.
  5. If you get a 404, add a rewrite rule to your .htaccess (Apache) or nginx config to ensure /.well-known/ is served as a static directory.
Official WooCommerce documentation ↗

What is missing security txt?

A security.txt file is a small, plain-text file you place at a standardised web address on your store (/.well-known/security.txt). It tells security researchers — people who discover bugs or vulnerabilities in websites — exactly how to contact you to report the problem privately, before a bad actor can exploit it. Think of it as a "if you find something broken, call this number" sign on your front door. The format is an internet standard (RFC 9116) championed by the security community and recognised by platforms like Google and HackerOne.

Without a security.txt, a well-meaning researcher who finds a vulnerability in your store has no obvious, trusted way to reach you — so they may give up, publish it publicly, or disclose it to the wrong party, leaving your customers' data exposed. OWASP lists Security Misconfiguration (A05:2021) as one of the most common causes of breaches, and missing disclosure channels fall squarely in that category. Regulators and payment-card standards (PCI-DSS) increasingly expect documented vulnerability-disclosure processes; having a security.txt demonstrates basic security hygiene and can reduce your legal exposure if an incident occurs. It costs almost nothing to add and can prevent a damaging public breach disclosure.

See the complete Missing security txt guide for every platform and the full background.

Not sure if your WooCommerce store has this?

Run a free SEOLZ scan — we’ll find missing security txt and every other issue across your whole site.

Scan my site free

Fix missing security txt on another platform