Page MenuHomePhabricator

CVE-2026-103050 Stored i18n XSS in MassMessage
Closed, ResolvedPublicSecurity

Description

The massmessage-content-addeditem message is inserted as HTML by the MassMessage extension, allowing for stored XSS to be performed by users with the editinterface permission.

Reproduction steps

  1. Edit MediaWiki:Massmessage-content-addeditem and change it to <img src=x onerror=alert(1)>
  2. Go to Special:CreateMassMessageList and create a list
  3. In the "Add pages" form on the list page, specify any title in the "Title" field
  4. In the "Site" dropdown, select a wiki that's not the one you're currently using

image.png (1,522×836 px, 86 KB)

Cause

https://github.com/wikimedia/mediawiki-extensions-MassMessage/blob/06cced72a4be1bf9eeb9fc412e85de9ee61eef79/modules/ext.MassMessage.content.js#L44-L48
https://github.com/wikimedia/mediawiki-extensions-MassMessage/blob/06cced72a4be1bf9eeb9fc412e85de9ee61eef79/modules/ext.MassMessage.content.js#L67

Additional information

MW: 1.47.0-alpha (c2698c7)
MassMessage: 0.5.0 (06cced7)

Found using semgrep

Event Timeline

Restricted Application added a subscriber: • Aklapper. · View Herald Transcript

Generally it would be cleaner to just use a jQuery object for targetLink, but that would require making changes to unrelated code (I can upload a follow-up on gerrit after this patch is made public).

sbassett changed the task status from Open to In Progress.Jul 20 2026, 4:28 PM
sbassett triaged this task as Medium priority.
sbassett moved this task from Incoming to In Progress on the Security-Team board.
sbassett edited projects, added: SecTeam-Processed; removed: Product Safety and Integrity.
sbassett added subscribers: aranyap, Catrope, sbassett.

CR+2

Generally it would be cleaner to just use a jQuery object for targetLink, but that would require making changes to unrelated code (I can upload a follow-up on gerrit after this patch is made public).

Yes please, that would be great, thank you!

Mstyles subscribed.

Generally it would be cleaner to just use a jQuery object for targetLink, but that would require making changes to unrelated code (I can upload a follow-up on gerrit after this patch is made public).

Deployed

Change #1346089 had a related patch set uploaded (by Catrope; author: SomeRandomDeveloper):

[mediawiki/extensions/MassMessage@master] SECURITY: Parse system message before using it as HTML

https://gerrit.wikimedia.org/r/1346089

Change #1346090 had a related patch set uploaded (by Catrope; author: SomeRandomDeveloper):

[mediawiki/extensions/MassMessage@REL1_46] SECURITY: Parse system message before using it as HTML

https://gerrit.wikimedia.org/r/1346090

Change #1346091 had a related patch set uploaded (by Catrope; author: SomeRandomDeveloper):

[mediawiki/extensions/MassMessage@REL1_45] SECURITY: Parse system message before using it as HTML

https://gerrit.wikimedia.org/r/1346091

Change #1346092 had a related patch set uploaded (by Catrope; author: SomeRandomDeveloper):

[mediawiki/extensions/MassMessage@REL1_43] SECURITY: Parse system message before using it as HTML

https://gerrit.wikimedia.org/r/1346092

Change #1346090 merged by jenkins-bot:

[mediawiki/extensions/MassMessage@REL1_46] SECURITY: Parse system message before using it as HTML

https://gerrit.wikimedia.org/r/1346090

Change #1346091 merged by jenkins-bot:

[mediawiki/extensions/MassMessage@REL1_45] SECURITY: Parse system message before using it as HTML

https://gerrit.wikimedia.org/r/1346091

Change #1346089 merged by jenkins-bot:

[mediawiki/extensions/MassMessage@master] SECURITY: Parse system message before using it as HTML

https://gerrit.wikimedia.org/r/1346089

Change #1346092 merged by jenkins-bot:

[mediawiki/extensions/MassMessage@REL1_43] SECURITY: Parse system message before using it as HTML

https://gerrit.wikimedia.org/r/1346092

Catrope renamed this task from Stored i18n XSS in MassMessage to CVE-2026-103050 Stored i18n XSS in MassMessage.Sep 29 2026, 11:11 PM
sbassett changed the visibility from "Custom Policy" to "Public (No Login Required)".
sbassett changed the edit policy from "Custom Policy" to "All Users".
sbassett changed Risk Rating from N/A to Medium.