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-5559 Overview
CVE-2025-5559 is a Stored Cross-Site Scripting (XSS) vulnerability in the TimeZoneCalculator plugin for WordPress, developed by Bernhard Riedl. The flaw affects all plugin versions up to and including 3.37. It resides in the plugin's timezonecalculator_output shortcode, which fails to properly sanitize input and escape output on user-supplied attributes. Authenticated attackers with contributor-level access or higher can inject arbitrary JavaScript into pages. The injected scripts execute in the browser context of any user who views the affected page. The issue is categorized under [CWE-79] (Improper Neutralization of Input During Web Page Generation).
Critical Impact
Authenticated contributors can inject persistent JavaScript that executes against site visitors and administrators, enabling session theft, account takeover, or redirection to attacker-controlled infrastructure.
Affected Products
- Bernhard Riedl TimeZoneCalculator plugin for WordPress, all versions up to and including 3.37
- WordPress sites permitting contributor-level or higher user registration
- Pages and posts rendering the timezonecalculator_output shortcode
Discovery Timeline
- 2025-06-26 - CVE-2025-5559 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-5559
Vulnerability Analysis
The TimeZoneCalculator plugin exposes a shortcode named timezonecalculator_output that WordPress users can embed within posts and pages. The shortcode accepts attributes controlled by the user authoring the content. The plugin passes these attributes into rendered HTML without sufficient sanitization or escaping. This allows a contributor to embed JavaScript payloads inside shortcode attributes. When an editor, administrator, or site visitor loads the page, the payload executes in their browser. Because the payload is stored in the post content, exploitation persists across sessions. Contributor accounts typically cannot publish content directly, but their submissions are reviewed by higher-privileged users, which increases the likelihood that an administrator will trigger the payload during review.
Root Cause
The root cause is missing input sanitization and missing output escaping on shortcode attributes handled by the plugin's timezonecalculator_output handler. WordPress provides functions such as esc_attr(), esc_html(), and wp_kses() for neutralizing untrusted data before rendering, but the vulnerable versions do not apply these consistently to shortcode parameters.
Attack Vector
Exploitation requires an authenticated account with contributor privileges or higher on the target WordPress site. The attacker creates or edits a post that includes the timezonecalculator_output shortcode with malicious attribute values containing JavaScript. When the post is previewed, published, or reviewed by another user, the browser parses and executes the injected script. The scope change reflects that the payload runs in the security context of the WordPress site and can act on behalf of the victim user, including performing administrative actions if an administrator triggers the payload.
No verified public proof-of-concept code is available for this issue. Refer to the Wordfence Vulnerability Report for additional technical context.
Detection Methods for CVE-2025-5559
Indicators of Compromise
- Posts, pages, or custom post types containing the [timezonecalculator_output] shortcode with attribute values that include <script>, onerror=, onload=, javascript:, or HTML event handlers.
- Unexpected outbound requests from administrator browsers to unfamiliar domains after viewing content submitted by contributor accounts.
- New or modified WordPress administrator accounts, plugin installations, or option changes correlated with review of contributor-authored posts.
Detection Strategies
- Query the wp_posts table for post_content entries containing timezonecalculator_output combined with suspicious HTML or JavaScript tokens.
- Review contributor and author activity in WordPress audit logs, focusing on post revisions that add shortcode attributes with unusual characters.
- Inspect web server access logs for administrative sessions that immediately preceded anomalous POST requests to /wp-admin/ endpoints.
Monitoring Recommendations
- Enable a WordPress activity logging plugin to record post creation, edits, and user role changes performed by contributor-level accounts.
- Deploy a Content Security Policy (CSP) that restricts inline script execution and log CSP violation reports from admin sessions.
- Alert on installation or activation of the TimeZoneCalculator plugin at version 3.37 or earlier across managed WordPress estates.
How to Mitigate CVE-2025-5559
Immediate Actions Required
- Update the TimeZoneCalculator plugin to a version later than 3.37 as soon as a patched release is available from the vendor.
- Audit existing posts and pages for the timezonecalculator_output shortcode and remove any instances containing script tags or event handler attributes.
- Restrict contributor account creation and review pending contributor submissions in a sandboxed browser session without administrative cookies.
Patch Information
No vendor patch reference is listed in the current NVD entry. Monitor the WordPress Plugin Page and the Wordfence Vulnerability Report for updates on a fixed release.
Workarounds
- Deactivate and remove the TimeZoneCalculator plugin until a patched version is released.
- Revoke contributor-level access from untrusted users and require editor review of all shortcode-containing submissions.
- Deploy a web application firewall rule that blocks requests to /wp-admin/post.php containing timezonecalculator_output combined with HTML script or event handler patterns.
# Configuration example
wp plugin deactivate timezonecalculator
wp plugin delete timezonecalculator
wp db query "SELECT ID, post_title FROM wp_posts WHERE post_content LIKE '%timezonecalculator_output%';"
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

