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-13135 Overview
CVE-2025-13135 is a stored Cross-Site Scripting (XSS) vulnerability in the HotelRunner Booking Widget plugin for WordPress. The flaw affects all plugin versions up to and including 5.2.4. It stems from insufficient input sanitization and output escaping on user-supplied attributes passed to the plugin's hotelrunner shortcode. Authenticated users with contributor-level access or higher can inject arbitrary web scripts into pages. The injected payload executes in the browser of any visitor who views the affected page. The weakness is classified as CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
Authenticated contributors can store JavaScript payloads that execute in the context of site visitors and administrators, enabling session theft, account takeover, and site defacement.
Affected Products
- HotelRunner Booking Widget plugin for WordPress, versions up to and including 5.2.4
- WordPress sites with contributor-level or higher user registration enabled
- Any WordPress page or post rendering the hotelrunner shortcode
Discovery Timeline
- 2025-11-21 - CVE-2025-13135 published to the National Vulnerability Database
- 2026-10-07 - Last updated in the NVD database
Technical Details for CVE-2025-13135
Vulnerability Analysis
The vulnerability resides in the handling of attributes passed to the plugin's hotelrunner shortcode. The plugin accepts attribute values from the shortcode invocation and renders them back into page HTML without applying sufficient sanitization or output escaping. An authenticated contributor can craft a shortcode invocation containing attribute values that break out of the surrounding HTML context and introduce executable JavaScript. Because the payload is persisted with the post or page content, it fires each time a visitor loads the affected URL. The attack requires low privileges and no user interaction beyond normal page browsing. Scope is marked as changed in the CVSS vector, reflecting that the injected script executes in the browser trust boundary of other users rather than the attacker.
Root Cause
The root cause is a failure to apply WordPress sanitization helpers such as sanitize_text_field() on inbound shortcode attributes and escaping functions such as esc_attr() or esc_html() on output. Shortcode attributes supplied by contributors are concatenated directly into generated HTML markup. This matches the CWE-79 pattern for stored XSS introduced through content authoring workflows.
Attack Vector
Exploitation requires an authenticated session with contributor-level privileges or higher on the target WordPress site. The attacker edits or creates a post that embeds the hotelrunner shortcode with a malicious attribute payload designed to escape the attribute context. Once the post is viewable, any visitor rendering the page triggers execution of the injected script. See the Wordfence Vulnerability Report for the full technical write-up.
// No verified proof-of-concept code is published for this CVE.
// Refer to the Wordfence advisory linked above for exploitation details.
Detection Methods for CVE-2025-13135
Indicators of Compromise
- Post or page content containing the [hotelrunner] shortcode with attributes that include characters such as ", ', <, >, or javascript: sequences
- Unexpected <script> tags, event handlers (onerror=, onload=), or encoded payloads rendered inside pages that use the HotelRunner booking widget
- WordPress audit log entries showing contributor accounts editing posts that embed the plugin shortcode
Detection Strategies
- Query the wp_posts table for post content matching the hotelrunner shortcode and inspect attribute values for suspicious characters
- Deploy a web application firewall rule that flags HTTP responses containing script-like constructs within pages served by the plugin
- Review browser Content Security Policy violation reports for inline script execution originating from pages that render the booking widget
Monitoring Recommendations
- Monitor creation and modification of contributor and author accounts, especially bulk registrations from a single source
- Alert on administrative session cookies being transmitted to unexpected destinations following page views of booking widget pages
- Track plugin version inventory across managed WordPress sites and flag any instance running 5.2.4 or earlier
How to Mitigate CVE-2025-13135
Immediate Actions Required
- Update the HotelRunner Booking Widget plugin to a version later than 5.2.4 once a patched release is available from the vendor
- Audit all existing posts and pages containing the hotelrunner shortcode and remove any attributes containing script content
- Restrict contributor-level and above account creation, and review existing low-privilege accounts for legitimacy
Patch Information
All versions up to and including 5.2.4 are affected. Consult the HotelRunner plugin page on WordPress.org for current release information and apply the vendor-supplied fix as soon as it is published.
Workarounds
- Deactivate the HotelRunner Booking Widget plugin until a patched version is installed
- Remove the hotelrunner shortcode from published content, or restrict shortcode use to administrator accounts via a capability-management plugin
- Enforce a strict Content Security Policy that disallows inline script execution on pages where the plugin is active
# Identify posts referencing the vulnerable shortcode
wp post list --format=ids --post_status=any \
| xargs -I{} wp post get {} --field=post_content \
| grep -n 'hotelrunner'
# Deactivate the plugin as a temporary mitigation
wp plugin deactivate hotelrunner
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

