CVE-2025-2111

WP Headers And Footers <= 3.1.1 - Cross-Site Request Forgery to Arbitrary Options Update

Published Apr 19, 2025 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
The Insert Headers And Footers plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 3.1.1. This is due to missing or incorrect nonce validation on the 'custom_plugin_set_option' function. This makes it possible for unauthenticated attackers to update arbitrary options on the WordPress site via a forged request granted they can trick a site administrator into performing an action such as clicking on a link. This can be leveraged to update the default role for registration to administrator and enable user registration for attackers to gain administrative user access to a vulnerable site. The 'WPBRIGADE_SDK__DEV_MODE' constant must be set to 'true' to exploit the vulnerability.

Analysis

AI-generated

Technical impact

The vulnerability arises from missing or incorrect nonce validation in the plugin's 'custom_plugin_set_option' function. This flaw allows an unauthenticated attacker, by tricking an administrator into visiting a crafted URL, to modify any plugin option on the site. By changing the default registration role to administrator and enabling user registration, an attacker can create an administrative account and gain full control of the WordPress installation.

Affected Systems

All releases of the Insert Headers And Footers plugin up to and including version 3.1.1 are affected. The plugin is distributed by hiddenpearls under the name Insert Headers And Footers for WordPress and should be upgraded to the latest version that fixes the CSRF flaw.

Risk and Exploitability

The flaw carries a CVSS score of 7.5 and an EPSS score below 1 percent, indicating moderate severity with a low exploitation probability. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires that the site has the WPBRIGADE_SDK__DEV_MODE constant set to true and that an administrator clicks a malicious link that submits an unauthorized request to the 'custom_plugin_set_option' endpoint. Successful exploitation can lead to privilege escalation by creating an attacker-controlled administrator account.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Insert Headers And Footers plugin to the latest version that contains the fix.
  • Disable or remove the WPBRIGADE_SDK__DEV_MODE constant from the site's configuration to prevent the exploit from functioning.
  • Verify that no unauthorized administrator accounts exist and that the default registration role is set appropriately, reverting to a less privileged role if necessary.

Generated by OpenCVE AI on April 22, 2026 at 01:42 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-11933 The Insert Headers And Footers plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 3.1.1. This is due to missing or incorrect nonce validation on the 'custom_plugin_set_option' function. This makes it possible for unauthenticated attackers to update arbitrary options on the WordPress site via a forged request granted they can trick a site administrator into performing an action such as clicking on a link. This can be leveraged to update the default role for registration to administrator and enable user registration for attackers to gain administrative user access to a vulnerable site. The 'WPBRIGADE_SDK__DEV_MODE' constant must be set to 'true' to exploit the vulnerability.
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The Insert Headers And Footers plugin for WordPress is vulnerable to Cross-Site Request Forgery in all versions up to, and including, 3.1.1. This is due to missing or incorrect nonce validation on the 'custom_plugin_set_option' function. This makes it possible for unauthenticated attackers to update arbitrary options on the WordPress site via a forged request granted they can trick a site administrator into performing an action such as clicking on a link. This can be leveraged to update the default role for registration to administrator and enable user registration for attackers to gain administrative user access to a vulnerable site. The 'WPBRIGADE_SDK__DEV_MODE' constant must be set to 'true' to exploit the vulnerability.
Title WP Headers And Footers <= 3.1.1 - Cross-Site Request Forgery to Arbitrary Options Update
Weaknesses CWE-352
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-352

    Cross-Site Request Forgery (CSRF)

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 5:02 PM
Reserved
Mar 7, 2025, 11:55 PM
Status
Deferred
Published
Apr 19, 2025, 6:15 AM
Modified
Jun 17, 2026, 9:06 AM