漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
commonmark before 2.9.1 XSS via AttributesExtension form feed bypass
Vulnerability Description
league/commonmark (thephpleague/commonmark) versions >= 2.7.0 and < 2.9.1 contain a cross-site scripting vulnerability in the AttributesExtension. Prefixing an attribute name with a single U+000C form feed byte (e.g. {\x0Conclick="alert(1)"}) bypasses the AttributesHelper::filterAttributes() 'on*' event-handler filter because PHP's trim() does not strip U+000C, causing the attribute to be written verbatim into the output where browsers parse it as a genuine event handler. The same prefix also defeats the allow_unsafe_links check, allowing javascript: URIs through href/src attributes even when allow_unsafe_links is false. Exploitation requires processing untrusted Markdown with the AttributesExtension enabled; the injected script executes when the rendered HTML is viewed. Fixed in 2.9.1.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Vulnerability Title
The League of Extraordinary Packages league/commonmark 跨站脚本漏洞
Vulnerability Description
The League of Extraordinary Packages league/commonmark是The League of Extraordinary Packages组织开源的一款Markdown解析组件。 The League of Extraordinary Packages league/commonmark 2.7.0及之后版本和2.9.1之前版本存在跨站脚本漏洞,该漏洞源于AttributesExtension组件对属性名的过滤不严,在属性名前添加单个U+000C换页字节可绕过A
CVSS Information
N/A
Vulnerability Type
N/A