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

- Severity: Medium 5.9 (CVSS:3.1, scored by Wordfence) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-02)
- Published: 2024-02-02T04:32:34.919Z
- Modified: 2026-06-17T06:54:02.220Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Wordfence

## Description

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.

(As written by CVE List.)

## Affected

- kstover Ninja Forms – The Contact Form Builder That Grows With You: up to 3.7.1
- ninjaforms ninja_forms: up to 3.7.1

## Every score

- Wordfence: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

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

## Sources

- CVE List: [CVE-2024-0685](https://www.cve.org/CVERecord?id=CVE-2024-0685), CVE Terms of Use, modified 2026-04-08
- NVD: [CVE-2024-0685](https://nvd.nist.gov/vuln/detail/CVE-2024-0685), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-0685 · Whole record: https://cve.day/CVE-2024-0685.json · Rebuilt by cve.day 2026-11-25T22:58:36.513Z
