Changelog
All notable changes made in 2.x releases are shown below. See the full list of releases for the complete changelog.
2.7.1 - 2025-07-20
Notable Changes
Changed
- Optimized several regular expressions in
RegexHelperto improve performance (#674, #1086)
Fixed
EmbedProcessorno longer callsupdateEmbeds()when there are no embeds to update (#1081)- Fixed missing
benchmark.phpCSV path validation for non-existent files (#1068, #1085)
New Contributors
- @driesvints made their first contribution in https://github.com/thephpleague/commonmark/pull/1077
- @adielcristo made their first contribution in https://github.com/thephpleague/commonmark/pull/1079
- @Copilot made their first contribution in https://github.com/thephpleague/commonmark/pull/1085
Full Changelog: https://github.com/thephpleague/commonmark/compare/2.7.0…2.7.1
2.7.0 - 2025-05-05
This is a security release to address a potential cross-site scripting (XSS) vulnerability when using the AttributesExtension with 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
Older Versions
Please see the full list of releases for the complete changelog.