{"id":"GHSA-4qw4-jpp4-8gvp","aliases":["GHSA-4qw4-jpp4-8gvp"],"related":[],"kind":"vulnerability","state":"published","title":"Unbounded resource exhaustion in cmark-gfm autolink extension may lead to denial of service","summary":"### Impact\n\nCommonMarker uses `cmark-gfm` for rendering [Github Flavored Markdown](https://github.github.com/gfm/). A polynomial time complexity issue in cmark-gfm's autolink extension may lead to unbounded resource exhaustion and subsequent denial of service.\n\n### Patches\n\nThis vulnerability has been patched in the following CommonMarker release:\n\n- v0.23.6\n\n### Workarounds\n\nDisable use of the autolink extension.\n\n### References\n\nhttps://github.com/gjtorikian/commonmarker/pull/190\nhttps://github.com/github/cmark-gfm/security/advisories/GHSA-cgh3-p57x-9q7q\nhttps://en.wikipedia.org/wiki/Time_complexity\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [github/cmark-gfm](https://github.com/github/cmark-gfm)\n\n### Acknowledgements\n\nWe would like to thank [Legit Security](https://www.legitsecurity.com) for reporting this vulnerability.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n\nCommonMarker uses `cmark-gfm` for rendering [Github Flavored Markdown](https://github.github.com/gfm/). A polynomial time complexity issue in cmark-gfm's autolink extension may lead to unbounded resource exhaustion and subsequent denial of service.\n\n### Patches\n\nThis vulnerability has been patched in the following CommonMarker release:\n\n- v0.23.6\n\n### Workarounds\n\nDisable use of the autolink extension.\n\n### References\n\nhttps://github.com/gjtorikian/commonmarker/pull/190\nhttps://github.com/github/cmark-gfm/security/advisories/GHSA-cgh3-p57x-9q7q\nhttps://en.wikipedia.org/wiki/Time_complexity\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [github/cmark-gfm](https://github.com/github/cmark-gfm)\n\n### Acknowledgements\n\nWe would like to thank [Legit Security](https://www.legitsecurity.com) for reporting this vulnerability.","format":"markdown","source":"ghsa"}],"published":"2022-09-21T18:18:05.000Z","modified":"2024-12-02T05:40:51.750Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.23.6"}],"ecosystem":"RubyGems","package":"commonmarker","purl":"pkg:gem/commonmarker","source":"ghsa"}],"references":[{"url":"https://github.com/gjtorikian/commonmarker/security/advisories/GHSA-4qw4-jpp4-8gvp","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/gjtorikian/commonmarker/pull/190","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/gjtorikian/commonmarker","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/gjtorikian/commonmarker/releases/tag/v0.23.6","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-4qw4-jpp4-8gvp","url":"https://github.com/advisories/GHSA-4qw4-jpp4-8gvp","licence":"CC-BY-4.0","modified":"2024-12-02T05:40:51.750Z"}],"updatedAt":"2026-11-25T22:56:41.135Z"}