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

Medium 4.7 Published Updated

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.

All Ninjaforms Ninja Forms vulnerabilities

Sources

Also known as GHSA-hj6g-33gj-29m6.

Is CVE-2024-3866 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free