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
Conclusion & alert: CVE-2021-38295 is rated Moderate Risk (53/100): CVSS High severity, with medium exploitation likelihood (EPSS 2.47%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 9.00% | 2.47% | -6.52% |
| 2 | 2026-03-28 | 6.98% | 9.00% | +2.01% |
| 3 | 2026-03-02 | — | 6.98% | — |
Full EPSS history (34 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.3 | 3.1 | HIGH |
|
1.3 | 5.9 | [email protected] |
| 6.0 | 2.0 | MEDIUM |
|
6.8 | 6.4 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2021-38295 |
suse
|
high | CVE-2021-38295 severity important: SUSE including 1 source package names (couchdb), 2 product×package rows across 2 product lines (SUSE OpenStack Cloud Crowbar 8, SUSE OpenStack Cloud Crowbar 9): Known Not Affected 2. | https://www.suse.com/security/cve/CVE-2021-38295/ |
ubuntu
|
medium | CVE-2021-38295 medium priority: Ubuntu including 1 source packages (couchdb), 9 status rows across 9 suites (focal, jammy, mantic, noble, oracular, plucky, questing, upstream, xenial): DNE 7, needs-triage 2. | https://ubuntu.com/security/CVE-2021-38295 |
| URL | Tags |
|---|---|
| https://docs.couchdb.org/en/stable/cve/2021-38295.html | Vendor Advisory |