| Title | Mistune projectのMistuneにおけるクロスサイトスクリプティングの脆弱性 |
|---|---|
| Summary | Mistuneはレンダラーとプラグインを備えたPython製Markdownパーサーです。バージョン3.2.1以前のHTMLRenderer.heading()は、id属性の値を直接文字列連結してhNタグを生成しており、escape()、safe_entity()、その他のサニタイズ関数を呼び出していませんでした。id値に含まれる二重引用符 " は属性の終了を引き起こし、攻撃者が任意の追加属性(イベントハンドラ、src=、href=など)を見出し要素に注入できる可能性がありました。この脆弱性はバージョン3.2.1で修正されました。 |
| Possible impacts | ・当該ソフトウェアが扱う情報の一部が外部に漏れる可能性があります。 ・当該ソフトウェアが扱う情報の一部が書き換えられる可能性があります。 ・当該ソフトウェアは停止しません。 |
| Solution | ベンダ情報を参照して適切な対策を実施してください。 |
| Publication Date | May 26, 2026, midnight |
| Registration Date | June 3, 2026, 3:35 p.m. |
| Last Update | June 3, 2026, 3:35 p.m. |
| CVSS3.0 : 警告 | |
| Score | 6.1 |
|---|---|
| Vector | 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 | Changed Details | Date of change |
|---|---|---|
| 1 | [2026年06月03日] 掲載 |
June 3, 2026, 3:35 p.m. |
| Summary | Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, HTMLRenderer.heading() builds the opening <hN> tag by string-concatenating the id attribute value directly into the HTML — with no call to escape(), safe_entity(), or any other sanitisation function. A double-quote character " in the id value terminates the attribute, allowing an attacker to inject arbitrary additional attributes (event handlers, src=, href=, etc.) into the heading element. This vulnerability is fixed in 3.2.1. |
|---|---|
| Publication Date | May 27, 2026, 6:16 a.m. |
| Registration Date | May 28, 2026, 4:09 a.m. |
| Last Update | May 28, 2026, 10:42 p.m. |
| Configuration1 | or higher | or less | more than | less than | |
| cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:* | 3.2.1 | ||||