Security context

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

mime-types/ruby-mime-types
main @ 7de6c8d
1
Fixes
0
CVEs
MEDIUM
Peak severity
Highlights
Remote Code Execution: 1 prior fix. Scrutinize any change in this area.
lib/mime/types/loader.rb: most-fixed (1 issue). Treat as high-risk during review.
0 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.

Remote Code Execution: The use of unsafe deserialization via JSON.load in the MIME types loader allowed arbitrary code execution during the loading of containerized or custom MIME type definition files. While corrected by switching to JSON.parse, any future additions of custom database loaders or dynamic definitions must strictly avoid unsafe marshaling or loading methods.