# GHSA-4qw4-jpp4-8gvp: Unbounded resource exhaustion in cmark-gfm autolink extension may lead to denial of service

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-09-21T18:18:05.000Z
- Modified: 2024-12-02T05:40:51.750Z
- Weaknesses: CWE-400

## Description

### Impact

CommonMarker 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.

### 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](https://github.com/github/cmark-gfm)

### Acknowledgements

We would like to thank [Legit Security](https://www.legitsecurity.com) for reporting this vulnerability.

(As written by GitHub Advisory Database.)

## Affected

- commonmarker (RubyGems): before 0.23.6

## References

- <https://github.com/gjtorikian/commonmarker/security/advisories/GHSA-4qw4-jpp4-8gvp> (web)
- <https://github.com/gjtorikian/commonmarker/pull/190> (web)
- <https://github.com/gjtorikian/commonmarker> (package)
- <https://github.com/gjtorikian/commonmarker/releases/tag/v0.23.6> (web)

## Sources

- GitHub Advisory Database: [GHSA-4qw4-jpp4-8gvp](https://github.com/advisories/GHSA-4qw4-jpp4-8gvp), CC-BY-4.0, modified 2024-12-02

---

Page: https://cve.day/GHSA-4qw4-jpp4-8gvp · Whole record: https://cve.day/GHSA-4qw4-jpp4-8gvp.json · Rebuilt by cve.day 2026-11-25T22:56:41.135Z
