CVE-2026-3907
Deferred Deferred - Pending Action

Stored XSS in Hostel WordPress Plugin

Vulnerability report for CVE-2026-3907, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-10

Last updated on: 2026-07-10

Assigner: Wordfence

Description

The Hostel plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'wphostel-book' shortcode in all versions up to and including 1.1.7. This is due to insufficient input sanitization and output escaping on user-supplied shortcode attributes. Specifically, the second shortcode attribute (used as button text) is passed to the `$text` variable without sanitization at line 79 and then output directly into an HTML `value` attribute at line 91 without `esc_attr()` or any other escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-10
Last Modified
2026-07-10
Generated
2026-07-30
AI Q&A
2026-07-10
EPSS Evaluated
2026-07-28
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
wp_hotel hostel to 1.1.7 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The Hostel plugin for WordPress has a Stored Cross-Site Scripting (XSS) vulnerability in the 'wphostel-book' shortcode in all versions up to and including 1.1.7.

This vulnerability arises because user-supplied shortcode attributes are not properly sanitized or escaped before being output.

Specifically, the second shortcode attribute, which is used as button text, is assigned to a variable without sanitization and then output directly into an HTML value attribute without escaping.

As a result, authenticated attackers with Contributor-level access or higher can inject arbitrary web scripts into pages, which will execute whenever a user accesses those pages.

Detection Guidance

This vulnerability involves the 'wphostel-book' shortcode in the Hostel WordPress plugin up to version 1.1.7, where the second shortcode attribute is not properly sanitized or escaped, allowing stored cross-site scripting.

To detect this vulnerability on your system, you can search for usage of the 'wphostel-book' shortcode in your WordPress pages or posts, especially looking for suspicious or unexpected script tags or HTML attributes in the button text attribute.

You can also scan your WordPress database for posts or pages containing the shortcode with potentially malicious script injections.

  • Use WP-CLI to search for the shortcode in post content: wp db query "SELECT ID, post_title FROM wp_posts WHERE post_content LIKE '%[wphostel-book%'"
  • Manually inspect the shortcode attributes in the content returned for suspicious script tags or unusual HTML.
  • Monitor HTTP traffic for unexpected script execution or alerts from web application firewalls related to the 'wphostel-book' shortcode.
Impact Analysis

This vulnerability can allow attackers with Contributor-level access or above to inject malicious scripts into your website's pages.

When other users visit these pages, the injected scripts will execute in their browsers, potentially leading to theft of sensitive information, session hijacking, or other malicious actions.

Because the vulnerability is a Stored Cross-Site Scripting issue, the malicious code persists on the site and affects all visitors to the infected pages.

Compliance Impact

The vulnerability allows authenticated attackers with Contributor-level access and above to inject arbitrary web scripts via stored cross-site scripting (XSS). This can lead to unauthorized access or manipulation of user data when users access the injected pages.

Such unauthorized script execution can compromise the confidentiality and integrity of user data, potentially violating data protection requirements under standards like GDPR and HIPAA, which mandate safeguarding personal and sensitive information against unauthorized access or disclosure.

Therefore, this vulnerability could negatively impact compliance with these regulations by exposing user data to cross-site scripting attacks.

Mitigation Strategies

The immediate mitigation step is to update the Hostel WordPress plugin to a version later than 1.1.7 where this vulnerability is fixed.

If an update is not immediately available, restrict Contributor-level and higher user access to trusted users only, as the vulnerability requires authenticated users with Contributor-level access or above.

Additionally, consider disabling or removing the 'wphostel-book' shortcode temporarily to prevent exploitation.

Implement web application firewall (WAF) rules to detect and block attempts to inject scripts via shortcode attributes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-3907. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart