Ninja Forms <= 3.5.7 - Unprotected REST-API to Email Injection

Incorrect Authorization
CVE CVE-2021-34648
CVSS 6.4 (Medium)
Publicly Published September 22, 2021
Last Updated January 18, 2023
Researcher Chloe Chamberland - Wordfence


The Ninja Forms WordPress plugin is vulnerable to arbitrary email sending via the trigger_email_action function found in the ~/includes/Routes/Submissions.php file, in versions up to and including 3.5.7. This allows authenticated attackers to send arbitrary emails from the affected server via the /ninja-forms-submissions/email-action REST API which can be used to socially engineer victims.

Wordfence blocked 2,583 attacks targeting this vulnerability in the past 24 hours.



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

Software Type Plugin
Software Slug ninja-forms (view on
Patched? Yes
Remediation Update to version 3.5.8, or a newer patched version
Affected Version
  • <= 3.5.7
Patched Version
  • 3.5.8

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.