Skip to main content

Hostel CVE-2026-1838

| EUVDEUVD-2026-23624 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-04-18 Wordfence
6.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker crafts malicious URL with XSS payload
  2. Delivery
    Sends link to target user
  3. Exploit
    User clicks link
  4. Install
    Browser requests page with payload
  5. C2
    Hostel plugin outputs unescaped shortcode_id parameter
  6. Execute
    JavaScript executes in user's browser context
  7. Impact
    Attacker steals session cookie or performs unauthorized action

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires the Hostel plugin to be installed and activated on a WordPress site. The 'shortcode_id' parameter must be accessible in a GET request (or similar reflected context) that renders output without escaping. Exploitation requires user interaction - the attacker cannot exploit this remotely against a server; a user must click or navigate to the crafted malicious URL. No authentication is required from the attacker's perspective, but the victim must be a user with access to the affected page or shortcode. The attack is effective against any visitor to the site, regardless of their privilege level, as long as they access the malicious link in their browser.

Impact

The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:C) indicates a network-accessible vulnerability with low attack complexity and cross-site scope (SameSite bypass potential), but critically requires user interaction (UI:R) to succeed. The impact is limited to confidentiality and integrity (no availability impact; C:L/I:L/A:N), yielding a 6.1 score. While the network vector and low complexity make this broadly reachable, the mandatory user interaction requirement significantly reduces real-world exploitation probability - attackers must craft a malicious link and convince a user to click it. No KEV listing or public proof-of-concept has been identified, suggesting this is not yet actively exploited at scale. For WordPress site owners running Hostel, the risk is moderate but context-dependent: sites with users who might click untrusted links (e.g., in comments, social media) face higher risk than restricted admin environments. The remediation (upgrade to 1.1.7+) is straightforward and low-risk, making this a candidate for immediate patching on security hardening schedules.

Exploit ScenarioDerived

An attacker crafts a malicious URL containing XSS payload in the shortcode_id parameter (e.g., example.com/?shortcode_id=<script>alert('XSS')</script>) and sends it to a website user via email, social media, or comment spam. When the user clicks the link and the page renders, the unescaped parameter is reflected in the HTML, causing the malicious script to execute in their browser context, potentially stealing session cookies, redirecting to phishing pages, or harvesting sensitive information displayed on the page.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 18, 2026

Reflected XSS in Hostel WordPress plugin versions up to 1.1.6 allows unauthenticated attackers to inject arbitrary JavaScript via the 'shortcode_id' parameter, requiring user interaction (clicking a malicious link) to execute. The vulnerability stems from insufficient input sanitization and output escaping in the shortcode handling code. No public exploit code or active exploitation has been identified at time of analysis.

RemediationAI

Upgrade the Hostel plugin to version 1.1.7 or later immediately via the WordPress plugin dashboard or by downloading the patched version from plugins.wordpress.org/plugins/hostel/. The fix includes proper input sanitization and output escaping of the 'shortcode_id' parameter in hostel.php, ajax.php, and the rooms-table.html.php template. If immediate upgrade is not possible, temporarily disable the Hostel plugin and use an alternative hostel booking solution until the patch can be applied. Site administrators should review their WordPress security update policies to ensure automatic updates are enabled for plugins, as plugin updates often contain critical security fixes that are not propagated automatically by default. For additional security context, visit the Wordfence vulnerability report at https://www.wordfence.com/threat-intel/vulnerabilities/id/2b9da491-771a-4100-b41a-7411981dd34b.

Affected VersionsENISA

Hostel 0 ≤1.1.6

Affected Packages

euvd hostel no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Hostel plugin processes user-supplied input through the 'shortcode_id' parameter without proper sanitization before rendering it in HTML output. The vulnerability is rooted in CWE-79 (Improper Neutralization of Input During Web Page Generation), a classic reflected XSS flaw where untrusted data flows directly into the DOM. The affected code path involves WordPress shortcode processing (hostel.php line 44) that passes the parameter to AJAX handlers (controllers/ajax.php line 28) and ultimately to HTML template rendering (views/partial/rooms-table.html.php line 29). The plugin fails to use WordPress escaping functions (such as esc_attr(), esc_html(), or wp_kses_post()) when outputting the shortcode_id value, allowing malicious scripts to be reflected in responses sent to users' browsers.

Know when Hostel gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

The Hostel plugin for WordPress is vulnerable to Reflected Cross-Site Scripting via the 'shortcode_id' parameter in all versions up to, and including, 1.1.6 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link.

Threat Intelligence Overview

EPSS Score
0.1%
Top 73% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy