# CVE-2021-24381: NinjaForms < 3.5.8.2 - Admin+ Stored Cross-Site Scripting

- Severity: Medium 4.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-10-25T13:20:32.000Z
- Modified: 2026-06-17T03:39:55.983Z
- Weaknesses: CWE-79
- Assigned by: WPScan

## Description

The Ninja Forms Contact Form WordPress plugin before 3.5.8.2 does not sanitise and escape the custom class name of the form field created, which could allow high privilege users to perform Cross-Site Scripting attacks even when the unfiltered_html capability is disallowed.

(As written by CVE List.)

## Affected

- Unknown Ninja Forms Contact Form – The Drag and Drop Form Builder for WordPress: from 3.5.8.2 before 3.5.8.2
- ninjaforms contact_form: before 3.5.8.2

## Every score

- NVD: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://wpscan.com/vulnerability/e383fae6-e0da-4aba-bb62-adf51c01bf8d> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24381](https://www.cve.org/CVERecord?id=CVE-2021-24381), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24381](https://nvd.nist.gov/vuln/detail/CVE-2021-24381), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24381 · Whole record: https://cve.day/CVE-2021-24381.json · Rebuilt by cve.day 2026-11-25T22:58:04.750Z
