{"id":"CVE-2021-38295","details":"In Apache CouchDB, a malicious user with permission to create documents in a database is able to attach a HTML attachment to a document. If a CouchDB admin opens that attachment in a browser, e.g. via the CouchDB admin interface Fauxton, any JavaScript code embedded in that HTML attachment will be executed within the security context of that admin. A similar route is available with the already deprecated _show and _list functionality. This privilege escalation vulnerability allows an attacker to add or remove data in any database or make configuration changes. This issue affected Apache CouchDB prior to 3.1.2","aliases":["BIT-couchdb-2021-38295"],"modified":"2026-07-09T05:44:43.169136Z","published":"2021-10-14T20:15:09.017Z","references":[{"type":"ADVISORY","url":"https://docs.couchdb.org/en/stable/cve/2021-38295.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/apache/couchdb","events":[{"introduced":"0"},{"fixed":"572b68e724ddb53d0bd04f56b3e0a3ff0d05cdf1"}],"database_specific":{"cpe":"cpe:2.3:a:apache:couchdb:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"3.1.2"}],"source":"CPE_RANGE"}}],"versions":["3.1.1-RC2","3.1.1","3.1.1-RC1","3.1.0-RC2","3.1.0","3.1.0-RC1","3.0.0-RC1","2.3.1-last","2.3.0-RC1","2.3.0","2.2.0-RC1","2.1.0-RC1","2.1.0","2.0.0-RC4","2.0.0-RC3","2.0.0-RC1","fauxton"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-38295.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"}]}