Json Hijacking Affecting spree_frontend package, versions <3.0.7, >=3.0.0.rc1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

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 ID SNYK-RUBY-SPREEFRONTEND-20477
  • published 10 Jan 2018
  • disclosed 22 Feb 2016
  • credit John Hawthorn

Introduced: 22 Feb 2016

CVE NOT AVAILABLE CWE-642 Open this link in a new tab

How to fix?

Upgrade spree_frontend to version 3.0.7 or higher.

Overview

spree_frontend is Frontend e-commerce functionality for the Spree project.

Affected versions of the package are vulnerable to Json Hijacking, due to returning a top level array, making the JSON interpreted as valid javascript.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
5.4 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    Low
  • Integrity (I)
    Low
  • Availability (A)
    None