You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
High colspan values can cause denial of service on servers or machine to freeze #231
Similar to issue #143 a very high value for colspan in <th> or <td> elements can cause resource exhaustion and denial of service on a server or a system freeze locally.
The code to reproduce: md = markdownify('<table><tr><th colspan="999999999"></th></tr><table>')
If you check the HTML Living Standard the allowed values for colspan are 1 until 1000, so the processed values should be limited to this range.
You're welcome! I'm closing this issue now that the pull request has been merged.
Is there a roadmap or timeline for the next release that will include this fix?
Activity
chrispy-snps commentedon Jul 13, 2025
@alheiveea - thanks for finding this!
alheiveea commentedon Jul 24, 2025
You're welcome! I'm closing this issue now that the pull request has been merged.
Is there a roadmap or timeline for the next release that will include this fix?
AlexVonB commentedon Aug 9, 2025
@alheiveea v1.2.0 should contain your PR :)