CVE-2024-12820: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in manoj_rana91986 MK Google Directions
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 Analysis
Technical Summary
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.
Affected Countries
United States, India, United Kingdom, Germany, Canada, Australia, France, Brazil, Japan, Netherlands
CVE-2024-12820: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in manoj_rana91986 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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2026-25191: Uncontrolled Search Path Element in Digital Arts Inc. FinalCode Ver.5 series
HighCVE-2026-23703: Incorrect default permissions in Digital Arts Inc. FinalCode Ver.5 series
HighCVE-2026-1311: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in bearsthemes Worry Proof Backup
HighFinding Signal in the Noise: Lessons Learned Running a Honeypot with AI Assistance [Guest Diary], (Tue, Feb 24th)
MediumCVE-2026-2506: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in motahar1 EM Cost Calculator
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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.