Bump league/commonmark from 2.5.3 to 2.7.0
Bumps league/commonmark from 2.5.3 to 2.7.0.
Release notes
Sourced from league/commonmark's releases.
2.7.0
This is a security release to address a potential cross-site scripting (XSS) vulnerability when using the
AttributesExtensionwith untrusted user input.Added
- Added
attributes/allowconfig option to specify which attributes users are allowed to set on elements (default allows virtually all attributes)Changed
- The
AttributesExtensionblocks all attributes starting withonunless explicitly allowed via theattributes/allowconfig option- The
allow_unsafe_linksoption is now respected by theAttributesExtensionwhen users specifyhrefandsrcattributes2.6.2
Fixed
- Fixed Attributes extension parsing regression (#1071)
Other Changes
- fix incorrect interface in docs v2.6 by
@CharrafiMedin thephpleague/commonmark#1063- docs/2.6/extensions/front-matter.md: add missing newline by
@DanielEScherzerin thephpleague/commonmark#1069New Contributors
@CharrafiMedmade their first contribution in thephpleague/commonmark#1063@DanielEScherzermade their first contribution in thephpleague/commonmark#1069Full Changelog: https://github.com/thephpleague/commonmark/compare/2.6.1...2.6.2
2.6.1
Fixed
Full Changelog: https://github.com/thephpleague/commonmark/compare/2.6.0...2.6.1
2.6.0
This is a security release to address potential denial of service attacks when parsing specially crafted, malicious input from untrusted sources (like user input). See https://github.com/thephpleague/commonmark/security/advisories/GHSA-c2pc-g5qf-rfrf for more details.
Added
- Added
max_delimiters_per_lineconfig option to prevent denial of service attacks when parsing malicious input- Added
table/max_autocompleted_cellsconfig option to prevent denial of service attacks when parsing large tables- The
AttributesExtensionnow supports attributes without values (#985, #986)- The
AutolinkExtensionexposes two new configuration options to override the default behavior (#969, #987):
autolink/allowed_protocols- an array of protocols to allow autolinking forautolink/default_protocol- the default protocol to use when none is specified- Added
RegexHelper::isWhitespace()method to check if a given character is an ASCII whitespace character- Added
CacheableDelimiterProcessorInterfaceto ensure linear complexity for dynamic delimiter processing- Added
Bracketdelimiter type to optimize bracket parsingChanged
... (truncated)
Changelog
Sourced from league/commonmark's changelog.
[2.7.0]
This is a security release to address a potential cross-site scripting (XSS) vulnerability when using the
AttributesExtensionwith untrusted user input.Added
- Added
attributes/allowconfig option to specify which attributes users are allowed to set on elements (default allows virtually all attributes)Changed
- The
AttributesExtensionblocks all attributes starting withonunless explicitly allowed via theattributes/allowconfig option- The
allow_unsafe_linksoption is now respected by theAttributesExtensionwhen users specifyhrefandsrcattributes[2.6.2] - 2025-04-18
Fixed
- Fixed Attributes extension parsing regression (#1071)
[2.6.1] - 2024-12-29
Fixed
[2.6.0] - 2024-12-07
This is a security release to address potential denial of service attacks when parsing specially crafted, malicious input from untrusted sources (like user input).
Added
- Added
max_delimiters_per_lineconfig option to prevent denial of service attacks when parsing malicious input- Added
table/max_autocompleted_cellsconfig option to prevent denial of service attacks when parsing large tables- The
AttributesExtensionnow supports attributes without values (#985, #986)- The
AutolinkExtensionexposes two new configuration options to override the default behavior (#969, #987):
autolink/allowed_protocols- an array of protocols to allow autolinking forautolink/default_protocol- the default protocol to use when none is specified- Added
RegexHelper::isWhitespace()method to check if a given character is an ASCII whitespace character- Added
CacheableDelimiterProcessorInterfaceto ensure linear complexity for dynamic delimiter processing- Added
Bracketdelimiter type to optimize bracket parsingChanged
[and]are no longer added asDelimiterobjects on the stack; a newBrackettype with its own stack is used insteadUrlAutolinkParserno longer parses URLs with more than 127 subdomains- Expanded reference links can no longer exceed 100kb, or the size of the input document (whichever is greater)
- Delimiters should always provide a non-null value via
DelimiterInterface::getIndex()
- We'll attempt to infer the index based on surrounding delimiters where possible
- The
DelimiterStacknow accepts integer positions for any$stackBottomargument- Several small performance optimizations
Commits
6fbb36dPrepare to release 2.7.0f0d626cMerge commit from fork4320725Fix XSS in AttributesExtensiond4b08b8Create 2.7 branch5b794e1Remove docs for 1.0 - 1.53db9d35Merge branch '2.6'06c3b0bPrepare to release 2.6.2771974cFix Attributes extension parsing regression (#1071)e99ee2eMerge pull request #1069 from DanielEScherzer/patch-1f356ca5docs/2.6/extensions/front-matter.md: add missing newline- Additional commits viewable in compare view
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill 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.