Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

gettalong/kramdown
master @ 12b3d2e
2
Fixes
2
CVEs
CRITICAL
Peak severity
50.0%
Coverage
Highlights
Arbitrary File Read: 1 prior fix. Scrutinize any change in this area.
lib/kramdown/converter/syntax_highlighter/rouge.rb: most-fixed (1 issue). Treat as high-risk during review.
1 high-severity fix in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Remote Code Execution: Unrestricted constant lookup using 'const_get' during Rouge syntax highlighter initialization allowed attackers to instantiate arbitrary Ruby classes, leading to remote code execution (CVE-2021-28834).
Arbitrary File Read: Processing arbitrary 'template' options inline within documents allowed attackers to perform unauthorized file disclosure or potentially execute embedded Ruby code via unsafe template parsing (CVE-2020-14001).