CVE-2021-25066 Ninja Forms < 3.6.10 - Admin+ Stored Cross-Site Scripting via Import
High-privilege users can inject malicious scripts via imported data in Ninja Forms, potentially leading to code execution or account takeover.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-25066?
CVE-2021-25066 is a medium-severity cross-site scripting vulnerability in Ninjaforms Ninja Forms, published on 4 Jul 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
The Ninja Forms Contact Form WordPress plugin before 3.6.10 does not sanitize and escape some imported data, allowing high privilege users to perform Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed.
Weakness: CWE-79
Which versions are affected by CVE-2021-25066?
It affects 1 product.
Products include Ninjaforms Ninja Forms.
How do I fix CVE-2021-25066?
No fix has been published for CVE-2021-25066 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-2021-25066 being exploited?
There is no known exploitation of CVE-2021-25066 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-fgg3-jvqw-q86r.