CWE-73Weakness · CWE-73

CVE-2026-4132

HIGH · 7.2 CVSS v3.1 Published 2026-04-22
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
78/100
Remediation priority · High
Remotely reachable Zero-click

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 · unedited
The 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 confidence

The 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.

MitigationRestrict '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.

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 checks

Work through these to decide whether this CVE applies to you.

  1. Verify HTTP Headers plugin is installed
    In 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.
  2. Check if htpasswd feature is configured
    Query 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).
  3. Check if www-authenticate username is set
    Query 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.
  4. Verify htpasswd path is not restricted
    Examine 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.
  5. Check file write permissions
    Identify 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.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Restrict '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.

Recommended fix Moderate confidence

Version 1.19.3 or later (latest available version)

  1. Log in to the WordPress admin dashboard with Administrator privileges
  2. Navigate to Plugins > Installed Plugins
  3. Locate the 'HTTP Headers' plugin in the plugin list
  4. Click 'Update now' if an update is available, or manually download the latest version from the WordPress plugin repository
  5. After updating, verify the plugin version is newer than 1.19.2
  6. Review the plugin settings to ensure no malicious configurations were added by any compromised administrator accounts
  7. Consider changing credentials and reviewing user accounts with administrative access

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation3.0 h
  • Implementation6.0 h
  • Testing4.0 h
  • Review / QA2.0 h
15.0 hours of engineering $2,640
Get help mitigating

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 locally
dbcve dependency scanner

Check 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

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-4132 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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