# CVE-2024-0685: Ninja Forms Contact Form \<= 3.7.1 - Unauthenticated Second Order SQL Injection

- Priority: **Routine**
- Reason: Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-02-02 · Modified: 2026-04-08
- Record: https://cvemate.com/vulnerability/CVE-2024-0685 · JSON: https://cvemate.com/vulnerability/CVE-2024-0685/json

## Description

```text
The Ninja Forms Contact Form – The Drag and Drop Form Builder for WordPress plugin for WordPress is vulnerable to Second Order SQL Injection via the email address value submitted through forms in all versions up to, and including, 3.7.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query.  This makes it possible for unauthenticated attackers to inject SQL in their email address that will append additional into the already existing query when an administrator triggers a personal data export.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.772%, percentile 57.039%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- kstover ninja forms – the contact form builder that grows with you: ≤ 3.7.1
- ninjaforms ninja\_forms: ≤ 3.7.1
- wordpress ninja-forms: ≤ 3.7.1 (fixed in 3.7.2)

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/3cb73d5d-ca4a-4103-866d-f7bb369a8ce4?source=cve>
- <https://plugins.trac.wordpress.org/changeset/3028929/ninja-forms/trunk/includes/Admin/UserDataRequests.php>
- <https://sec.stealthcopter.com/ninja-contact-forms/>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/3cb73d5d-ca4a-4103-866d-f7bb369a8ce4>

---

Data as of 2026-12-05T07:37:15.692Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
