Bump league/commonmark from 2.4.2 to 2.7.0
dependenciesphp
Bumps [league/commonmark](https://github.com/thephpleague/commonmark) from 2.4.2 to 2.7.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/thephpleague/commonmark/releases">league/commonmark's releases</a>.</em></p>
<blockquote>
<h2>2.7.0</h2>
<p>This is a <strong>security release</strong> to address <a href="https://github.com/thephpleague/commonmark/security/advisories/GHSA-3527-qv2q-pfvx">a potential cross-site scripting (XSS) vulnerability when using the <code>AttributesExtension</code> with untrusted user input</a>.</p>
<h3>Added</h3>
<ul>
<li>Added <code>attributes/allow</code> config option to specify which attributes users are allowed to set on elements (default allows virtually all attributes)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>The <code>AttributesExtension</code> blocks all attributes starting with <code>on</code> unless explicitly allowed via the <code>attributes/allow</code> config option</li>
<li>The <code>allow_unsafe_links</code> option is now respected by the <code>AttributesExtension</code> when users specify <code>href</code> and <code>src</code> attributes</li>
</ul>
<h2>2.6.2</h2>
<h2>Fixed</h2>
<ul>
<li>Fixed Attributes extension parsing regression (<a href="https://redirect.github.com/thephpleague/commonmark/issues/1071">#1071</a>)</li>
</ul>
<h2>Other Changes</h2>
<ul>
<li>fix incorrect interface in docs v2.6 by <a href="https://github.com/CharrafiMed"><code>@CharrafiMed</code></a> in <a href="https://redirect.github.com/thephpleague/commonmark/pull/1063">thephpleague/commonmark#1063</a></li>
<li>docs/2.6/extensions/front-matter.md: add missing newline by <a href="https://github.com/DanielEScherzer"><code>@DanielEScherzer</code></a> in <a href="https://redirect.github.com/thephpleague/commonmark/pull/1069">thephpleague/commonmark#1069</a></li>
</ul>
<h2>New Contributors</h2>
<ul>
<li><a href="https://github.com/CharrafiMed"><code>@CharrafiMed</code></a> made their first contribution in <a href="https://redirect.github.com/thephpleague/commonmark/pull/1063">thephpleague/commonmark#1063</a></li>
<li><a href="https://github.com/DanielEScherzer"><code>@DanielEScherzer</code></a> made their first contribution in <a href="https://redirect.github.com/thephpleague/commonmark/pull/1069">thephpleague/commonmark#1069</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/thephpleague/commonmark/compare/2.6.1...2.6.2">https://github.com/thephpleague/commonmark/compare/2.6.1...2.6.2</a></p>
<h2>2.6.1</h2>
<h3>Fixed</h3>
<ul>
<li>Rendered list items should only add newlines around block-level children (<a href="https://redirect.github.com/thephpleague/commonmark/issues/1059">#1059</a>, <a href="https://redirect.github.com/thephpleague/commonmark/issues/1061">#1061</a>)</li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/thephpleague/commonmark/compare/2.6.0...2.6.1">https://github.com/thephpleague/commonmark/compare/2.6.0...2.6.1</a></p>
<h2>2.6.0</h2>
<p>This is a <strong>security release</strong> to address potential denial of service attacks when parsing specially crafted,
malicious input from untrusted sources (like user input). See <a href="https://github.com/thephpleague/commonmark/security/advisories/GHSA-c2pc-g5qf-rfrf">https://github.com/thephpleague/commonmark/security/advisories/GHSA-c2pc-g5qf-rfrf</a> for more details.</p>
<h3>Added</h3>
<ul>
<li>Added <code>max_delimiters_per_line</code> config option to prevent denial of service attacks when parsing malicious input</li>
<li>Added <code>table/max_autocompleted_cells</code> config option to prevent denial of service attacks when parsing large tables</li>
<li>The <code>AttributesExtension</code> now supports attributes without values (<a href="https://redirect.github.com/thephpleague/commonmark/issues/985">#985</a>, <a href="https://redirect.github.com/thephpleague/commonmark/issues/986">#986</a>)</li>
<li>The <code>AutolinkExtension</code> exposes two new configuration options to override the default behavior (<a href="https://redirect.github.com/thephpleague/commonmark/issues/969">#969</a>, <a href="https://redirect.github.com/thephpleague/commonmark/issues/987">#987</a>):
<ul>
<li><code>autolink/allowed_protocols</code> - an array of protocols to allow autolinking for</li>
<li><code>autolink/default_protocol</code> - the default protocol to use when none is specified</li>
</ul>
</li>
<li>Added <code>RegexHelper::isWhitespace()</code> method to check if a given character is an ASCII whitespace character</li>
<li>Added <code>CacheableDelimiterProcessorInterface</code> to ensure linear complexity for dynamic delimiter processing</li>
<li>Added <code>Bracket</code> delimiter type to optimize bracket parsing</li>
</ul>
<h3>Changed</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/thephpleague/commonmark/blob/2.7/CHANGELOG.md">league/commonmark's changelog</a>.</em></p>
<blockquote>
<h2>[2.7.0]</h2>
<p>This is a <strong>security release</strong> to address a potential cross-site scripting (XSS) vulnerability when using the <code>AttributesExtension</code> with untrusted user input.</p>
<h3>Added</h3>
<ul>
<li>Added <code>attributes/allow</code> config option to specify which attributes users are allowed to set on elements (default allows virtually all attributes)</li>
</ul>
<h3>Changed</h3>
<ul>
<li>The <code>AttributesExtension</code> blocks all attributes starting with <code>on</code> unless explicitly allowed via the <code>attributes/allow</code> config option</li>
<li>The <code>allow_unsafe_links</code> option is now respected by the <code>AttributesExtension</code> when users specify <code>href</code> and <code>src</code> attributes</li>
</ul>
<h2>[2.6.2] - 2025-04-18</h2>
<h3>Fixed</h3>
<ul>
<li>Fixed Attributes extension parsing regression (<a href="https://redirect.github.com/thephpleague/commonmark/issues/1071">#1071</a>)</li>
</ul>
<h2>[2.6.1] - 2024-12-29</h2>
<h3>Fixed</h3>
<ul>
<li>Rendered list items should only add newlines around block-level children (<a href="https://redirect.github.com/thephpleague/commonmark/issues/1059">#1059</a>, <a href="https://redirect.github.com/thephpleague/commonmark/issues/1061">#1061</a>)</li>
</ul>
<h2>[2.6.0] - 2024-12-07</h2>
<p>This is a <strong>security release</strong> to address potential denial of service attacks when parsing specially crafted,
malicious input from untrusted sources (like user input).</p>
<h3>Added</h3>
<ul>
<li>Added <code>max_delimiters_per_line</code> config option to prevent denial of service attacks when parsing malicious input</li>
<li>Added <code>table/max_autocompleted_cells</code> config option to prevent denial of service attacks when parsing large tables</li>
<li>The <code>AttributesExtension</code> now supports attributes without values (<a href="https://redirect.github.com/thephpleague/commonmark/issues/985">#985</a>, <a href="https://redirect.github.com/thephpleague/commonmark/issues/986">#986</a>)</li>
<li>The <code>AutolinkExtension</code> exposes two new configuration options to override the default behavior (<a href="https://redirect.github.com/thephpleague/commonmark/issues/969">#969</a>, <a href="https://redirect.github.com/thephpleague/commonmark/issues/987">#987</a>):
<ul>
<li><code>autolink/allowed_protocols</code> - an array of protocols to allow autolinking for</li>
<li><code>autolink/default_protocol</code> - the default protocol to use when none is specified</li>
</ul>
</li>
<li>Added <code>RegexHelper::isWhitespace()</code> method to check if a given character is an ASCII whitespace character</li>
<li>Added <code>CacheableDelimiterProcessorInterface</code> to ensure linear complexity for dynamic delimiter processing</li>
<li>Added <code>Bracket</code> delimiter type to optimize bracket parsing</li>
</ul>
<h3>Changed</h3>
<ul>
<li><code>[</code> and <code>]</code> are no longer added as <code>Delimiter</code> objects on the stack; a new <code>Bracket</code> type with its own stack is used instead</li>
<li><code>UrlAutolinkParser</code> no longer parses URLs with more than 127 subdomains</li>
<li>Expanded reference links can no longer exceed 100kb, or the size of the input document (whichever is greater)</li>
<li>Delimiters should always provide a non-null value via <code>DelimiterInterface::getIndex()</code>
<ul>
<li>We'll attempt to infer the index based on surrounding delimiters where possible</li>
</ul>
</li>
<li>The <code>DelimiterStack</code> now accepts integer positions for any <code>$stackBottom</code> argument</li>
<li>Several small performance optimizations</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/thephpleague/commonmark/commit/6fbb36d44824ed4091adbcf4c7d4a3923cdb3405"><code>6fbb36d</code></a> Prepare to release 2.7.0</li>
<li><a href="https://github.com/thephpleague/commonmark/commit/f0d626cf05ad3e99e6db26ebcb9091b6cd1cd89b"><code>f0d626c</code></a> Merge commit from fork</li>
<li><a href="https://github.com/thephpleague/commonmark/commit/43207253ea5f14867c77c697cd3838c446cadcea"><code>4320725</code></a> Fix XSS in AttributesExtension</li>
<li><a href="https://github.com/thephpleague/commonmark/commit/d4b08b81d23e1a30fa70edc0bff4f1c0595c0892"><code>d4b08b8</code></a> Create 2.7 branch</li>
<li><a href="https://github.com/thephpleague/commonmark/commit/5b794e1654d86472445667e41cc16adc5646a790"><code>5b794e1</code></a> Remove docs for 1.0 - 1.5</li>
<li><a href="https://github.com/thephpleague/commonmark/commit/3db9d35b600de147e4ca01298fe1666c9ccaf1d4"><code>3db9d35</code></a> Merge branch '2.6'</li>
<li><a href="https://github.com/thephpleague/commonmark/commit/06c3b0bf2540338094575612f4a1778d0d2d5e94"><code>06c3b0b</code></a> Prepare to release 2.6.2</li>
<li><a href="https://github.com/thephpleague/commonmark/commit/771974c975d465218dc62b6d90c91acb593e38e9"><code>771974c</code></a> Fix Attributes extension parsing regression (<a href="https://redirect.github.com/thephpleague/commonmark/issues/1071">#1071</a>)</li>
<li><a href="https://github.com/thephpleague/commonmark/commit/e99ee2e1e0220612b9d836cd13bbf2990cbdf18f"><code>e99ee2e</code></a> Merge pull request <a href="https://redirect.github.com/thephpleague/commonmark/issues/1069">#1069</a> from DanielEScherzer/patch-1</li>
<li><a href="https://github.com/thephpleague/commonmark/commit/f356ca567c46abfb76d1a6dbc940755212273147"><code>f356ca5</code></a> docs/2.6/extensions/front-matter.md: add missing newline</li>
<li>Additional commits viewable in <a href="https://github.com/thephpleague/commonmark/compare/2.4.2...2.7.0">compare view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
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-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@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)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/ushahidi/platform/network/alerts).
</details>
合并状态:未合并 0 条评论