Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-5427: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in themewinter WPCafe – Online Food Ordering, Restaurant Menu, Delivery, and Reservations for WooCommerce

0
Medium
VulnerabilityCVE-2024-5427cvecve-2024-5427cwe-79
Published: Fri May 31 2024 (05/31/2024, 06:40:54 UTC)
Source: CVE Database V5
Vendor/Project: themewinter
Product: WPCafe – Online Food Ordering, Restaurant Menu, Delivery, and Reservations for WooCommerce

Description

CVE-2024-5427 is a stored cross-site scripting (XSS) vulnerability in the WPCafe plugin for WordPress, affecting all versions up to 2. 2. 24. It arises from insufficient input sanitization and output escaping in the Reservation Form shortcode, allowing authenticated users with contributor-level access or higher to inject malicious scripts. These scripts execute whenever any user views the compromised page, potentially leading to session hijacking, defacement, or unauthorized actions. The vulnerability has a CVSS score of 6. 4 (medium severity) and does not require user interaction but does require authenticated access. No known exploits are currently reported in the wild. Organizations using this plugin for online food ordering and reservations should prioritize patching or applying mitigations to prevent exploitation. Countries with significant WordPress usage and e-commerce activity are at higher risk.

AI-Powered Analysis

AILast updated: 02/26/2026, 02:35:02 UTC

Technical Analysis

CVE-2024-5427 is a stored cross-site scripting vulnerability classified under CWE-79, found in the WPCafe plugin for WordPress, which provides online food ordering, restaurant menu, delivery, and reservation functionalities integrated with WooCommerce. The vulnerability exists in the plugin's Reservation Form shortcode, where user-supplied attributes are not properly sanitized or escaped before being rendered on web pages. This flaw allows authenticated attackers with contributor-level or higher privileges to inject arbitrary JavaScript code into pages. When other users access these pages, the malicious scripts execute in their browsers, potentially compromising session tokens, redirecting users, or performing unauthorized actions on their behalf. The vulnerability affects all versions up to and including 2.2.24. The CVSS 3.1 base score is 6.4, reflecting network attack vector, low attack complexity, required privileges (low), no user interaction, and a scope change with limited confidentiality and integrity impact but no availability impact. No public exploits have been reported yet, but the vulnerability's presence in a widely used WordPress plugin integrated with e-commerce platforms makes it a significant concern. The issue stems from inadequate input validation and output encoding, which are fundamental security best practices for web applications.

Potential Impact

The exploitation of CVE-2024-5427 can lead to the execution of arbitrary JavaScript in the context of affected websites, enabling attackers to hijack user sessions, steal sensitive information such as authentication cookies, perform actions on behalf of users, or deface web content. For organizations relying on WPCafe for online food ordering and reservations, this can result in loss of customer trust, data breaches, and potential financial losses. Since the attack requires authenticated access at contributor level or higher, insider threats or compromised accounts pose a significant risk. The scope includes all users who visit the injected pages, potentially amplifying the impact. Although availability is not affected, the confidentiality and integrity of user data and site content are at risk. The vulnerability could be leveraged as a foothold for further attacks, including privilege escalation or malware distribution. The absence of known exploits in the wild currently limits immediate widespread impact, but the medium severity score and the plugin's popularity warrant proactive mitigation.

Mitigation Recommendations

Organizations should immediately update the WPCafe plugin to a version that addresses this vulnerability once available from the vendor. Until a patch is released, administrators should restrict contributor-level access to trusted users only and audit existing user privileges to minimize risk. Implementing a Web Application Firewall (WAF) with rules to detect and block suspicious input patterns related to script injection can provide interim protection. Site owners should also review and sanitize all user-generated content, especially in reservation forms, using server-side validation and output encoding libraries compliant with OWASP guidelines. Regularly monitoring logs for unusual activity and scanning for injected scripts can help detect exploitation attempts. Employing Content Security Policy (CSP) headers can reduce the impact of XSS by restricting script execution sources. Finally, educating users about the risks of phishing and social engineering can help prevent account compromise that might lead to exploitation.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2024-05-27T21:35:21.315Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6be7b7ef31ef0b55bf8c

Added to database: 2/25/2026, 9:38:47 PM

Last enriched: 2/26/2026, 2:35:02 AM

Last updated: 2/26/2026, 8:06:18 AM

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats