CVE-2021-38295
publishedPrivilege escalation vulnerability when using HTML attachments
Package status and fixes
Description
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
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache CouchDB | Apache CouchDB to < 3.1.2 (affected · custom) | apache · cna |
| Apache Software Foundation | IBM Cloudant | IBM Cloudant to < 8201 (affected · custom) | apache · cna |
Weaknesses
1- Privilege escalation
References
1Provider assertions
2apache · cna
Privilege escalation vulnerability when using HTML attachments
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3bce43086cb2b98aca729babdf81e50596fc21c681cf8edb2db939e17b447b97
- Ingested
- 23 Sep 2026, 07:55:29 UTC
- Source record
- Official CVE record