Ninja Forms Contact Form – The Drag and Drop Form Builder for WordPress <= 3.6.10 - Code Injection

Improper Control of Generation of Code ('Code Injection')
CVSS 9.8 (Critical)
Publicly Published June 15, 2022
Last Updated August 7, 2023


The Ninja Forms Contact Form – The Drag and Drop Form Builder for WordPress plugin for WordPress is vulnerable to code injection in versions up to, and including 3.6.10 due to insufficient validation on Merge Tags that makes it possible to call arbitrary Ninja Form classes. This could lead to a variety of actions, however, one notable one is deserialization when the NF_Admin_Processes_ImportForm::startup method is called. On sites with a POP chain this could be used to achieve remote code execution in the worst possible scenarios.



1 affected software package

Software Type Plugin
Software Slug ninja-forms (view on
Patched? Yes
Remediation Update to one of the following versions, or a newer patched version:, 3.1.10, 3.2.28,,,, 3.6.11
Affected Versions
  • 3.1 - 3.1.9
  • <=
  • 3.2 - 3.2.27
  • 3.6 - 3.6.10
Expand to see 3 more affected version ranges.
  • 3.5 -
  • 3.3 -
  • 3.4 -
Patched Versions
  • 3.1.10
  • 3.2.28
Expand to see 3 more patched versions.
  • 3.6.11

All the threat data shared in this database is powered by Wordfence Intelligence Enterprise.
Interested in integrating this data into your platform or network?
Contact us now to discuss API access to our Wordfence Intelligence Enterprise Data Feeds.

Inquire Now

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.