CVE-2026-1851
WordPress vulnerability analysis and mitigation

Overview

CVE-2026-1851 is a Stored Cross-Site Scripting (XSS) vulnerability in the iVysilani Shortcode plugin for WordPress, affecting all versions up to and including 3.0. The flaw arises from insufficient input sanitization and output escaping of the width shortcode attribute, allowing authenticated attackers with Contributor-level access or above to inject arbitrary web scripts into pages. Injected scripts execute for any user who visits the affected page. It carries a CVSS v3.1 base score of 6.4 (Medium) (Wordfence, EUVD).

Technical details

The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting). The vulnerable code is located in ivysilani-shortcode.php at line 65, where the width shortcode attribute is rendered into the page output without proper sanitization or escaping. An attacker with at least Contributor-level WordPress access can craft a shortcode containing a malicious JavaScript payload in the width parameter and embed it in a post or page; the script is then stored server-side and executes in the browsers of all subsequent visitors (Wordfence, Plugin Source).

Impact

Successful exploitation allows an authenticated attacker to persistently inject malicious JavaScript that executes in the context of any visitor's browser session, potentially leading to session hijacking, credential theft, defacement, or redirection to malicious sites. The scope is changed (S:C in CVSS terms), meaning the impact extends beyond the attacker's own session to affect all users viewing the compromised page. Confidentiality and integrity are both impacted at a low level, while availability is unaffected (Wordfence).

Exploitability

No public exploit code or active in-the-wild exploitation has been reported for CVE-2026-1851 as of the latest available data. The EPSS score is approximately 0.03%, indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires at minimum Contributor-level authentication on the target WordPress site, which limits the attack surface compared to unauthenticated vulnerabilities (Wordfence).

Exploitation steps

  1. Reconnaissance: Identify WordPress sites running the iVysilani Shortcode plugin (version ≤ 3.0) by checking plugin listings or HTTP response headers/footers.
  2. Obtain Contributor Access: Register or compromise an account with at least Contributor-level privileges on the target WordPress site.
  3. Craft Malicious Shortcode: Create or edit a post/page and insert a shortcode with a malicious payload in the width attribute, e.g., [ivysilani width="1\" onmouseover=\"alert(document.cookie)\""] or a similar XSS vector that breaks out of the attribute context.
  4. Publish Content: Submit or publish the post/page containing the injected shortcode. The malicious script is now stored in the WordPress database.
  5. Trigger Execution: Any user (including administrators) who visits the affected page will have the injected script execute in their browser, enabling session token theft, credential harvesting, or further attacks (Wordfence, Plugin Source).

Indicators of compromise

  • Logs: WordPress access logs showing POST requests to wp-admin/post.php or the REST API containing shortcode content with unusual characters (e.g., <script>, onerror=, onmouseover=) in the width parameter.
  • Database: WordPress wp_posts table entries containing iVysilani shortcodes with JavaScript payloads or HTML event handlers embedded in the width attribute.
  • Network: Outbound requests from visitor browsers to unexpected external domains shortly after loading pages containing iVysilani shortcodes (indicative of script-based data exfiltration).
  • File System: No direct file-system artifacts expected, as the payload is stored in the database; however, review wp-content/plugins/ivysilani-shortcode/ivysilani-shortcode.php for unauthorized modifications.

Mitigation and workarounds

As of the disclosure date, no patched version of the iVysilani Shortcode plugin beyond 3.0 has been confirmed. Site administrators should immediately deactivate and remove the plugin until a patched version is released. As a workaround, restrict Contributor-level user registration and audit existing Contributor accounts for unauthorized content. Monitor the WordPress plugin page for updates from the vendor (deckercz) (Wordfence).

Community reactions

The vulnerability was discovered and reported by Wordfence, which assigned the CVE and published the advisory. No significant broader media coverage, researcher commentary, or notable social media discussion has been identified for this vulnerability beyond the initial Wordfence disclosure.

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-2024-13784CRITICAL9.8
  • arforms-form-builder
NoYesAug 16, 2026
CVE-2026-65640HIGH8.8
  • wordpress
NoYesAug 17, 2026
CVE-2026-11801HIGH7.5
  • wpadverts
NoYesAug 18, 2026
CVE-2026-13700MEDIUM5.9
  • wooms
NoNoAug 17, 2026
CVE-2026-14832MEDIUM5.3
  • shopsmart-loyalty-for-woocommerce
NoNoAug 17, 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