PT-2026-86797
CVE-2026-86431
·
تاريخ النشر
2026-09-01
·
تاريخ التحديث
2026-09-07
الوصف من
CVSS 3.1
7.2
عاليةالمقاييسAV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions
league/commonmark versions 2.7.0 through 2.9.0
Description
A cross-site scripting issue exists in the
AttributesExtension when processing untrusted Markdown. By prefixing an attribute name with a U+000C form feed byte, an attacker can bypass the AttributesHelper::filterAttributes() filter that normally blocks on* event handlers. This occurs because PHP's trim() function does not remove the U+000C byte, allowing the attribute to be written verbatim into the output, which browsers then interpret as a valid event handler. Additionally, this prefix bypasses the allow unsafe links check, enabling the use of javascript: URIs in href or src attributes even when the security setting is disabled. The injected script executes when the rendered HTML is viewed, potentially leading to session theft, cookie theft, or account takeover. The issue can be triggered without user interaction if the payload is attached to an image onerror handler.Recommendations
Update league/commonmark to version 2.9.1.
As a temporary workaround, configure an explicit allow list for attributes (e.g.,
['attributes' => ['allow' => ['id', 'class', 'align']]]) to ensure that any attribute not explicitly listed, including those with the form feed prefix, is dropped.قابلية الاستغلال
استغلال
إصلاح
التأثيرات
المورّدون
المنتجات المتأثرة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