# CVE-2024-3866: Ninja Forms Contact Form \<= 3.8.15 - Reflected Self-Based Cross-Site Scripting via Referer

- Priority: **Routine**
- Reason: Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-09-25 · Modified: 2026-04-08
- Record: https://cvemate.com/vulnerability/CVE-2024-3866 · JSON: https://cvemate.com/vulnerability/CVE-2024-3866/json

## Description

```text
The Ninja Forms Contact Form plugin for WordPress is vulnerable to Reflected Self-Based Cross-Site Scripting via the 'Referer' header in all versions up to, and including, 3.8.15 due to insufficient input sanitization and output escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that execute if they can successfully trick a user into performing an action such as clicking on a link. Successful exploitation of this vulnerability requires "maintenance mode" for a targeted form to be enabled. However, there is no setting available to the attacker or even an administrator-level user to enable this mode. The mode is only enabled during a required update, which is a very short window of time. Additionally, because of the self-based nature of this vulnerability, attackers would have to rely on additional techniques to execute a supplied payload in the context of targeted user.
```

## Signals

- CVSS: 6.1 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- EPSS: 0.291%, percentile 23.236%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- kstover ninja forms – the contact form builder that grows with you: ≤ 3.8.15
- ninjaforms ninja\_forms: \< 3.8.16
- wordpress ninja-forms: ≤ 3.8.15 (fixed in 3.8.16)

## References

- <https://www.wordfence.com/threat-intel/vulnerabilities/id/f6d6b82d-574d-4a56-9aef-42343c4b7c43?source=cve>
- <https://plugins.trac.wordpress.org/changeset/3153292/ninja-forms>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/f6d6b82d-574d-4a56-9aef-42343c4b7c43>

---

Data as of 2026-12-05T04:21:37.040Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
