CVE-2021-28834Kramdown Project Kramdown
Critical 9.8 No auth needed
Follow: this CVE · Kramdown Project · Kramdown Project Kramdown We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.7% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Mar 19, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated.
What to do
- Apply the vendor's security update for Kramdown.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| RubyGems | kramdown |
≥ 1.16.0 < 2.3.1 |
2.3.1 |
gem "kramdown", ">= 2.3.1" |
Per OSV / GitHub Advisories (GHSA-52p9-v744-mwjj). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| kramdown_project | kramdown | < 2.3.1 |
| fedoraproject | fedora | 32 |
| fedoraproject | fedora | 33 |
| fedoraproject | fedora | 34 |
| debian | debian_linux | 10.0 |
Official advisories
- ruby4.0-rubygem-kramdown-2.4.0-1.17 on GA media · SUSE · openSUSE-SU-2026:10352-1 · Mar 13, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory
- gitlab.com Patch Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.debian.org Third Party Advisory