Skip to content

chore(deps): bump league/commonmark from 2.10.7 to 2.10.9 - #2981

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/composer/league/commonmark-2.10.9
Nov 30, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
dependabot/composer/league/commonmark-2.10.9

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Bumps league/commonmark from 2.10.7 to 2.10.9.

Release notes

Sourced from league/commonmark's releases.

2.10.9

Changed

  • AttributesExtension now converts attribute names to lowercase, so names differing only in case are merged like repeated names instead of being output side by side; for example, {Title=a title=b} now produces title="b" instead of Title="a" title="b" (#1176)
  • The attributes/allow configuration option is now case-insensitive; previously an entry like 'ID' or 'CLASS' never matched #id or .class (#1176)
  • Real HTML tags that follow a backslash-escaped < or a code span are no longer rendered as text when the escaped < or the code span looked like the start of inline HTML; for example, in \<!a<a href="x"> and `<!--` <b>x</b> --> the <a href="x"> and <b> are now raw HTML, as the spec requires (GHSA-jj45-w5cj-2hc8)
  • A GFM URL autolink whose regex hits a PCRE backtracking or recursion limit (only realistic for URLs over about 1MB) is now left as text, along with any later URL autolinks in the same paragraph (GHSA-jj45-w5cj-2hc8)
  • The inline parser uses much less memory on lines where inline syntax could start at nearly every character, such as long runs of [ or *; very large inputs of this kind can still exceed memory_limit

Deprecated

  • Deprecated the RegexHelper constants that are no longer used: PARTIAL_IN_DOUBLE_QUOTES, PARTIAL_IN_SINGLE_QUOTES, PARTIAL_IN_PARENS, PARTIAL_REG_CHAR, PARTIAL_IN_PARENS_NOSP, PARTIAL_BLOCKTAGNAME, PARTIAL_OPENBLOCKTAG, PARTIAL_CLOSEBLOCKTAG, PARTIAL_HTMLBLOCKOPEN and REGEX_THEMATIC_BREAK
  • Deprecated RegexHelper::PARTIAL_HTMLCOMMENT, PARTIAL_PROCESSINGINSTRUCTION, PARTIAL_CDATA, PARTIAL_HTMLTAG and PARTIAL_DECLARATION, which are no longer used; matching any of the first four against a long string without an anchor takes quadratic time when PCRE's JIT is disabled

Fixed

  • Fixed AttributesExtension allowing an attribute name written in a different case, such as {REL=opener}, {TARGET=_self} or {HREF=...}, to take precedence in browsers over the attribute set by a renderer or extension, such as the href of a link or footnote reference, the src of an image, or the rel, target and id set by ExternalLinkExtension and HeadingPermalinkExtension (#1176)
  • Fixed very long lines being parsed differently depending on their length and on whether PCRE's JIT is enabled: when a regular expression hit a PCRE limit, the error was treated as "no match". Affected thematic breaks, link destinations in <…>, link reference definition titles, email autolinks, inline HTML, and fenced code info strings (#1177)
  • Fixed front matter of about 1MB or more not being recognized, so it was rendered into the document as Markdown and getFrontMatter() returned null (#1177)
  • Fixed one very long <…> link destination or email autolink preventing later links or autolinks in the same line or paragraph from being parsed (#1177)
  • DisallowedRawHtmlExtension and allow_unsafe_links now treat a regular expression error as unsafe instead of falling back to unfiltered output (#1177)
  • Fixed a backslash-escaped backtick preventing the rest of its backtick run from opening a code span, so \foo`` rendered as literal text instead of ``foo ``
  • Fixed SmartPunct not converting a dash or ellipsis whose first character was backslash-escaped, so \--- and \.... now render as -– and .…
  • Fixed numeric character references to surrogate code points, such as &#xD800;, producing invalid UTF-8 instead of U+FFFD (#1179)
  • Fixed numeric character references to valid code points above U+2FFFF, such as &#x30000; or &#xE0041;, being replaced with U+FFFD instead of being decoded (#1179)
  • Fixed an empty list item or an ordered list not starting at 1 interrupting a paragraph that contains only link reference definitions; for example, [a]: /u followed by 2. x on the next line now produces a paragraph instead of a list (#1179)
  • Fixed an ordered list starting at 1 but written with leading zeros, such as 01., not being able to interrupt a paragraph (#1179)
  • Fixed one <…> link destination that failed to parse, for example because it contained a < or a line break, preventing every later <…> destination in the same paragraph from being parsed (#1179)
  • Fixed inline HTML comments, processing instructions, CDATA sections, ATX heading closing sequences, GFM email and URL autolinks, and footnote references taking quadratic time on certain inputs when PCRE's JIT compiler is disabled (pcre.jit=0), which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
  • Fixed an inline HTML declaration followed by a long run of letters in a paragraph of about 500KB or more taking about a minute to parse with default settings (PCRE JIT enabled), which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
  • Fixed a line with many www. or http:// prefixes taking quadratic time with the GFM autolink extension on PHP versions before 8.3, which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
  • Fixed long URL autolinks (from about 12KB with PCRE JIT enabled) being only partly linked, or later URL autolinks on the same line being left as text, when the URL regex exceeded PCRE's limits (GHSA-jj45-w5cj-2hc8)
  • Fixed GFM email autolinks treating non-ASCII letters that match [A-Za-z] case-insensitively, such as the Kelvin sign and long s, as part of the address and swallowing the text that follows; such characters are no longer part of an address

2.10.8

Changed

  • max_delimiters_per_line now counts each delimiter character instead of each run of delimiters, so ** counts as 2 and a run of 50 underscores counts as 50; if you set a low limit, you may need to raise it
  • Attribute lists longer than 8192 bytes are no longer parsed by AttributesExtension
  • In an unquoted attribute value, a } now ends the attribute list unless another } follows in the same value; for example, {a={1,2} #b} now sets a="{1,2" and leaves #b} as text. Quote values that contain }. Adjacent unquoted lists such as {a=b}{c=d} are now parsed as two lists instead of one
  • Malformed attribute lists such as {a=ba=b} and {.a =b} are now left as text; previously they were partially parsed and the rest silently dropped

Fixed

  • Fixed max_delimiters_per_line not limiting long runs of delimiters, allowing a single pair of very long _ or * runs to produce deeply-nested emphasis that takes quadratic time to render, which could be abused to cause a denial of service (GHSA-h4px-59g8-q37c)
  • Fixed the AttributesExtension backtracking excessively when a paragraph or line contains many { that don't form a valid attribute list, which could be abused to cause a denial of service (GHSA-8q9g-2c37-97xp)
  • Fixed a line such as [foo]: /url [bar]: /other being parsed as a link reference definition for bar instead of a paragraph (#1174)
  • Fixed AttributesExtension throwing an error or rendering class="1" when given class=true; class=true and id=true now set the literal value true instead of a boolean attribute
  • Fixed AttributesExtension dropping attributes written with a space before = ({x =true}), and keeping the quotes in a value written with a space after = ({x= "a b"})
  • Fixed HeadingPermalinkExtension throwing a TypeError when apply_id_to_heading is enabled and a heading's existing id attribute is not a string; an empty or non-string id is now replaced with the generated slug
Changelog

Sourced from league/commonmark's changelog.

[2.10.9] - 2026-11-25

Changed

  • AttributesExtension now converts attribute names to lowercase, so names differing only in case are merged like repeated names instead of being output side by side; for example, {Title=a title=b} now produces title="b" instead of Title="a" title="b" (#1176)
  • The attributes/allow configuration option is now case-insensitive; previously an entry like 'ID' or 'CLASS' never matched #id or .class (#1176)
  • Real HTML tags that follow a backslash-escaped < or a code span are no longer rendered as text when the escaped < or the code span looked like the start of inline HTML; for example, in \<!a<a href="x"> and `<!--` <b>x</b> --> the <a href="x"> and <b> are now raw HTML, as the spec requires (GHSA-jj45-w5cj-2hc8)
  • A GFM URL autolink whose regex hits a PCRE backtracking or recursion limit (only realistic for URLs over about 1MB) is now left as text, along with any later URL autolinks in the same paragraph (GHSA-jj45-w5cj-2hc8)
  • The inline parser uses much less memory on lines where inline syntax could start at nearly every character, such as long runs of [ or *; very large inputs of this kind can still exceed memory_limit

Deprecated

  • Deprecated the RegexHelper constants that are no longer used: PARTIAL_IN_DOUBLE_QUOTES, PARTIAL_IN_SINGLE_QUOTES, PARTIAL_IN_PARENS, PARTIAL_REG_CHAR, PARTIAL_IN_PARENS_NOSP, PARTIAL_BLOCKTAGNAME, PARTIAL_OPENBLOCKTAG, PARTIAL_CLOSEBLOCKTAG, PARTIAL_HTMLBLOCKOPEN and REGEX_THEMATIC_BREAK
  • Deprecated RegexHelper::PARTIAL_HTMLCOMMENT, PARTIAL_PROCESSINGINSTRUCTION, PARTIAL_CDATA, PARTIAL_HTMLTAG and PARTIAL_DECLARATION, which are no longer used; matching any of the first four against a long string without an anchor takes quadratic time when PCRE's JIT is disabled

Fixed

  • Fixed AttributesExtension allowing an attribute name written in a different case, such as {REL=opener}, {TARGET=_self} or {HREF=...}, to take precedence in browsers over the attribute set by a renderer or extension, such as the href of a link or footnote reference, the src of an image, or the rel, target and id set by ExternalLinkExtension and HeadingPermalinkExtension (#1176)
  • Fixed very long lines being parsed differently depending on their length and on whether PCRE's JIT is enabled: when a regular expression hit a PCRE limit, the error was treated as "no match". Affected thematic breaks, link destinations in <…>, link reference definition titles, email autolinks, inline HTML, and fenced code info strings (#1177)
  • Fixed front matter of about 1MB or more not being recognized, so it was rendered into the document as Markdown and getFrontMatter() returned null (#1177)
  • Fixed one very long <…> link destination or email autolink preventing later links or autolinks in the same line or paragraph from being parsed (#1177)
  • DisallowedRawHtmlExtension and allow_unsafe_links now treat a regular expression error as unsafe instead of falling back to unfiltered output (#1177)
  • Fixed a backslash-escaped backtick preventing the rest of its backtick run from opening a code span, so \foo`` rendered as literal text instead of ``foo ``
  • Fixed SmartPunct not converting a dash or ellipsis whose first character was backslash-escaped, so \--- and \.... now render as -– and .…
  • Fixed numeric character references to surrogate code points, such as &#xD800;, producing invalid UTF-8 instead of U+FFFD (#1179)
  • Fixed numeric character references to valid code points above U+2FFFF, such as &#x30000; or &#xE0041;, being replaced with U+FFFD instead of being decoded (#1179)
  • Fixed an empty list item or an ordered list not starting at 1 interrupting a paragraph that contains only link reference definitions; for example, [a]: /u followed by 2. x on the next line now produces a paragraph instead of a list (#1179)
  • Fixed an ordered list starting at 1 but written with leading zeros, such as 01., not being able to interrupt a paragraph (#1179)
  • Fixed one <…> link destination that failed to parse, for example because it contained a < or a line break, preventing every later <…> destination in the same paragraph from being parsed (#1179)
  • Fixed inline HTML comments, processing instructions, CDATA sections, ATX heading closing sequences, GFM email and URL autolinks, and footnote references taking quadratic time on certain inputs when PCRE's JIT compiler is disabled (pcre.jit=0), which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
  • Fixed an inline HTML declaration followed by a long run of letters in a paragraph of about 500KB or more taking about a minute to parse with default settings (PCRE JIT enabled), which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
  • Fixed a line with many www. or http:// prefixes taking quadratic time with the GFM autolink extension on PHP versions before 8.3, which could be abused to cause a denial of service (GHSA-jj45-w5cj-2hc8)
  • Fixed long URL autolinks (from about 12KB with PCRE JIT enabled) being only partly linked, or later URL autolinks on the same line being left as text, when the URL regex exceeded PCRE's limits (GHSA-jj45-w5cj-2hc8)
  • Fixed GFM email autolinks treating non-ASCII letters that match [A-Za-z] case-insensitively, such as the Kelvin sign and long s, as part of the address and swallowing the text that follows; such characters are no longer part of an address

[2.10.8] - 2026-11-24

Changed

  • max_delimiters_per_line now counts each delimiter character instead of each run of delimiters, so ** counts as 2 and a run of 50 underscores counts as 50; if you set a low limit, you may need to raise it
  • Attribute lists longer than 8192 bytes are no longer parsed by AttributesExtension
  • In an unquoted attribute value, a } now ends the attribute list unless another } follows in the same value; for example, {a={1,2} #b} now sets a="{1,2" and leaves #b} as text. Quote values that contain }. Adjacent unquoted lists such as {a=b}{c=d} are now parsed as two lists instead of one
  • Malformed attribute lists such as {a=ba=b} and {.a =b} are now left as text; previously they were partially parsed and the rest silently dropped

Fixed

  • Fixed max_delimiters_per_line not limiting long runs of delimiters, allowing a single pair of very long _ or * runs to produce deeply-nested emphasis that takes quadratic time to render, which could be abused to cause a denial of service (GHSA-h4px-59g8-q37c)
  • Fixed the AttributesExtension backtracking excessively when a paragraph or line contains many { that don't form a valid attribute list, which could be abused to cause a denial of service (GHSA-8q9g-2c37-97xp)
  • Fixed a line such as [foo]: /url [bar]: /other being parsed as a link reference definition for bar instead of a paragraph (#1174)
  • Fixed AttributesExtension throwing an error or rendering class="1" when given class=true; class=true and id=true now set the literal value true instead of a boolean attribute
  • Fixed AttributesExtension dropping attributes written with a space before = ({x =true}), and keeping the quotes in a value written with a space after = ({x= "a b"})
  • Fixed HeadingPermalinkExtension throwing a TypeError when apply_id_to_heading is enabled and a heading's existing id attribute is not a string; an empty or non-string id is now replaced with the generated slug
Commits
  • ab5ff8c Prepare to release 2.10.9
  • 70e3486 Merge branch 'fix/jit-off-quadratic-regexes' into 2.10
  • e2755c9 Don't attribute the PHP 8.3 behavior to a specific call
  • 6503be8 Clarify comments in InlineParserEngine
  • 190b984 Tidy wording and guard a string offset
  • 2bbc5fc Test the engine's match slots and failure handling, and URL autolink give-up
  • 6c405cd Add the URL autolink prefix case to the changelog
  • 9fc4478 Avoid repeated UTF-8 validation when collecting inline parser matches
  • 9560010 Reject unknown arguments to the pathological test runner
  • 5790d8f Run the pathological tests on the oldest supported PHP too
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [league/commonmark](https://github.com/thephpleague/commonmark) from 2.10.7 to 2.10.9.
- [Release notes](https://github.com/thephpleague/commonmark/releases)
- [Changelog](https://github.com/thephpleague/commonmark/blob/2.10/CHANGELOG.md)
- [Commits](thephpleague/commonmark@2.10.7...2.10.9)

---
updated-dependencies:
- dependency-name: league/commonmark
  dependency-version: 2.10.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@github-actions
github-actions Bot enabled auto-merge November 30, 2026 02:03
@github-actions
github-actions Bot merged commit 682f408 into main Nov 30, 2026
64 checks passed
@github-actions
github-actions Bot deleted the dependabot/composer/league/commonmark-2.10.9 branch November 30, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants