What the finding means
WordPress ships with a readme.html file in the site’s root folder. It identifies the site as WordPress. Scanners check for it, along with other hints, to work out which WordPress version you run. Knowing the version can help an attacker look up vulnerabilities that apply to it.
Other ways your version or software can be detected include:
- the
generatormeta tag in your page source; - the generator line in your RSS feed;
- the
?ver=numbers on scripts and stylesheets; license.txtand other files that come with WordPress.
How serious is it?
Low. Here’s why:
- Bots don’t usually check versions first. They simply try known exploits against every WordPress site they find.
- If you’re running the current version, there’s little to look up.
- If you’re running an old version, hiding the number doesn’t make it any less vulnerable.
So version disclosure matters mainly as a symptom: if a report shows an old version, the real problem is the old version.
How to fix it anyway
Block readme.html (Apache)
Add to the .htaccess file in your site’s root:
<Files "readme.html">
Require all denied
</Files>
Deleting the file also works, but it comes back with every core update.
Remove the generator tag
Most security plugins (Wordfence, Solid Security, AIOS and others) have an option to hide the WordPress version. Or add this to a small custom plugin or your child theme’s functions.php:
remove_action( 'wp_head', 'wp_generator' );
add_filter( 'the_generator', '__return_empty_string' );
Update
The fix that actually matters: keep WordPress, plugins and themes current, so there’s nothing useful to discover.
From my audit work: clients often arrive worried about a report with 20 findings. Version disclosure, readme.html and similar items take up half the list, while the one finding that actually matters, an outdated plugin with a known vulnerability, sits in the middle in the same color. Part of my security audit is sorting those findings by real risk.