CVE-2025-5398

Ninja Forms <= 3.10.2.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via CSTI

Published Jun 27, 2025 CVSS 3.1 · 6.4 Medium EPSS < 1% KEV · Not listed
Description
The Ninja Forms – The Contact Form Builder That Grows With You plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the use of a templating engine in all versions up to, and including, 3.10.2.1 due to insufficient output escaping on user data passed through the template. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

Analysis

AI-generated

Technical impact

The Ninja Forms plugin for WordPress is vulnerable to stored cross‑site scripting caused by a templating engine that fails to escape user‑supplied data. When an authenticated user with contributor or higher privileges injects a script into a template or form, the malicious code is stored and will execute in the browsers of any visitor who loads the affected page. This flaw is identified as CWE‑79 and can lead to session hijacking, defacement, or other client‑side compromise.

Affected Systems

Ninja Forms for WordPress, all releases up to and including 3.10.2.1.

Risk and Exploitability

The CVSS score of 6.4 indicates moderate severity, and the EPSS score of less than 1 percent shows a low but non‑zero probability of exploitation. The vulnerability is not listed in CISA’s KEV catalog. Exploitation requires an authenticated contributor (or higher) with the ability to edit templates or form content; once an attacker injects script, any user who accesses the page will have the code executed. Overall risk is moderate, with a limited attack surface owing to the authentication requirement.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Ninja Forms to version 3.10.3 or later to receive the output‑escaping fix.
  • Revoke or restrict contributor roles that allow editing of form templates or frontend content, limiting write access to only necessary capabilities.
  • Audit existing forms and template files for any injected scripts and remove malicious content before applying the update.

Generated by OpenCVE AI on April 21, 2026 at 19:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-28541 The Ninja Forms – The Contact Form Builder That Grows With You plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the use of a templating engine in all versions up to, and including, 3.10.2.1 due to insufficient output escaping on user data passed through the template. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
History
Type Values Removed Values Added
First Time appeared Ninjaforms
Ninjaforms ninja Forms
CPEs cpe:2.3:a:ninjaforms:ninja_forms:*:*:*:*:*:wordpress:*:*
Vendors & Products Ninjaforms
Ninjaforms ninja Forms
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description The Ninja Forms – The Contact Form Builder That Grows With You plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the use of a templating engine in all versions up to, and including, 3.10.2.1 due to insufficient output escaping on user data passed through the template. This makes it possible for authenticated attackers, with contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.
Title Ninja Forms <= 3.10.2.1 - Authenticated (Contributor+) Stored Cross-Site Scripting via CSTI
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
Wordfence
Published
Updated
Apr 8, 2026, 5:09 PM
Reserved
May 30, 2025, 8:44 PM
Status
Analyzed
Published
Jun 27, 2025, 10:15 AM
Modified
Jun 17, 2026, 9:47 AM