{"id":"GHSA-jfj7-249r-7j2m","aliases":["CVE-2025-53093"],"title":"TabberNeue vulnerable to Stored XSS through wikitext","description":"### Summary\nArbitrary HTML can be inserted into the DOM by inserting a payload into any allowed attribute of the `<tabber>` tag.\n\n### Details\n\nThe `args` provided within the wikitext as attributes to the `<tabber>` tag are passed to the TabberComponentTabs class:\nhttps://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/blob/3a23b703ce36cfc4128e7921841f68230be4059a/includes/Tabber.php#L76\n\nIn TabberComponentTabs, the attributes are validated before being supplied to the Tabs template.\nhttps://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/blob/3a23b703ce36cfc4128e7921841f68230be4059a/includes/Components/TabberComponentTabs.php#L15-L31\nHowever, the validation is insufficient.\nWhat `Sanitizer::validateTagAttributes` does is call `validateAttributes`, which\n```\n\t * - Discards attributes not on the given list\n\t * - Unsafe style attributes are discarded\n\t * - Invalid id attributes are re-encoded\n```\nHowever, the attribute values are expected to be escaped when inserted into HTML.\n\nThe attribute values are then inserted into HTML without being escaped:\nhttps://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/blob/3a23b703ce36cfc4128e7921841f68230be4059a/includes/templates/Tabs.mustache#L1\n\n### PoC\n#### XSS through attributes:\n1. Go to Special:ExpandTemplates and insert the following wikitext:\n```\n<tabber class='test123\" onmouseenter=\"alert(1)\"'>\n|-|First Tab Title=\nFirst tab content goes here.\n</tabber>\n```\n2. Press \"OK\"\n3. Hover over the tabber\n\n![image](https://github.com/user-attachments/assets/bb65a587-e277-4936-b9f9-400ad7c39040)\n\n\n#### XSS through script tags:\n1. Go to Special:ExpandTemplates and insert the following wikitext:\n```\n<tabber class='test123\"&gt;&lt;script&gt;alert(2)&lt;/script&gt;'>\n|-|First Tab Title=\nFirst tab content goes here.\n</tabber>\n```\n2. Press \"OK\"\n![image](https://github.com/user-attachments/assets/a51ede5c-f9a0-49be-875e-37d30a083721)\n\n### Impact\nArbitrary HTML can be inserted into the DOM by any user, allowing for JavaScript to be executed.","severity":"high","score":8.6,"published":"2025-06-27T20:50:40.000Z","modified":"2025-06-27T21:42:16.750Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"starcitizentools/tabber-neue","ranges":[{"events":[{"introduced":"3.0.0"},{"fixed":"3.1.1"}],"type":"ECOSYSTEM"}],"versions":["v3.0.0","v3.1.0"],"fixed":["3.1.1"]}],"references":["https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/security/advisories/GHSA-jfj7-249r-7j2m","https://nvd.nist.gov/vuln/detail/CVE-2025-53093","https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/commit/4cdf217ef96da74a1503d1dd0bb0ed898fc2a612","https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/commit/62ce0fcdf32bd3cfa77f92ff6b940459a14315fa","https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue","https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/blob/3a23b703ce36cfc4128e7921841f68230be4059a/includes/Components/TabberComponentTabs.php#L15-L31","https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/blob/3a23b703ce36cfc4128e7921841f68230be4059a/includes/Tabber.php#L76","https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue/blob/3a23b703ce36cfc4128e7921841f68230be4059a/includes/templates/Tabs.mustache#L1"],"sources":[{"name":"OSV","id":"GHSA-jfj7-249r-7j2m","modified":"2025-06-27T21:42:16.750392Z","url":"https://osv.dev/vulnerability/GHSA-jfj7-249r-7j2m"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L","score":8.6}]}