CVE-2025-21612: Extension Cross-Site Scripting Vulnerability

HIGH
Advisory Identifier: GHSA-4x6x-8rm8-c37j
CVSS 8.6
CWE-79
Published
Advisory Summary

CVE-2025-21612 is a HIGH (CVSS 8.6) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Extension libraries in the Packagist ecosystem. The issue involves tabberneue vulnerable to cross-site scripting. Remediation is available by upgrading affected packages to version 2.7.2.

CVE-2025-21612 at a Glance

CVE Identifier CVE-2025-21612
GHSA Identifier GHSA-4x6x-8rm8-c37j
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Extension
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 8.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity Low (I:L)
Availability Low (A:L)

How to Fix CVE-2025-21612

To remediate this vulnerability, upgrade all affected Extension dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

starcitizentools/tabber-neue fixed: 2.7.2
Upgrade starcitizentools/tabber-neue to 2.7.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for starcitizentools/tabber-neue

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-21612, inspect your project dependencies for Extension:

inspect dependencies for starcitizentools/tabber-neue

Analyze the terminal output to locate any version of Extension in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Extension, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary There are several sources of arbitrary, unescaped user input being used to construct HTML, which allows any user that can edit pages or otherwise render wikitext to XSS other users. > Edit: Only the first XSS can be reproduced in production. ### Details > ✅ Verified and patched in f229cab099c69006e25d4bad3579954e481dc566 https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/blob/2526daa9f8cfdd616c861c8439755cb74a6c8c6e/includes/TabberTransclude.php#L154 This doesn't escape the user-supplied page name when outputting, so an XSS payload as the page name can be used here. This was caused by d8c3db4e5935476e496d979fb01f775d3d3282e6. ---- > ❌ Invalid as MediaWiki parser sanitizes dangerous HTML https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/blob/2526daa9f8cfdd616c861c8439755cb74a6c8c6e/includes/Tabber.php#L160 The documentation for [`Parser::recursiveTagParse()`](https://doc.wikimedia.org/mediawiki-core/REL1_42/php/classMediaWiki_1_1Parser_1_1Parser.html#ae450036ec9abb417f142bfdaede02783) states that it returns unsafe HTML, and the `$content` being supplied is from user input. This was caused by 95351812613e04717f3ad7844cfcc67e4ede4d11. ---- > ❌ Invalid as TabberParsoid is not being used https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/blob/2526daa9f8cfdd616c861c8439755cb74a6c8c6e/includes/TabberParsoid.php#L96 This uses unescaped user input as the attribute of an element, thus allowing the user to break out of the attribute or element and injecting arbitrary attributes to the element, or inserting new ones (such as a script tag). This was caused by 8278e665480f08da635aee383c6b5caaeca26ba3. ### PoC For the first XSS, render the following wikitext (whether it be through saving it to a page and viewing it, or via Special:ExpandTemplates): ```wikitext <tabbertransclude> <script>alert(1)</script> | hehe </tabbertransclude> ``` ![](https://github.com/user-attachments/assets/079365a9-203d-4758-a5a4-2166f9a32e62) For the second XSS, I have given up attempting to reproduce it after over twenty minutes of "surfing through the internals of the MediaWiki parser fishing for an XSS out of this giant contraption as I bring myself deeper and deeper into the cogs of the machine that no one knows how to maintain or fully operate ever since its conception". For the third XSS, this is unreachable as the class is never used, though it should be fixed anyway (or the file removed). ### Impact Any user with the ability to cause another user to render wikitext (such as viewing a page that the user can edit, or an attacker tricking the victim to click on a link to Special:ExpandTemplates with the malicious wikitext in the `wpInput` parameter) can XSS said user.

CVE-2025-21612 Affected Extension Versions

1 component(s)
Fixed Versions:
2.7.2
Product / Package Ecosystem Affected Versions Fixed Version
starcitizentools/tabber-neue
Packagist
≥ 1.9.1
< 2.7.2
2.7.2

References

Frequently Asked Questions

