Summary
CVE-2022-4997 is an unauthenticated SQL injection vulnerability in the jet-form-builder-stripe-gateway WordPress plugin. The plugin fails to sanitize and escape a payment token value before using it in a SQL statement, allowing an unauthenticated attacker to extract arbitrary data from the site’s database, including password hashes. The issue carries a CVSS v3.1 base score of 8.6 (High).
Technical details
- Root cause: The plugin does not sanitize or escape a payment token parameter before it is concatenated into a SQL query (CWE-89: SQL Injection).
- Trigger conditions: An attacker submits a crafted payment token value to the vulnerable plugin endpoint on a WordPress site running the affected plugin; no authentication or user interaction is required.
- Attack vector: Network-based, low attack complexity, no privileges or user interaction required.
- Impact: Blind SQL injection enabling extraction of arbitrary database contents, including stored password hashes, resulting in a confidentiality impact with a changed scope.
Affected software
- jet-form-builder-stripe-gateway WordPress plugin: all versions prior to 1.1.0
Severity
- CVSS v3.1 Base Score: 8.6 (High)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
Mitigation and recommended actions
- Immediate: Update the jet-form-builder-stripe-gateway plugin to version 1.1.0 or later, where the payment token is properly sanitized and escaped before use in SQL statements.
- If immediate patching is not possible: Disable or deactivate the jet-form-builder-stripe-gateway plugin until the update can be applied, and review database access logs and user credential tables for signs of unauthorized data extraction.

