Live threats

All CVEs / Kramdown Project

CVE-2021-28834Kramdown Project Kramdown

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Kramdown.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
kramdown_projectkramdown< 2.3.1
fedoraprojectfedora32
fedoraprojectfedora33
fedoraprojectfedora34
debiandebian_linux10.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.