GitHub Advisory Database
GHSA-cgqv-x5cx-xvqh
Arbitrary Code Injection in pouchdb
Details
Affected versions of pouchdb do not properly sandbox the code execution engine which executes the map/reduce functions for temporary views and design documents. Under certain circumstances, an attacker could uses this to run arbitrary code on the server.
Recommendation
Update to version 6.0.5 or later.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| npm | pouchdb | All versions before 6.0.5 (fixed in 6.0.5) |