Cross-site Scripting (XSS) Affecting sinatra package, versions <1.4.6, >=1.4.0.a


Severity

Recommended
0.0
medium
0
10

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

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 Learn

Learn about Cross-site Scripting (XSS) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUBY-SINATRA-20469
  • published10 Jan 2018
  • disclosed11 Jun 2014
  • creditAndy Brody

Introduced: 11 Jun 2014

CVE NOT AVAILABLE CWE-79  (opens in a new tab)

How to fix?

Upgrade sinatra to version 1.4.6 or higher.

Overview

sinatra is a DSL for quickly creating web applications in Ruby with minimal effort.

Affected versions of the package are vulnerable to reflected Cross-site Scripting (XSS). This occurs on the development 404 page, which does not validate the request path. This may allow attackers to create a specially crafted request that would execute arbitrary script code.

Details

<>

You can read more about Cross-site Scripting (XSS) on our blog.

CVSS Scores

version 3.1