Repository navigation
rumenx/php-sitemap 1.1.1 fixes a stored cross-site scripting issue in the HTML sitemap (GHSA-j582-rcwr-w4r6).
composer require rumenx/php-sitemap:^1.1.1Security
render('html')wrotelocinto a double-quotedhrefafterhtmlentities()withENT_XML1, which does not encode quotes.- The HTML view now encodes quotes, and it uses an
hrefonly forhttpandhttpsURLs. - Reported by Artur Chlebicki (@Artur12555).
XML sitemap output is unchanged. PHP 8.3.36+, 8.4.27+, or 8.5.12+ is still required.
What's Changed
- fix: escape the HTML sitemap href and text (v1.1.1, GHSA-j582-rcwr-w4r6) by @RumenDamyanov in #216
Full Changelog: v1.1.0...v1.1.1