CVE-2021-24381: ninjaforms contact_form Cross-site Scripting
Vulnerability summary
CVE-2021-24381 is a medium (CVSS 4.8) Cross-site Scripting vulnerability in ninjaforms contact_form. EPSS estimates a 0.62% chance of exploitation in the next 30 days, higher than 48.5% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 25-10-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 2 sources · 2 versions- wordfenceSource4.8MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.62%
Chance of exploitation in the next 30 days
Percentile
49%
Versus all other CVEs
30-day change
0.00 pp
From 0.62% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (wpscan.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Ninjaforms1 product
- contact_form< 3.5.8.2
Unknown1 product
- ninja forms contact form – the drag and drop form builder for wordpress≥ 3.5.8.2, < 3.5.8.2
Wordpress1 product
- ninja-forms< 3.5.8.2
3 vendors · 3 products
References
2 links- wpscan.com/vulnerability/e383fae6-e0da-4aba-bb62-adf51c01bf8dX Refsource MISCExploitThird Party Advisory