Ninja Forms Contact Form <= 3.7.1 - Unauthenticated Second Order SQL Injection

5.9
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE CVE-2024-0685
CVSS 5.9 (Medium)
Publicly Published February 1, 2024
Last Updated February 12, 2024
Researcher stealthcopter

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.

Learn more about SQL Injection vulnerabilities and how to prevent them.

References

Share

Vulnerability Details for Ninja Forms – The Contact Form Builder That Grows With You

Software Type Plugin
Software Slug ninja-forms (view on wordpress.org)
Patched? Yes
Remediation Update to version 3.7.2, or a newer patched version
Affected Version
  • <= 3.7.1
Patched Version
  • 3.7.2

Recent vulnerabilities in Ninja Forms – The Contact Form Builder That Grows With You

# Title CVE ID CVSS Researchers Date
1 Ninja Forms <= 3.14.1 - Missing Authorization to Unauthenticated Sensitive Information Disclosure via token/refresh REST Endpoint CVE-2026-1239 7.5 suyoung kim(AhnLab) June 30, 2026
2 Ninja Forms <= 3.14.1 - Authenticated (Contributor+) Sensitive Information Disclosure via Block Editor Token CVE-2026-1307 6.5 Lucas Montes (NiRoX) March 27, 2026
3 Ninja Forms <= 3.14.0 - Unauthenticated Information Disclosure in nf_ajax_submit AJAX Action CVE-2026-2268 7.5 johska February 9, 2026
4 Ninja Forms – The Contact Form Builder That Grows With You <= 3.13.2 - Insecure Direct Object Reference to Unauthenticated Sensitive Information Exposure via Unscoped Bearer Token CVE-2025-11924 7.5 Lucas Montes (NiRoX), Marcin Dudek (dudekmar) December 16, 2025
5 Ninja Forms <= 3.13.2 - Missing Authorization to Unauthenticated Submission Disclosure CVE-2025-14072 7.5 Marco Lunardi December 12, 2025
6 Ninja Forms – The Contact Form Builder That Grows With You <= 3.12.0 - Cross-Site Request Forgery to Plugin Settings Update CVE-2025-10499 4.3 Nguyen Ngoc Quang Bach (maysbachs) September 26, 2025
7 Ninja Forms – The Contact Form Builder That Grows With You <= 3.12.0 - Cross-Site Request Forgery to Limited File Deletion CVE-2025-10498 4.3 Nguyen Ngoc Quang Bach (maysbachs) September 26, 2025
8 Ninja Forms <= 3.11.0 - Unauthenticated PHP Object Injection CVE-2025-9083 8.1 wesley (wcraft) August 28, 2025
9 Ninja Forms <= 3.10.2.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via CSTI CVE-2025-5398 6.4 Asaf Mozes June 26, 2025
10 Ninja Forms – The Contact Form Builder That Grows With You <= 3.10.0 - Authenticated (Admin+) Stored Cross-Site Scripting CVE-2025-2524 4.4 Dmitrii Ignatyev April 28, 2025

Did you know Wordfence Intelligence provides free personal and commercial API access to our comprehensive WordPress vulnerability database, along with a free webhook integration to stay on top of the latest vulnerabilities added and updated in the database? Get started today!

Learn more

Want to get notified of the latest vulnerabilities that may affect your WordPress site?
Install Wordfence on your site today to get notified immediately if your site is affected by a vulnerability that has been added to our database.

Get Wordfence

The Wordfence Intelligence WordPress vulnerability database is completely free to access and query via API. Please review the documentation on how to access and consume the vulnerability data via API.

Documentation