Hostel <= 1.1.7 - Authenticated (Contributor+) Stored Cross-Site Scripting via 'wphostel-book' Shortcode

6.4
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVE CVE-2026-3907
CVSS 6.4 (Medium)
Publicly Published July 9, 2026
Last Updated July 10, 2026
Researcher Muhammad Yudha - DJ

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.

Learn more about Cross-Site Scripting vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Hostel

Software Type Plugin
Software Slug hostel (view on wordpress.org)
Patched? Yes
Remediation Update to version 1.1.8, or a newer patched version
Affected Version
  • <= 1.1.7
Patched Version
  • 1.1.8

Recent vulnerabilities in Hostel

# Title CVE ID CVSS Researchers Date
1 Hostel <= 1.1.6 - Reflected Cross-Site Scripting via 'shortcode_id' Parameter CVE-2026-1838 6.1 Bee April 17, 2026
2 Hostel <= 1.1.5.9 - Reflected Cross-Site Scripting CVE-2025-66119 6.1 Skalucy November 27, 2025
3 Hostel <= 1.1.5.7 - Reflected Cross-Site Scripting CVE-2025-6234 6.1 Tommaso Gregori June 19, 2025
4 Hostel <= 1.1.5.8 - Authenticated (Admin+) Stored Cross-Site Scripting CVE-2025-6236 4.4 Bob Matyas June 19, 2025
5 Hostel <= 1.1.5.6 - Authenticated (Administrator+) SQL Injection CVE-2025-39566 4.9 astra.r3verii April 16, 2025
6 Hostel <= 1.1.5.5 - Reflected Cross-Site Scripting CVE-2025-31102 6.1 johska March 28, 2025
7 Hostel <= 1.1.5 - Reflected Cross-Site Scripting CVE-2025-30848 6.1 Trương Hữu Phúc (truonghuuphuc) March 27, 2025
8 Hostel <= 1.1.5.2 - Reflected Cross-Site Scripting CVE-2024-3753 6.1 Bob Matyas June 22, 2024
9 hostel <= 1.1.5.3 - Cross-Site Request Forgery CVE-2024-4314 4.3 Benedictus Jovan (aillesiM) May 6, 2024
10 Hostel <= 1.1.5.1 - Authenticated (Administrator+) Stored Cross-Site Scripting CVE-2023-0545 4.4 Felipe Restrepo Rodriguez (pfelilpe) May 10, 2023

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation