Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-11863 Overview
CVE-2025-11863 is a Stored Cross-Site Scripting (XSS) vulnerability in the My Geo Posts Free plugin for WordPress. The flaw affects all versions up to and including 1.2. It resides in the mygeo_city shortcode, where the default attribute is neither sanitized on input nor escaped on output. Authenticated users with contributor-level privileges or higher can inject arbitrary JavaScript into pages. The payload executes in the browser of any visitor who later views the affected page, enabling session theft, redirection, or further client-side attacks against site administrators.
Critical Impact
Contributor-level accounts can plant persistent JavaScript that executes against every visitor, including authenticated administrators.
Affected Products
- My Geo Posts Free plugin for WordPress — all versions ≤ 1.2
- WordPress sites that permit contributor-level or higher registration
- Any site rendering content produced by affected contributor accounts
Discovery Timeline
- 2025-11-11 - CVE-2025-11863 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-11863
Vulnerability Analysis
The vulnerability is a stored XSS flaw classified under CWE-79. The My Geo Posts Free plugin exposes a mygeo_city shortcode that accepts user-controlled attributes. The default attribute is written directly into page output without input sanitization or output escaping.
An attacker with contributor privileges embeds the shortcode inside a post or page draft with a malicious default value containing script content. When WordPress renders the shortcode, the payload is injected into the DOM and executed in the context of the site origin. Because the stored content persists in the database, every subsequent view triggers the payload.
The scope is marked as changed in the vendor assessment, reflecting that the injected script runs under the trust boundary of visitors — including administrators — not merely the attacker. Successful exploitation can lead to administrator session hijacking, forced actions through the WordPress REST API, plugin installation, or pivoting to full site takeover.
Root Cause
The shortcode handler in inc/shortcodes.php emits the default attribute value directly without calling esc_attr(), esc_html(), or wp_kses() and without validating input via sanitize_text_field(). See the WordPress Shortcodes File for the vulnerable implementation.
Attack Vector
Exploitation requires an authenticated session with contributor privileges or higher. The attacker creates a post containing the mygeo_city shortcode with a crafted default attribute carrying JavaScript. Once the post is published or previewed by another user, the script executes in that user's browser. No user interaction beyond page navigation is required. Additional analysis is available in the Wordfence Vulnerability Analysis.
Detection Methods for CVE-2025-11863
Indicators of Compromise
- Posts or pages containing [mygeo_city default="..."] shortcodes with HTML tags, <script>, on*= event handlers, or javascript: URIs inside the default attribute
- Unexpected outbound requests from administrator browsers to attacker-controlled domains after viewing contributor content
- New administrator accounts, modified user roles, or plugin installations following contributor post publication
Detection Strategies
- Query the wp_posts table for post_content matching the regex mygeo_city[^\]]*default= and inspect attribute values for script content
- Review web server access logs for POST requests to /wp-admin/post.php or /wp-json/wp/v2/posts from contributor accounts preceding anomalous admin activity
- Deploy a Content Security Policy in report-only mode and monitor violations originating from WordPress rendered pages
Monitoring Recommendations
- Alert on creation or elevation of WordPress user accounts shortly after contributor publishing events
- Monitor outbound HTTP traffic from administrative sessions for connections to unknown third-party domains
- Track plugin and theme file modifications on the WordPress installation to catch post-exploitation persistence
How to Mitigate CVE-2025-11863
Immediate Actions Required
- Deactivate and remove the My Geo Posts Free plugin until a patched release is confirmed by the vendor
- Audit all existing posts and pages for the mygeo_city shortcode and remove any instances with suspicious default attribute values
- Rotate administrator passwords and invalidate active sessions if contributor-published content was viewed by privileged users
Patch Information
As of the data available, no patched version beyond 1.2 is listed. Monitor the plugin's WordPress.org repository for updates. Until a fix is released, treat all installations as vulnerable.
Workarounds
- Restrict contributor and author account creation; require administrator approval for new registrations
- Deploy a Web Application Firewall rule that blocks POST payloads containing mygeo_city shortcode attributes with script content or event handlers
- Enforce a strict Content Security Policy that disallows inline scripts on the WordPress front end to limit the impact of injected payloads
# Example WordPress CLI command to locate vulnerable shortcode usage
wp db query "SELECT ID, post_title, post_author FROM wp_posts \
WHERE post_content REGEXP 'mygeo_city[^\\]]*default=' \
AND post_status IN ('publish','draft','pending');"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

