CVE-2021-24381: Ninjaforms Contact Form

Medium severity, CVSS 4.8. EPSS: 0.6% chance of exploitation in the next 30 days.

The Ninja Forms Contact Form WordPress plugin before 3.5.8.2 does not sanitise and escape the custom class name of the form field created, which could allow high privilege users to perform Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed.

Affected products

  • Ninjaforms Contact Form: before 3.5.8.2 (fixed in 3.5.8.2)

Published 2021-10-25. Last modified 2026-06-17.