Technical impact
This vulnerability in the Ninja Forms plugin allows authenticated users with subscriber-level access or higher to inject and execute arbitrary shortcodes via the {wp:user_display_name} merge tag. The plugin does not validate the value supplied to the merge tag before passing it to do_shortcode, enabling an attacker to run any shortcode they choose, which may lead to remote code execution or other malicious actions based on the available shortcodes on the site.
Affected Systems
The affected product is Ninja Forms – Contact Form Builder with Calculators, Quizzes, Signatures & AI Form Builder. Versions up to and including 3.15.5 are vulnerable. Any WordPress site running these versions of Ninja Forms should be considered impacted.
Risk and Exploitability
The CVSS score is 5.4, indicating a moderate severity vulnerability. The EPSS score is not available and the issue is not listed in the CISA KEV catalog. Exploitation requires that an attacker has subscriber or higher privileges and has set their display_name to a shortcode string via their profile. The attacker then visits a public page that contains a Ninja Forms field configured with the {wp:user_display_name} merge tag as its default value. Based on the description, the likely attack vector is authenticated local action on the site; the presence of a publicly accessible form is a prerequisite and is inferred from the stated requirements.