Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2008+ Articles
153+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. CVE-2026-65048: Ninja Forms Unauthenticated Stored XSS via Repeatable Fieldset
CVE-2026-65048: Ninja Forms Unauthenticated Stored XSS via Repeatable Fieldset

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-65048

CVE-2026-65048: Ninja Forms Unauthenticated Stored XSS via Repeatable Fieldset

A CVSS 9.3 critical stored XSS vulnerability in the Ninja Forms WordPress plugin affects versions 3.10.4 through 3.14.9. The flaw requires no authentication and exploits the Repeatable Fieldset feature's submission index parsing to inject arbitrary scripts into admin views.

Dylan H.

Security Team

July 22, 2026
5 min read

Affected Products

  • Ninja Forms for WordPress 3.10.4 – 3.14.9

Executive Summary

A critical unauthenticated stored cross-site scripting (XSS) vulnerability has been disclosed in the Ninja Forms plugin for WordPress, one of the most widely used form-builder plugins with millions of active installations. Tracked as CVE-2026-65048, the flaw carries a CVSS score of 9.3 and requires no authentication to exploit.

The vulnerability resides in the Repeatable Fieldset feature, where the parseSubmissionIndex() function accepts arbitrary strings as submission indexes without performing numeric validation. Combined with the admin_form_element() function's insufficient output escaping, attackers can inject and store malicious JavaScript that executes when site administrators view form submissions.


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-65048
CVSS Score9.3 (Critical)
Vulnerability TypeUnauthenticated Stored XSS
Attack VectorNetwork — no authentication required
Privileges RequiredNone
User InteractionAdmin must view the affected submission
Affected FeatureRepeatable Fieldset

Technical Root Cause

The vulnerability is a two-part failure:

1. parseSubmissionIndex() — Missing Input Validation

The function accepts submission index values from user input and passes them
into storage without enforcing that values are numeric. Arbitrary strings,
including JavaScript payloads wrapped in HTML event handlers, are accepted
and stored without sanitization.

2. admin_form_element() — Insufficient Output Escaping

When rendering stored submission data in the WordPress admin panel,
the function does not adequately escape the submission index value
before rendering it in HTML context, allowing stored script tags
or event handlers to execute in the admin's browser.

Affected Versions

PluginAffected VersionsStatus
Ninja Forms for WordPress3.10.4 – 3.14.9Patch — update beyond 3.14.9

Attack Chain

1. Attacker visits any public-facing page or post with a Ninja Forms
   Repeatable Fieldset form
2. Attacker submits the form with a crafted submission index value
   containing a JavaScript payload (e.g. XSS event handler)
3. parseSubmissionIndex() accepts the value without numeric validation
4. Payload is stored in the WordPress database tied to the form submission
5. Administrator opens Form Submissions in WP admin to review entries
6. admin_form_element() renders the stored value without escaping
7. Attacker's JavaScript executes in the admin's browser context
8. Attacker can steal session cookies, perform admin actions, create
   backdoor admin accounts, or redirect the site

Impact of Successful Exploitation

ImpactDescription
Session HijackingSteal administrator session cookies
Admin Account CreationCreate rogue admin users with full access
Malware InjectionInject malicious scripts into site pages
Credential TheftCapture credentials entered in admin panel
Site DefacementModify content visible to site visitors
Supply Chain RiskSites serving third-party scripts at risk of widened impact

Remediation

Step 1: Update Ninja Forms

Update the plugin through the WordPress admin panel or via WP-CLI:

# Update via WP-CLI
wp plugin update ninja-forms
 
# Verify version after update
wp plugin get ninja-forms --field=version

Or navigate to WordPress Admin > Plugins > Installed Plugins > Ninja Forms > Update Now.

Ensure the installed version is higher than 3.14.9.

Step 2: Audit Existing Submissions for Malicious Payloads

# Search for script tags in Ninja Forms submission data (adjust table prefix if needed)
# Connect to your WordPress database and run:
# SELECT * FROM wp_ninja_forms_submissions WHERE value LIKE '%<script%';
# SELECT * FROM wp_ninja_forms_submissions WHERE value LIKE '%javascript:%';
# SELECT * FROM wp_ninja_forms_submissions WHERE value LIKE '%onerror%';
# SELECT * FROM wp_ninja_forms_submissions WHERE value LIKE '%onload%';

Step 3: Enable a WAF

Deploy a Web Application Firewall with XSS filtering rules:

# Wordfence (free tier available)
wp plugin install wordfence --activate
 
# Or deploy at the server/CDN layer:
# - Cloudflare WAF (OWASP ruleset)
# - AWS WAF (XSS managed ruleset)
# - ModSecurity (OWASP CRS)

Step 4: Restrict Admin Submission Review Until Patched

If immediate patching is not possible:

  1. Disable the Repeatable Fieldset feature in all active forms
  2. Temporarily restrict admin access to form submission review
  3. Deploy WAF XSS rules to block payloads at the perimeter
  4. Monitor server logs for unusual POST requests targeting form endpoints

Detection Indicators

IndicatorDescription
Suspicious strings in form submissions (<script, javascript:, event handlers)Exploit attempt in stored data
Unexpected JavaScript in browser console when viewing WP admin submissionsActive XSS executing
New unauthorized administrator accountsPost-exploitation account creation
Unexpected outbound requests from admin browserXSS beaconing exfiltrated data

Post-Remediation Checklist

  1. Confirm Ninja Forms updated to patched version
  2. Scan all stored form submissions for malicious payloads
  3. Review WordPress admin accounts for unauthorized additions
  4. Rotate credentials for all admin accounts
  5. Deploy WAF with XSS ruleset for ongoing protection
  6. Enable WordPress audit logging (e.g. WP Activity Log plugin)
  7. Consider Content Security Policy (CSP) headers to limit XSS blast radius

References

  • NIST NVD — CVE-2026-65048
  • Ninja Forms Plugin — WordPress.org

Related Reading

  • CVE-2026-65049: Ninja Forms Multisite Network-Wide Data Deletion
  • CVE-2026-28302: SolarWinds Serv-U IDOR Leads to Root RCE
  • CVE-2026-1357: Critical RCE in WPvivid Backup Plugin Threatens 900,000+
#WordPress#Ninja Forms#XSS#Stored XSS#CVE-2026-65048#Web Security

Related Articles

CVE-2026-10081: Unlimited Elements for Elementor Stored XSS via Google Reviews

A stored cross-site scripting vulnerability in the Unlimited Elements for Elementor WordPress plugin (before 2.0.11) allows unauthenticated attackers to inject malicious scripts through Google review content, affecting any visitor who views the compromised widget output.

4 min read

CVE-2026-65049: Ninja Forms Multisite Flaw Enables Network-Wide Data Deletion

A CVSS 9.3 critical incorrect authorization vulnerability in Ninja Forms 3.14.8 and prior for WordPress Multisite allows a subsite administrator to trigger deletion of all Ninja Forms data across the entire network by exploiting a flawed capability check combined with an unsafe migration routine.

6 min read

CVE-2026-5324: WordPress Brizy Page Builder Unauthenticated

The Brizy Page Builder plugin for WordPress contains a critical unauthenticated Stored Cross-Site Scripting flaw in versions up to 2.8.11, enabling...

3 min read
Back to all Security Alerts