| タイトル | Mistune projectのMistuneにおけるクロスサイトスクリプティングの脆弱性 |
|---|---|
| 概要 | Mistuneはレンダラーとプラグインを備えたPythonのMarkdownパーサーです。バージョン3.2.1以前では、Imageディレクティブプラグインが:width:および:height:オプションを_num_re = re.compile(r"^\d+(?:\.\d*)?")という正規表現で検証していました。検証された値が単なる整数でない場合、render_block_image()はそれを直接style="width:...;"またはstyle="height:...;"属性に挿入します。プレフィックスのみを検証する正規表現によって値が受け入れられたため、先頭の数字の後の任意のCSSがエスケープされることなくそのままstyle=属性に到達してしまいます。この脆弱性はバージョン3.2.1で修正されました。 |
| 想定される影響 | ・当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 |
| 対策 | ベンダ情報を参照して適切な対策を実施してください。 |
| 公表日 | 2026年5月26日0:00 |
| 登録日 | 2026年6月3日15:35 |
| 最終更新日 | 2026年6月3日15:35 |
| CVSS3.0 : 警告 | |
| スコア | 6.1 |
|---|---|
| ベクター | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| Mistune project |
| Mistune 3.2.1 未満 |
| No | 変更内容 | 変更日 |
|---|---|---|
| 1 | [2026年06月03日] 掲載 |
2026年6月3日15:35 |
| 概要 | Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, the Image directive plugin validates the :width: and :height: options with a regex compiled as _num_re = re.compile(r"^\d+(?:\.\d*)?"). When the validated value is not a plain integer, render_block_image() inserts it directly into a style="width:...;" or style="height:...;" attribute. Because the value was accepted by the prefix-only regex, any CSS after the leading digits reaches the style= attribute verbatim and without escaping. This vulnerability is fixed in 3.2.1. |
|---|---|
| 公表日 | 2026年5月27日6:16 |
| 登録日 | 2026年5月28日4:09 |
| 最終更新日 | 2026年5月28日22:38 |
| 構成1 | 以上 | 以下 | より上 | 未満 | |
| cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:* | 3.2.1 | ||||