Description
The Mandatory Field plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 1.6.8 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.
Published: 2026-03-21
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored Cross‑Site Scripting
Action: Apply Patch
AI Analysis

Impact

The Mandatory Field plugin for WordPress allows authenticated administrators to store malicious scripts in the plugin’s settings, which are then rendered on any page that includes those settings. The vulnerability is a classic stored XSS flaw (CWE‑79) that can lead to session hijacking, defacement, or the execution of arbitrary code within the context of site visitors. No external file downloads or network exploits are required; the weakness resides in the server‑side processing of admin input.

Affected Systems

The problem exists in all releases of the Mandatory Field plugin up to and including version 1.6.8. It impacts WordPress multi‑site installations or single sites where the unfiltered_html capability is turned off, and only attackers who can log in as administrator or higher can abuse the flaw.

Risk and Exploitability

The CVSS score of 4.4 indicates moderate severity. The advisory does not list an exploitation probability score, and the issue is not in the CISA KEV catalog. The likely attack vector is an authenticated administrator performing normal configuration changes; exploitation requires no additional lateral movement or privilege escalation beyond the existing admin role.

Generated by OpenCVE AI on March 21, 2026 at 06:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Mandatory Field plugin to the latest version that removes the stored XSS flaw.
  • Ensure that only trusted administrators have the ability to edit plugin settings and that the unfiltered_html feature remains disabled for all other roles.
  • Review any existing configuration values for embedded script tags and remove or sanitize them.
  • Monitor site activity for signs of injected scripts or unexpected behavior, and consider running a web application firewall that blocks script injection.

Generated by OpenCVE AI on March 21, 2026 at 06:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 24 Mar 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 23 Mar 2026 10:00:00 +0000

Type Values Removed Values Added
First Time appeared Ketanmujumdar
Ketanmujumdar mandatory Field
Wordpress
Wordpress wordpress
Vendors & Products Ketanmujumdar
Ketanmujumdar mandatory Field
Wordpress
Wordpress wordpress

Sat, 21 Mar 2026 05:30:00 +0000

Type Values Removed Values Added
Description The Mandatory Field plugin for WordPress is vulnerable to Stored Cross-Site Scripting via admin settings in all versions up to, and including, 1.6.8 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with administrator-level permissions and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. This only affects multi-site installations and installations where unfiltered_html has been disabled.
Title Mandatory Field <= 1.6.8 - Authenticated (Administrator+) Stored Cross-Site Scripting via Settings Fields
Weaknesses CWE-79
References
Metrics cvssV3_1

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


Subscriptions

Ketanmujumdar Mandatory Field
Wordpress Wordpress
cve-icon MITRE

Status: PUBLISHED

Assigner: Wordfence

Published:

Updated: 2026-04-08T17:29:10.782Z

Reserved: 2026-01-20T22:08:30.988Z

Link: CVE-2026-1278

cve-icon Vulnrichment

Updated: 2026-03-24T14:00:21.200Z

cve-icon NVD

Status : Deferred

Published: 2026-03-21T04:16:52.437

Modified: 2026-04-22T21:32:08.360

Link: CVE-2026-1278

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-03-25T14:41:26Z

Weaknesses