Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. commonmarker
  4. ›
  5. GMS-2022-4428

GMS-2022-4428: Unbounded resource exhaustion in cmark-gfm autolink extension may lead to denial of service

September 21, 2022

Impact

CommonMarker uses cmark-gfm for rendering Github Flavored Markdown. A polynomial time complexity issue in cmark-gfm’s autolink extension may lead to unbounded resource exhaustion and subsequent denial of service.

Patches

This vulnerability has been patched in the following CommonMarker release:

  • v0.23.6

Workarounds

Disable use of the autolink extension.

References

https://github.com/gjtorikian/commonmarker/pull/190 https://github.com/github/cmark-gfm/security/advisories/GHSA-cgh3-p57x-9q7q https://en.wikipedia.org/wiki/Time_complexity

For more information

If you have any questions or comments about this advisory:

  • Open an issue in github/cmark-gfm

Acknowledgements

We would like to thank Legit Security for reporting this vulnerability.

References

  • github.com/advisories/GHSA-4qw4-jpp4-8gvp
  • github.com/gjtorikian/commonmarker/pull/190
  • github.com/gjtorikian/commonmarker/releases/tag/v0.23.6
  • github.com/gjtorikian/commonmarker/security/advisories/GHSA-4qw4-jpp4-8gvp

Code Behaviors & Features

Detect and mitigate GMS-2022-4428 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.23.6

Fixed versions

  • 0.23.6

Solution

Upgrade to version 0.23.6 or above.

Source file

gem/commonmarker/GMS-2022-4428.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:25 +0000.