Skip to content

Commit f229cab

Browse files
committed
fix: unescaped XSS in TabberTransclude page name
GHSA-4x6x-8rm8-c37j
1 parent 1ccbeb9 commit f229cab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/TabberTransclude.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private static function buildTabTransclude( array $tabData, Parser $parser, PPFr
151151
if ( empty( $tabName ) ) {
152152
$tabName = $pageName;
153153
}
154-
$tabBody = sprintf( '<div class="error">Invalid title: %s</div>', $pageName );
154+
$tabBody = sprintf( '<div class="error">Invalid title: %s</div>', Sanitizer::escapeHtmlAllowEntities( $pageName ) );
155155
} else {
156156
$pageName = $title->getPrefixedText();
157157
if ( empty( $tabName ) ) {

0 commit comments

Comments
 (0)