CVE-2021-25056 Ninja Forms < 3.6.10 - Admin+ Stored Cross-Site Scripting
High-privilege users can inject malicious scripts via unsanitized field labels 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-25056?
CVE-2021-25056 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 sanitise and escape field labels, 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-25056?
It affects 1 product.
Products include Ninjaforms Ninja Forms.
How do I fix CVE-2021-25056?
No fix has been published for CVE-2021-25056 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-25056 being exploited?
There is no known exploitation of CVE-2021-25056 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-v8vg-mxf6-5vgh.