Bug 2561915 - CVE-2026-111758 libgit2: markdown-it: Denial of Service via unclosed link reference definitions [fedora-all]
Summary: CVE-2026-111758 libgit2: markdown-it: Denial of Service via unclosed link ref...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: libgit2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Fabio Valentini
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["5c80b4a3-a25a-4e01-a289-c...
Depends On:
Blocks: CVE-2026-111758
TreeView+ depends on / blocked
 
Reported: 2026-10-27 11:59 UTC by Vipul Nair
Modified: 2026-10-27 18:32 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-10-27 18:32:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vipul Nair 2026-10-27 11:59:25 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

markdown-it is a Markdown parser. From versions 14.1.0 to before 14.3.3, and 15.0.0 to before 15.0.3, a link reference definition whose label or title is never closed is O(n²) with default options. Continuation lines are pulled lazily with str += lineContent in src/rules_block/reference.ts, and the subsequent charCodeAt and slice calls flatten the V8 cons-string, copying everything collected so far; this runs before the rule decides the definition is invalid. No options are required to trigger it. This issue has been patched in versions 14.3.3 and 15.0.3.

Comment 1 Fabio Valentini 2026-10-27 18:32:42 UTC
markdown-it is only referenced in the JavaScript tooling that's used to build the API docs, which isn't done for the Fedora packages - and even if it were, it would only be used to parse "trusted" input.


Note You need to log in before you can comment on or make changes to this bug.