CVE-2024-3866 Ninja Forms Contact Form <= 3.8.15 - Reflected Self-Based Cross-Site Scripting via Referer
Unauthenticated attackers can inject scripts via the Referer header in Ninja Forms when maintenance mode is active, requiring user interaction.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2024-3866?
CVE-2024-3866 is a medium-severity cross-site scripting vulnerability in Ninjaforms Ninja Forms, published on 25 Sep 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-79
Which versions are affected by CVE-2024-3866?
It affects 1 product.
Products include Ninjaforms Ninja Forms.
How do I fix CVE-2024-3866?
No fix has been published for CVE-2024-3866 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-3866 being exploited?
There is no known exploitation of CVE-2024-3866 in the wild and no public exploit code.
Other vulnerabilities in Ninjaforms Ninja Forms
- CVE-2025-9083 Ninja-forms < 3.11.1 - Unauthenticated PHP Objection
- CVE-2016-1209 Deserialization in n/a
- CVE-2018-20981 Information disclosure in n/a
- CVE-2024-25572 Cross-site request forgery in Ninja Forms
- CVE-2021-24163 Ninja Forms < 3.4.34 - Authenticated SendWP Plugin Installation and Client Secret Key Disclosure
Sources
Also known as GHSA-hj6g-33gj-29m6.