
Cloud Vulnerability DB
A community-led vulnerabilities database
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).
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).
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).
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).
width attribute, e.g., [ivysilani width="1\" onmouseover=\"alert(document.cookie)\""] or a similar XSS vector that breaks out of the attribute context.wp-admin/post.php or the REST API containing shortcode content with unusual characters (e.g., <script>, onerror=, onmouseover=) in the width parameter.wp_posts table entries containing iVysilani shortcodes with JavaScript payloads or HTML event handlers embedded in the width attribute.wp-content/plugins/ivysilani-shortcode/ivysilani-shortcode.php for unauthorized modifications.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).
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.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."