CVE-2024-34507: An issue was discovered in includes/CommentFormatter/CommentParser.php in MediaWiki before 1.39.7, 1.40.x before 1.40.3, and 1.41.x befor…

CVE-2024-34507 affects 186 listed versions of MediaWiki in the Dawnsentry catalogue.

7.4CVSS high
Proof of concept publicexploitation
under 1%EPSS (next 30 days)
5 May 2024published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

MediaWiki

186 of 250 listed versions are affected. Fixed in 1.41.1, 1.40.3, 1.39.7. The newest release, 1.47.0, is not affected.

1.41.0 1.40.2 1.40.1 1.40.0 1.39.6 1.39.5 1.39.4 1.39.3 1.38.7 1.38.6 1.38.5 1.38.4 1.38.3 1.38.2 1.38.1 1.38.0 1.38.0-rc1 1.38.0-rc0 1.37.6 1.37.5 1.37.4 1.37.3 1.37.2 1.37.1 1.37.0 1.37.0-rc2 1.37.0-rc1 1.37.0-rc0 1.37 1.36.4 1.36.3 1.36.2 1.36.1 1.36.0 1.36 1.35.14 1.35.13 1.35.12 1.35.11 1.35.10 1.35.9 1.35.8 1.35.7 1.35.6 1.35.5 1.35.4 1.35.3 1.35.2 1.35.1 1.35.0 1.34.4 1.34.3 1.34.2 1.34.1 1.34.0 1.34 1.33.4 1.33.3 1.33.2 1.33.1 and 126 more

What it is

An issue was discovered in includes/CommentFormatter/CommentParser.php in MediaWiki before 1.39.7, 1.40.x before 1.40.3, and 1.41.x before 1.41.1. XSS can occur because of mishandling of the 0x1b character, as demonstrated by Special:RecentChanges#%1b0000000.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N (MITRE)

Published by MITRE on 5 May 2024. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2024-34507 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.