PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2020-12462: 
WordPress vulnerability analysis and mitigation

Overview

The ninja-forms plugin before version 3.4.24.2 for WordPress contained a Cross-Site Request Forgery (CSRF) vulnerability that could lead to Stored Cross-Site Scripting (XSS). The vulnerability was discovered on April 27, 2020, and was patched on April 28, 2020. This affected the Ninja Forms plugin, which has over 1 million installations and allows site admins to create WordPress forms (Wordfence Blog, SecurityWeek).

Technical details

The vulnerability was assigned CVE-2020-12462 with a CVSS score of 8.8 (High). The issue stemmed from a feature that allowed users to revert the plugin's styling and features to version 2.9.x. Two functions added as part of this feature failed to check nonces, and one of them allowed importing forms containing custom HTML. This created a path for potential attackers to inject malicious JavaScript code through the import contact feature (WPScan).

Impact

If exploited, the vulnerability could allow attackers to replace any existing form on the site, execute code in visitors' browsers, redirect visitors to malicious websites, and potentially take over the site by creating rogue admin accounts. The attacker could achieve this by tricking an administrator into clicking a crafted link, which would allow them to spoof requests using the admin's session (SecurityWeek).

Exploitability

The vulnerability required an attacker to trick an administrator into clicking a specially crafted link. Once clicked, the attacker could exploit the CSRF vulnerability to import a form containing malicious JavaScript code, which would then be stored and executed when certain pages were visited (WPScan).

Mitigation and workarounds

The vulnerability was patched in Ninja Forms version 3.4.24.2, released on April 28, 2020. Users were advised to update to this version immediately to protect their sites from potential attacks (Wordfence Blog).

Additional resources


Source: This report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-103381MEDIUM6.5
  • mintpay
NoNoOct 23, 2026
CVE-2026-103300MEDIUM5.3
  • woo-payment-gateway-for-eurobank
NoNoOct 23, 2026
CVE-2026-103299MEDIUM5.3
  • woo-alpha-bank-payment-gateway
NoNoOct 23, 2026
CVE-2026-94263MEDIUM4.8
  • acf-extended
NoYesOct 23, 2026
CVE-2026-111965MEDIUM4.3
  • profile-builder
NoYesOct 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management