SQL Injection Affecting pouchdb package, versions <1.1.0


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 npm:pouchdb:20131221
  • published 13 Mar 2017
  • disclosed 20 Dec 2013
  • credit Nolan Lawson

Introduced: 20 Dec 2013

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

How to fix?

Upgrade pouchdb to version 1.1.0 or higher.

Overview

pouchdb is PouchDB is a pocket-sized database. Affected versions of the package are vulnerable to SQL Injection due to not properly escaping the startkey/endkey in the allDocs() function. You can read more about SQL Injection on our blog.

CVSS Scores

version 3.1
Expand this section

Snyk

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