The thoughtbot paperclip gem before 4.2.2 for Ruby does not consider the content-type value during media-type validation, which allows remote attackers to upload HTML documents and conduct cross-site scripting (XSS) attacks via a spoofed value, as demonstrated by image/jpeg.
{
"nvd_published_at": null,
"github_reviewed": true,
"github_reviewed_at": "2020-06-16T21:19:37Z",
"severity": "MODERATE",
"cwe_ids": [
"CWE-79"
]
}