CVE-2026-4132
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe HTTP Headers plugin for WordPress is vulnerable to External Control of File Name or Path leading to Remote Code Execution in all versions up to and including 1.19.2. This is due to insufficient validation of the file path stored in the 'hh_htpasswd_path' option and lack of sanitization on the 'hh_www_authenticate_user' option value. The plugin allows administrators to set an arbitrary file path for the htpasswd file location and does not validate that the path has a safe file extension (e.g., restricting to .htpasswd). Additionally, the username field used for HTTP Basic Authentication is written directly into the file without sanitization. The apache_auth_credentials() function constructs the file content using the unsanitized username via sprintf('%s:{SHA}%s', $user, ...), and update_auth_credentials() writes this content to the attacker-controlled path via file_put_contents(). This makes it possible for authenticated attackers, with Administrator-level access and above, to write arbitrary content (including PHP code) to arbitrary file paths on the server, effectively achieving Remote Code Execution.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe HTTP Headers WordPress plugin (versions up to 1.19.2) allows authenticated administrators to configure an arbitrary file path for htpasswd storage via the 'hh_htpasswd_path' option without validating the path or restricting file extensions. The username from 'hh_www_authenticate_user' is written directly into the file without sanitization via sprintf(), and update_auth_credentials() writes this content to the attacker-controlled path using file_put_contents(), enabling arbitrary file write and thus RCE.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Verify HTTP Headers plugin is installedIn WordPress admin, go to Plugins > Installed Plugins and check if 'HTTP Headers' appears in the list. Note the installed version number.Affected if The plugin is installed and the version is 1.19.2 or lower.
-
Check if htpasswd feature is configuredQuery the WordPress options table for the option named 'hh_htpasswd_path'. This can be done via WP-CLI: wp option get hh_htpasswd_path, or by inspecting the wp_options table directly.Affected if The option 'hh_htpasswd_path' exists and contains a value (indicating the feature is enabled).
-
Check if www-authenticate username is setQuery the WordPress options table for 'hh_www_authenticate_user'. Use WP-CLI: wp option get hh_www_authenticate_user, or inspect the wp_options table directly.Affected if The option 'hh_www_authenticate_user' has a value configured.
-
Verify htpasswd path is not restrictedExamine the value of 'hh_htpasswd_path' to determine if it allows arbitrary paths. Check if the path is restricted to a safe directory or if it accepts any file path provided by the administrator.Affected if The 'hh_htpasswd_path' option can be set to an arbitrary file path outside a controlled directory, or if no validation is performed on the path.
-
Check file write permissionsIdentify the web server user (typically www-data, apache, or nginx) and verify if that user has write permissions to directories outside the intended htpasswd storage location.Affected if The web server process can write to arbitrary locations on the filesystem accessible from the WordPress installation.
A user is affected if the HTTP Headers plugin versions up to 1.19.2 is installed with the htpasswd feature enabled (hh_htpasswd_path option configured), allowing an administrator to write arbitrary file content to any writable location on the server.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedRestrict 'hh_htpasswd_path' to a safe directory with mandatory .htpasswd extension, sanitize all username input before writing to the file, and validate the path is within the WordPress installation directory.
Version 1.19.3 or later (latest available version)
- Log in to the WordPress admin dashboard with Administrator privileges
- Navigate to Plugins > Installed Plugins
- Locate the 'HTTP Headers' plugin in the plugin list
- Click 'Update now' if an update is available, or manually download the latest version from the WordPress plugin repository
- After updating, verify the plugin version is newer than 1.19.2
- Review the plugin settings to ensure no malicious configurations were added by any compromised administrator accounts
- Consider changing credentials and reviewing user accounts with administrative access
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation6.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,224.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-4132 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sources- plugins.trac.wordpress.org
- plugins.trac.wordpress.org
- plugins.trac.wordpress.org
- plugins.trac.wordpress.org
- plugins.trac.wordpress.org
- plugins.trac.wordpress.org
- plugins.trac.wordpress.org
- plugins.trac.wordpress.org
- plugins.trac.wordpress.org
- plugins.trac.wordpress.org
- plugins.trac.wordpress.org
- plugins.trac.wordpress.org
- www.wordfence.com
- nvd.nist.gov
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-4132 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data