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

CVE-2025-13141 Cross-Site Scripting in Ht mega
📅 PUBLISHED: 2025-11-21 08:28 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: 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-13141 is a Stored Cross-Site Scripting (XSS) vulnerability in the HT Mega – Absolute Addons For Elementor WordPress plugin, affecting all versions up to and including 3.0.0. The flaw resides in the plugin’s Gutenberg blocks, where insufficient input validation on user-supplied HTML tag names allows authenticated attackers with contributor-level access or higher to inject arbitrary web scripts. Despite the use of tag_escape() for sanitization, the lack of a tag name whitelist permits dangerous tags like script, iframe, and object. Additionally, while some blocks use esc_html() for content, this can be bypassed using JavaScript encoding techniques such as unquoted strings, backticks, and String.fromCharCode(). This results in persistent XSS that executes whenever a user accesses an injected page.

⚡ 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 are advised to monitor the plugin’s update channel and apply any patches as soon as they become available. Since the patch status is currently unknown, manual mitigation is required.

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-level)
  • User Interaction: Required (victim must visit the page)
  • Scope: Changed
  • Confidentiality Impact: Low
  • Integrity Impact: Low
  • Availability Impact: Low

Threat Level: Medium. While the CVSS score is moderate, the ease of exploitation and the potential for widespread impact on WordPress sites make this a significant concern.

Deep Dive & Mechanics

The vulnerability exists in the HT Mega plugin’s Gutenberg blocks, which allow users to insert custom HTML. The plugin uses tag_escape() to sanitize HTML tag names, but this function only escapes certain characters and does not enforce a whitelist of allowed tags. As a result, an attacker can inject tags like <script>, <iframe>, or <object>.

Furthermore, content sanitization using esc_html() can be bypassed. For example, an attacker can use JavaScript encoding techniques:

  • Unquoted strings: <script>alert(1)</script> (if quotes are stripped)
  • Backticks: <script>alert1</script>
  • String.fromCharCode(): <script>eval(String.fromCharCode(97,108,101,114,116,40,49,41))</script>

This allows the attacker to execute arbitrary JavaScript in the context of the victim’s browser, leading to session hijacking, defacement, or malware distribution.

Vulnerable vs. Patched Code

Vulnerable Code (<= 3.0.0):

// Example of vulnerable tag handling
function render_block($attributes) {
    $tag = tag_escape($attributes['tag']); // No whitelist
    $content = $attributes['content'];
    // Content is sometimes sanitized with esc_html(), but can be bypassed
    return "<$tag>" . esc_html($content) . "</$tag>";
}

Patched Code (Hypothetical):

function render_block($attributes) {
    $allowed_tags = ['div', 'span', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
    $tag = in_array($attributes['tag'], $allowed_tags) ? $attributes['tag'] : 'div';
    $content = wp_kses_post($attributes['content']); // Proper sanitization
    return "<$tag>" . $content . "</$tag>";
}

The patched version would implement a whitelist of allowed tags and use wp_kses_post() for content sanitization.

Exploitation & Lab Setup

Red Team (Attack Simulation)

Prerequisites:

  • WordPress instance with HT Mega plugin <= 3.0.0
  • Contributor-level account or higher

Exploit Steps:

  1. Log in as a contributor.
  2. Create a new post or page using the Gutenberg editor.
  3. Insert an HT Mega block that accepts custom HTML.
  4. In the tag name field, enter script.
  5. In the content field, enter: alert(document.cookie)
  6. Publish the post.
  7. When any user visits the post, the XSS payload executes.

Advanced Payload (Bypassing esc_html()):

<script>eval(String.fromCharCode(97,108,101,114,116,40,100,111,99,117,109,101,110,116,46,99,111,111,107,105,101,41))</script>

Blue Team (Detection & Defense)

Detection:

  • Monitor for posts/pages containing suspicious HTML tags like <script>, <iframe>, or <object> in Gutenberg blocks.
  • Look for encoded JavaScript patterns in post content.

Defense:

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

Indicators of Compromise (IOCs)

  • File Indicators:

    • Presence of <script> tags in WordPress post/page content where HT Mega blocks are used.
    • Encoded JavaScript strings in post meta or content fields.
  • Network Indicators:

    • Outbound connections to attacker-controlled domains from compromised pages.
    • HTTP requests containing XSS payloads in POST data.
  • Log Indicators:

    • WordPress audit logs showing creation of posts with unusual HTML tags by contributor-level users.
    • Web server logs with requests containing String.fromCharCode or backtick patterns.

Detection Engineering

YARA Rule

rule CVE_2025_13141_HT_Mega_XSS {
    meta:
        description = "Detects stored XSS payloads targeting CVE-2025-13141 in HT Mega plugin"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-13141"
    strings:
        $xss1 = /<script[^>]*>/ nocase
        $xss2 = /<iframe[^>]*>/ nocase
        $xss3 = /<object[^>]*>/ nocase
        $encoded = /String\.fromCharCode\(/ nocase
        $backtick = /`[^`]*`/ nocase
    condition:
        any of ($xss*) or $encoded or $backtick
}

Sigma Rule

title: CVE-2025-13141 HT Mega Stored XSS Detection
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects stored XSS attempts via HT Mega plugin Gutenberg blocks
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        http_method: 'POST'
        http_path: '/wp-admin/post.php'
        http_body|contains: 
            - '<script'
            - '<iframe'
            - '<object'
            - 'String.fromCharCode'
            - '`'
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in posts by administrators
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-13141 HT Mega Stored XSS Attempt"; flow:to_server; content:"POST"; http_method; content:"/wp-admin/post.php"; http_uri; content:"<script"; http_client_body; nocase; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the HT Mega plugin until a security patch is released.
  2. Review all posts and pages created by contributor-level users for malicious content.
  3. Implement a WAF rule to block XSS payloads targeting Gutenberg blocks.

Long-term Fix:

  • The vendor must release a patched version that implements a tag name whitelist and uses wp_kses_post() for content sanitization.
  • Users should update to the latest version once available.

Workarounds:

  • Restrict contributor-level access to only trusted users.
  • Use a security plugin like Wordfence to monitor for XSS attempts.

Report generated by Valters IT DevSecOps & CTI Division

👁️ 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/ht-mega"
http.html:"ht-mega" "elementor"

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