CVE-2021-38295: In Apache CouchDB, a malicious user with permission to create documents in a database is able to attach a HTML
CVE-2021-38295 is a high-severity flaw (CVSS 7.3) affecting couchdb. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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 privil
Why this priority
- High severity
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.3 (High) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | Required |
| EPSS exploit chance | 2.7% (top 14%) |
| CISA exploited list | No |
| Weakness | CWE-79 |
| Published | 2021-10-14 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-38295?
couchdb: upgrade to 3.1.2. Exact commands for each OS are on this page.
Is CVE-2021-38295 being exploited?
CVE-2021-38295 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-38295 affect?
CVE-2021-38295 affects couchdb. Severity is high (CVSS 7.3). 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, an
How urgent is CVE-2021-38295?
Priority 52/100. High severity; On your watchlist
Related CVEs
- CVE-2023-45725 MEDIUM 5.7 UPGRADE Design document functions which receive a user http request object may expose authorization or session cookie
- CVE-2023-26268 MEDIUM 4.4 UPGRADE UPGRADE Design documents with matching document IDs, from databases on the same cluster, may share a mutable Javascrip
- CVE-2022-24706 CRITICAL 9.8 EXPLOITED UPGRADE Apache CouchDB Insecure Default Initialization of Resource Vulnerability
- CVE-2020-1955 CRITICAL 9.8 DOWNGRADE CouchDB version 3.0.0 shipped with a new configuration setting that governs access control to the entire datab
- CVE-2018-8007 HIGH 7.2 UPGRADE Apache CouchDB administrative users can configure the database server via HTTP(S)