Sets custom headers for WP notification emails. Also fixes a security issue with WP versions < 5.5.
As of April 2026, Host Header Injection Fix is a WordPress email plugin with 500 active installations and a 5/5 rating from 6 reviews. It has been downloaded 25K+ times in total. Requires WordPress 4.7+ and PHP 5.6.20+. Available on WordPress.org since 2017. Actively maintained — updated within the last month. Top alternative: WP Mail SMTP by WPForms – The Most….
👉 Enables custom headers for WP email notifications
👉 Also provides a “set it and forget it” security fix for WP < 5.5
👉 Uses only 50KB of code, so super lightweight, fast, and effective
Important
As of WordPress 5.5, this plugin no longer is necessary to fix the host-header security issue reported in Ticket #25239 finally is fixed, and mentioned in this post WordPress 5.5 Beta 4. Thank You WordPress devs!
Is this plugin still useful?
Yes, it enables you to choose the “From”, “Name”, and “Return-Path” headers for all WP notification emails. And for versions of WordPress less than 5.5, this plugin continues to fix the host-header injection security issue.
Features
This simple plugin does three things:
| WordPress | 4.7+ requiredTested up to 7.0 |
| PHP | 5.6.20+ required |
If you like Host Header Injection Fix, please take a moment to give a 5-star rating. It helps to keep development and support going strong. Thank you!
3.5 (2026/01/29)
Full changelog @
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.