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-12820: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in manoj_rana91986 MK Google Directions

0
Medium
VulnerabilityCVE-2024-12820cvecve-2024-12820cwe-79
Published: Fri Feb 28 2025 (02/28/2025, 05:23:15 UTC)
Source: CVE Database V5
Vendor/Project: manoj_rana91986
Product: MK Google Directions

Description

CVE-2024-12820 is a stored cross-site scripting (XSS) vulnerability in the MK Google Directions WordPress plugin up to version 3. 1. It arises from insufficient input sanitization and output escaping of user-supplied attributes in the plugin's 'MKGD' shortcode. Authenticated users with contributor-level access or higher can inject malicious scripts that execute whenever any user views the affected page. This vulnerability can compromise confidentiality and integrity by enabling script execution in the context of the victim's browser without requiring user interaction. The CVSS score is 6. 4 (medium severity), reflecting network exploitability with low attack complexity but requiring privileges. No known exploits are currently reported in the wild. Organizations using this plugin should prioritize patching or mitigating this flaw to prevent potential account compromise or session hijacking. The threat primarily affects WordPress sites globally, especially those with contributor-level user roles enabled.

AI-Powered Analysis

AILast updated: 02/26/2026, 02:57:29 UTC

Technical Analysis

CVE-2024-12820 is a stored cross-site scripting vulnerability classified under CWE-79, affecting the MK Google Directions plugin for WordPress, maintained by manoj_rana91986. The vulnerability exists in all versions up to and including 3.1 due to improper neutralization of input during web page generation. Specifically, the plugin's 'MKGD' shortcode fails to adequately sanitize and escape user-supplied attributes, allowing authenticated users with contributor-level or higher permissions to inject arbitrary JavaScript code. This malicious code is stored persistently and executed in the browsers of any users who visit the compromised page, potentially leading to session hijacking, privilege escalation, or data theft. The vulnerability requires no user interaction beyond visiting the infected page but does require the attacker to have contributor-level access, which is a moderate privilege level in WordPress. The CVSS v3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N) indicates that the attack can be launched remotely over the network with low complexity, requires privileges, no user interaction, and impacts confidentiality and integrity with a scope change. No patches or fixes are currently linked, and no known exploits have been reported in the wild. This vulnerability highlights the importance of secure coding practices in WordPress plugins, particularly regarding input validation and output encoding in shortcode implementations.

Potential Impact

The impact of CVE-2024-12820 is significant for organizations running WordPress sites with the MK Google Directions plugin installed. An attacker with contributor-level access can inject persistent malicious scripts, which execute in the context of any user visiting the infected page. This can lead to session hijacking, theft of sensitive information such as cookies or authentication tokens, unauthorized actions performed on behalf of users, and potential privilege escalation. The confidentiality and integrity of user data are at risk, although availability is not directly impacted. Since contributor-level access is often granted to trusted users or external content creators, the threat surface is non-trivial. Exploitation could facilitate further attacks within the organization’s web environment or against its users. The vulnerability could also damage organizational reputation if exploited, especially for sites handling sensitive or personal data. Given the widespread use of WordPress globally, the potential scope of affected systems is large, increasing the risk of targeted attacks or automated exploitation once a public exploit emerges.

Mitigation Recommendations

To mitigate CVE-2024-12820, organizations should first check if they are using the MK Google Directions plugin and identify the version installed. Since no official patch is currently linked, immediate mitigation includes restricting contributor-level access to trusted users only and auditing existing content for injected scripts. Administrators should implement Web Application Firewall (WAF) rules to detect and block suspicious shortcode attribute inputs or script payloads. Employing Content Security Policy (CSP) headers can reduce the impact of XSS by restricting script execution sources. Plugin developers or site maintainers should sanitize and escape all user-supplied inputs rigorously, especially in shortcode attributes, using WordPress’s built-in functions like esc_attr() and wp_kses(). Monitoring logs for unusual activity and educating contributors about secure content practices are also recommended. Finally, stay alert for official patches or updates from the plugin author and apply them promptly once available.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.1
Assigner Short Name
Wordfence
Date Reserved
2024-12-19T20:31:49.721Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 699f6e48b7ef31ef0b59c4e1

Added to database: 2/25/2026, 9:48:56 PM

Last enriched: 2/26/2026, 2:57:29 AM

Last updated: 2/26/2026, 6:17:39 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