{"id":"CVE-2016-10546","aliases":["EUVD-2018-0259","GHSA-cgqv-x5cx-xvqh"],"status":"published","title":"Arbitrary Code Injection in pouchdb","description":"An arbitrary code injection vector was found in PouchDB 6.0.4 and lesser via the map/reduce functions used in PouchDB temporary views and design documents. The code execution engine for this branch is not properly sandboxed and may be used to run arbitrary JavaScript as well as system commands.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.02565,"percentile":0.85217,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-94"],"published":"2018-05-31T20:00:00Z","modified":"2026-06-17T00:39:54Z","fixes":[{"ecosystem":"npm","package":"pouchdb","fixed_in":["6.0.5"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"pouchdb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.0.5"}]}]},{"source":"osv","ecosystem":"npm","package":"pouchdb","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"6.0.5"}]}]}],"products":[{"vendor":"hackerone","product":"pouchdb node module"},{"vendor":"pouchdb","product":"pouchdb"}],"references":[{"url":"https://nodesecurity.io/advisories/143","tags":["x_refsource_MISC","x_transferred","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10546","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-cgqv-x5cx-xvqh","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/143","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2016-10546","description":"An arbitrary code injection vector was found in PouchDB 6.0.4 and lesser via the map/reduce functions used in PouchDB temporary views and design documents. The code execution engine for this branch is not properly sandboxed and may be used to run arbitrary JavaScript as well as system commands.","status":"published","published":"2018-05-31T20:00:00Z","modified":"2024-09-16T17:07:44.297Z","cwes":["CWE-94"],"updated_at":"2026-11-02T14:33:31.117878Z"}],"euvd":[{"id":"EUVD-2018-0259","description":"An arbitrary code injection vector was found in PouchDB 6.0.4 and lesser via the map/reduce functions used in PouchDB temporary views and design documents. The code execution engine for this branch is not properly sandboxed and may be used to run arbitrary JavaScript as well as system commands.","status":"published","published":"2018-05-31T20:00:00Z","modified":"2024-09-16T17:07:44Z","updated_at":"2026-11-03T00:55:45.275329Z"}],"ghsa":[{"id":"GHSA-cgqv-x5cx-xvqh","title":"Arbitrary Code Injection in pouchdb","description":"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.\n\n\n## Recommendation\n\nUpdate to version 6.0.5 or later.","status":"published","published":"2018-07-26T16:22:08Z","modified":"2023-01-09T05:03:01Z","cwes":["CWE-94"],"updated_at":"2026-11-02T14:36:04.396827Z"}],"nvd":[{"id":"CVE-2016-10546","description":"An arbitrary code injection vector was found in PouchDB 6.0.4 and lesser via the map/reduce functions used in PouchDB temporary views and design documents. The code execution engine for this branch is not properly sandboxed and may be used to run arbitrary JavaScript as well as system commands.","status":"published","published":"2018-05-31T20:29:01.69Z","modified":"2026-06-17T00:39:54.773Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:03:39.176887Z"}],"osv":[{"id":"GHSA-cgqv-x5cx-xvqh","title":"Arbitrary Code Injection in pouchdb","description":"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.\n\n\n## Recommendation\n\nUpdate to version 6.0.5 or later.","status":"published","published":"2018-07-26T16:22:08Z","modified":"2023-11-08T03:58:11.764985Z","cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:44.927642Z"}]}}
