漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Mistune TOC Anchor Injection XSS
Vulnerability Description
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_toc_ul() builds a <ul> table-of-contents tree from a list of (level, id, text) tuples. Both the id value (used as href="#<id>") and the text value (used as the visible link label) are inserted into <a> tags via a plain Python format string — with no HTML escaping applied to either value. When heading IDs are derived from user-supplied heading text (the standard use-case for readable slug anchors), an attacker can craft a heading whose text breaks out of the href="#..." attribute context, injecting arbitrary HTML tags including <script> blocks directly into the rendered TOC. This vulnerability is fixed in 3.2.1.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Vulnerability Title
mistune 跨站脚本漏洞
Vulnerability Description
mistune是Hsiaoming Yang个人开发者的一个快速而强大的 Python Markdown 解析器。 Mistune 3.2.1之前版本存在跨站脚本漏洞,该漏洞源于render_toc_ul()使用Python格式字符串将id和text值插入a标签而未进行HTML转义,攻击者可通过构造包含特殊字符的标题文本,在渲染目录中注入任意HTML标签。
CVSS Information
N/A
Vulnerability Type
N/A