修正版ありWordPress

WordPress Core 2.5.0 - 7.1.4 - コメント内のエスケープされたショートコード属性を介した認証不要の保存型クロスサイトスクリプティング

元情報の公開:2026/11/18 09:00 / 元情報の更新:2026/11/20 01:29(日本時間)

日本語訳

WordPressコアの2.5.0から7.1.4までのバージョンには、コメント内のエスケープされたショートコード属性を通じた保存型クロスサイトスクリプティングの脆弱性があります。認証されていないコメント投稿者が、コメントのマークアップフィルターを通過し、その後shortcode_parse_atts()によってHTMLの構造文字へデコードされる16進数または8進数のエスケープを送信できます。

WordPress 5.0以降では、コアのLatest Commentsブロックに表示される承認済みコメントが通常のショートコード処理へ到達できます。細工した標準のcaptionとvideoショートコードを連鎖させると、同梱のMediaElementコードがtrackラベルから画像のイベントハンドラーを復元して実行します。それより前のバージョンでは、コメント内容をショートコードとして処理し、デコードされた属性をHTMLまたはブラウザー側の出力先へ渡す別の連携機能が必要です。コメントは承認され、描画される必要があります。

原文(英語)

WordPress Core 2.5.0 - 7.1.4 - Unauthenticated Stored Cross-Site Scripting via Escaped Shortcode Attributes in Comments

WordPress Core is vulnerable to stored cross-site scripting through escaped shortcode attributes in comments in versions 2.5.0 through 7.1.4. An unauthenticated commenter can submit hex or octal escapes that pass comment markup filtering and are later decoded into HTML structural characters by shortcode_parse_atts(). On WordPress 5.0 and later, an approved comment displayed by the Core Latest Comments block can reach the normal shortcode pass; a crafted stock caption and video shortcode chain causes bundled MediaElement code to reconstruct and execute an image event handler from a track label. Earlier versions require another integration that processes comment content as shortcodes and exposes the decoded attribute to an HTML or browser-side sink. The comment must be approved and rendered.

引用元:Wordfence

運営元KanriPressのサービス案内

サイトを守る備えを、今日から始めませんか。

「KanriPress WP Sakimori」は、ファイアウォールと仮想パッチで攻撃に備え、マルウェア検査と継続監視でサイトの異変を捉えます。毎日のバックアップで万一に備え、月次レポートで保護・監視の状況も確認。日々の管理負担を抑えながらWordPressを守る仕組みを、月額2,200円(税込)で導入できます。

サービス内容・料金を見る