Host Header Injection Fix
Sets custom headers for WP notification emails. Also fixes a security issue with WP versions < 5.5.
Choix
Yes — Host Header Injection Fix is a safe, well-maintained plugin to use in 2026. It runs on 400+ sites, is rated 5/5 and was last updated 4 weeks ago, and scores 82/100 on our health check.
- Développé activement — Dernière mise à jour il y a 4 semaines
- Testé avec le dernier WordPress (7.1)
- Momentum — Téléchargements en hausse de 191,3 % par rapport aux 30 jours précédents
- Petite base d'utilisateurs (400+ installations actives)
Comment s'accumule-t-il ?
Côte à côte sur les installations, les mises à jour, les évaluations et le supportTéléchargements quotidiens
Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.
Classements
Where Host Header Injection Fix stands todayWordPress.org Classements de recherche
Position en direct dans la recherche de plugins, Top 100| Mot-clé | Position |
|---|---|
| >100 | |
| headers | #44 |
| injection | #4 |
| notification | >100 |
| la sécurité | >100 |
Adoption de version
Part de sites actifs par version.
Répartition des notes
★★★★★ ★★★★★ 5 sur 6 avis
About Host Header Injection Fix
From the official readme · v3.8Description
👉 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.
Traits
This simple plugin does three things:
- Sets custom From, Name, and Return-Path for WP notifications
- Fixes a security vulnerability in WordPress versions < 5.5
- Fixes a bug where invalid email addresses may be generated (in WordPress versions < 5.5)
Choose from the following options:
- Use WordPress defaults (insecure for WP < 5.5)
- Use “Email Address” from WP General Settings
- Use a custom name and address
Plus there is an option to use the specified From address as the Return-Path header.
Pourquoi?
The security issue fixed by this plugin has been known about since way back in WordPress version 2.3. There has been some talk about fixing, but nothing has been implemented. While the issue does not affect all sites, it does affect a good percentage of them, including some of my own projects. So, not wanting to get hacked, I decided to write my own solution. Hopefully this issue gets fixed in a future version of WordPress, and this plugin will become unnecessary.
As a bonus, setting an explicit From address resolves a long-standing bug whereby an invalid email address is generated under the following conditions:
- A “From” address is not set,
- And the
$_SERVER['SERVER_NAME']is empty
So by explicitly setting a “From” address, we prevent this bug from happening.
Security Issue
What is the security issue addressed by this plugin? Follows is a quick summary. To learn more in-depth, check out the resources linked in the next section.
- WP uses
$_SERVER['SERVER_NAME']to set the “From” header in email notifications - This includes sensitive email notifications like password resets and user registration
- In some cases, an attacker could modify the “From” header and intercept the email
- Using the intercepted email, an attacker could gain access to your site and wreak havoc
More Infos
This security vulnerability is well-known and has been around for a looong time. To learn more, check out these articles:
Intimité
Ce plugin ne collecte ou ne stocke aucune donnée utilisateur. Il ne définit aucun cookies et ne se connecte à aucun emplacement tiers. Ainsi, ce plugin n'affecte en rien la confidentialité des utilisateurs.
Host Header Injection Fix is developed and maintained by Jeff Starr, 15-year WordPress developer and book author.
Soutenir le développement
Je développe et entretient ce plugin gratuit avec amour pour la communauté WordPress. Pour montrer votre soutien, vous pouvez faire un don ou acheter l'un de mes livres :
- Le Tao de WordPress
- Creuser dans WordPress
- .htaccess facile
- WordPress Thèmes en profondeur
- Recettes SQL de l'assistant pour WordPress
Et/ou acheter un de mes plugins Premium WordPress :
- BBQ Pro – Feu rapide WordPress Pare-feu
- Blackhole Pro – bloquer automatiquement les mauvais bots
- Banhammer Pro – Surveiller la circulation et interdire les méchants
- GA Google Analytics Pro – Connexion WordPress à Google Analytics
- Head Meta Pro – Tags Ultimate Meta pour WordPress
- Rest Pro Tools – Outils géniaux pour gérer le WP REST API
- Simple Ajax Chat Pro – Salles de chat illimitées
- USP Pro – Formulaires frontaux illimités
Links, tweets and likes also appreciated. Thank you! 🙂
Installation
Installing HHIF
- Téléchargez le plugin sur votre blog et activez
- Visit the plugin settings to configure options
Plus d'informations sur l'installation des plugins WP
Restore Default Options
To restore default options, uninstall the plugin via the WP Plugins screen, and then reinstall.
Like the plugin?
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!
Désinstallation
Ce plugin nettoie après lui-même. Tous les paramètres du plugin seront supprimés de la base de données WordPress lorsque le plugin est supprimé via l'écran des plugins WP.
Journal de modifications
Visit the WordPress Plugins screen, locate the plugin, and click "Update" :)
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.8 (2026/11/04)
- Vérifie le plugin avec le plugin Vérification
- Améliore la sécurité des paramètres du plug-in
- Tests sur WordPress 7.2
Full changelog @ https://plugin-planet.com/wp/changelog/host-header-injection-fix.txt
Pour les développeurs
Est-ce votre plugin ? Montrez les chiffres.
Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.
Best Host Header Injection Fix alternatives
Tous les plugins de messagerie →FAQ
Host Header Injection Fix: quick answers
Réponses directes, extraites des données en direct WordPress.org.
Source : WordPress.org
Is Host Header Injection Fix free?
Yes. Host Header Injection Fix is free to download and use from the official WordPress.org plugin directory.
Is Host Header Injection Fix safe to use in 2026?
Yes — Host Header Injection Fix is a safe, well-maintained plugin to use in 2026. It runs on 400+ sites, is rated 5/5 and was last updated 4 weeks ago, and scores 82/100 on our health check.
How many websites use Host Header Injection Fix?
Host Header Injection Fix is active on 400+ WordPress websites and has been downloaded 28,440 times since it launched in November 2017. It was downloaded 737 times in the last 30 days.
Does Host Header Injection Fix work with WordPress 7.1?
Yes. The developer has tested Host Header Injection Fix up to WordPress 7.2, the latest release. It requires WordPress 4.7 or newer.
What PHP version does Host Header Injection Fix need?
Host Header Injection Fix requires PHP 5.6.20 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Host Header Injection Fix last updated?
The latest version, 3.8, was released on November 4, 2026 (4 weeks ago).
Who makes Host Header Injection Fix?
Host Header Injection Fix is developed and maintained by Jeff Starr.
What are the best alternatives to Host Header Injection Fix?
The most popular alternatives to Host Header Injection Fix are WP Mail SMTP by WPForms (4M+ installs), MC4WP: Mailchimp for WordPr… (1M+ installs) and Easy WP SMTP (500K+ installs).
Propulsé par PageForge
Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.
PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.
- CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
- Son propre titre, URL, SEO champs et schéma pour chaque page
- Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
- Gratuit sur WordPress.org, pas de carte de crédit

