CVE-2016-10546: Arbitrary Code Injection in pouchdb
Summary
CVE-2016-10546: Arbitrary Code Injection in pouchdb. Affects pouchdb versions < 6.0.5. Fixed in 6.0.5. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
PouchDB is an open-source JavaScript database that enables developers to build applications that work offline and sync with a remote database when online. It provides a simple API for creating, reading, updating, and deleting documents. PouchDB is widely used in web and mobile applications to enable offline data storage and synchronization. However, certain versions of PouchDB are vulnerable to arbitrary code injection.
Vulnerability Detail
Affected versions of PouchDB do not properly sandbox the code execution engine used for temporary views and design documents. This allows an attacker to exploit the vulnerability and execute arbitrary code on the server. The attacker can potentially gain unauthorized access, manipulate data, or perform other malicious actions depending on the privileges of the server process. This vulnerability poses a significant risk to the confidentiality, integrity, and availability of the affected system.
How To Fix
Latest published version: 9.0.0 as of 22 Oct 2026
npm install pouchdb@9.0.0
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
6.0.5
This is the first release that contains the fix.
npm install pouchdb@6.0.5
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
The vulnerability in PouchDB allows for arbitrary code injection, which can lead to unauthorized access and other malicious actions. It is crucial to update PouchDB to version 6.0.5 or later to mitigate this vulnerability. For further support on vulnerability remediation, contact DevNack.com.
See every vulnerability recorded for pouchdb →
FAQ
PouchDB is an open-source JavaScript database that enables developers to build offline-capable applications that can sync with a remote database.
Arbitrary code injection is a security vulnerability that allows an attacker to insert and execute their own code within an application or system, potentially leading to unauthorized access or other malicious actions.
This vulnerability affects certain versions of PouchDB where the code execution engine used for temporary views and design documents is not properly sandboxed, allowing an attacker to execute arbitrary code on the server.
The potential consequences of this vulnerability include unauthorized access to sensitive data, data manipulation, and other malicious actions depending on the privileges of the server process.
To fix this vulnerability, update PouchDB to version 6.0.5 or later, which includes the necessary security patches to properly sandbox the code execution engine.