Resources Downloaded over Insecure Protocol Affecting sinatra package, versions <2.2.3>=3.0.0, <3.0.4


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.61% (79th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-SINATRA-3150405
  • published29 Nov 2022
  • disclosed29 Nov 2022
  • creditmotoyasu-saburi

Introduced: 29 Nov 2022

CVE-2022-45442  (opens in a new tab)
CWE-494  (opens in a new tab)

How to fix?

Upgrade sinatra to version 2.2.3, 3.0.4 or higher.

Overview

Affected versions of this package are vulnerable to Resources Downloaded over Insecure Protocol due to improper validation of the Content-Disposition header when the filename was provided by the user. Exploiting this vulnerability results in a reflected file download (RFD) attack.

CVSS Scores

version 3.1