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

Cross-Site Request Forgery (CSRF)
CVE CVE-2025-2111
CVSS High (7.5)
Publicly Published April 18, 2025
Last Updated April 19, 2025
Researcher Carlos Ferreira
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.

References

1 affected software package

Software Type Plugin
Software Slug wp-headers-and-footers (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 3.1.1
Patched Version
  • 3.1.2
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.