What is CVE-2025-21612?
CVE-2025-21612 is a security vulnerability in Extension involving TabberNeue vulnerable to Cross-site Scripting under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Extension versions are affected?
Affected versions include releases prior to 2.7.2 across affected packages: starcitizentools/tabber-neue.
What version fixes CVE-2025-21612?
Upgrading to 2.7.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is starcitizentools/tabber-neue affected?
Yes, starcitizentools/tabber-neue is affected in releases prior to 2.7.2. Upgrade your dependency to 2.7.2 or later.
What is the CVSS score of CVE-2025-21612?
CVE-2025-21612 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L.
What CWE is associated with CVE-2025-21612?
CVE-2025-21612 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2025-21612?
Run the dependency tree command: 'inspect dependencies for starcitizentools/tabber-neue'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-4x6x-8rm8-c37j",
  "modified" : "2025-01-06T18:42:30Z",
  "published" : "2025-01-06T15:47:49Z",
  "aliases" : [ "CVE-2025-21612" ],
  "summary" : "Extension:TabberNeue vulnerable to Cross-site Scripting",
  "details" : "### Summary\nThere are several sources of arbitrary, unescaped user input being used to construct HTML, which allows any user that can edit pages or otherwise render wikitext to XSS other users.\n\n> Edit: Only the first XSS can be reproduced in production.\n\n### Details\n\n> ✅ Verified and patched in f229cab099c69006e25d4bad3579954e481dc566\n\nhttps://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/blob/2526daa9f8cfdd616c861c8439755cb74a6c8c6e/includes/TabberTransclude.php#L154\nThis doesn't escape the user-supplied page name when outputting, so an XSS payload as the page name can be used here.\n\nThis was caused by d8c3db4e5935476e496d979fb01f775d3d3282e6.\n\n----\n\n> ❌ Invalid as MediaWiki parser sanitizes dangerous HTML\n\nhttps://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/blob/2526daa9f8cfdd616c861c8439755cb74a6c8c6e/includes/Tabber.php#L160\nThe documentation for [`Parser::recursiveTagParse()`](https://doc.wikimedia.org/mediawiki-core/REL1_42/php/classMediaWiki_1_1Parser_1_1Parser.html#ae450036ec9abb417f142bfdaede02783) states that it returns unsafe HTML, and the `$content` being supplied is from user input.\n\nThis was caused by 95351812613e04717f3ad7844cfcc67e4ede4d11.\n\n----\n\n> ❌ Invalid as TabberParsoid is not being used\n\nhttps://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/blob/2526daa9f8cfdd616c861c8439755cb74a6c8c6e/includes/TabberParsoid.php#L96\nThis uses unescaped user input as the attribute of an element, thus allowing the user to break out of the attribute or element and injecting arbitrary attributes to the element, or inserting new ones (such as a script tag).\n\nThis was caused by 8278e665480f08da635aee383c6b5caaeca26ba3.\n\n### PoC\nFor the first XSS, render the following wikitext (whether it be through saving it to a page and viewing it, or via Special:ExpandTemplates):\n```wikitext\n<tabbertransclude>\n<script>alert(1)</script> | hehe\n</tabbertransclude>\n```\n![](https://github.com/user-attachments/assets/079365a9-203d-4758-a5a4-2166f9a32e62)\n\nFor the second XSS, I have given up attempting to reproduce it after over twenty minutes of \"surfing through the internals of the MediaWiki parser fishing for an XSS out of this giant contraption as I bring myself deeper and deeper into the cogs of the machine that no one knows how to maintain or fully operate ever since its conception\".\n\nFor the third XSS, this is unreachable as the class is never used, though it should be fixed anyway (or the file removed).\n\n### Impact\nAny user with the ability to cause another user to render wikitext (such as viewing a page that the user can edit, or an attacker tricking the victim to click on a link to Special:ExpandTemplates with the malicious wikitext in the `wpInput` parameter) can XSS said user.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "starcitizentools/tabber-neue"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.9.1"
      }, {
        "fixed" : "2.7.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/security/advisories/GHSA-4x6x-8rm8-c37j"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-21612"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/commit/d8c3db4e5935476e496d979fb01f775d3d3282e6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/commit/f229cab099c69006e25d4bad3579954e481dc566"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-06T15:47:49Z",
    "nvd_published_at" : "2025-01-06T16:15:31Z"
  }
}