SQL Injection Affecting pouchdb Open this link in a new tab package, versions <1.1.0

  • Attack Complexity


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


  • published

    13 Mar 2017

  • disclosed

    20 Dec 2013

  • credit

    Nolan Lawson

Introduced: 20 Dec 2013

CWE-89 Open this link in a new tab

How to fix?

Upgrade pouchdb to version 1.1.0 or higher.


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.