Security context

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

ruby/rubygems
master @ 2a41608
4
Fixes
3
CVEs
HIGH
Peak severity
25.0%
Coverage
Highlights
Path Traversal: 2 prior fixes. Scrutinize any change in this area.
Gem::Installer: most-fixed (1 issue). Treat as high-risk during review.
2 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

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

Path Traversal: Gem installation paths and bindir resolution can be manipulated via directory traversal sequences if destination paths are not strictly canonicalized and verified against the gem's root prefix.
Path Traversal: Gem executables defined in specifications are vulnerable to directory traversal during pre-install validation if they are not constrained to strict basename checks.
Auth Bypass: Support for older package formats can result in silent bypasses of the configured security trust policy if verification logic does not explicitly forward the security policy to legacy handlers.