CVE-2021-38295
CVE-2021-38295 is a high-severity vulnerability in Apache Couchdb with a CVSS 3.x base score of 7.3. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-79.
Key facts
- Severity: High (CVSS 3.x base score 7.3)
- CVSS v2: 6.0
- EPSS exploit prediction: 2% (83rd percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-79
- Affected product: Apache Couchdb
- Published:
- Last modified:
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
Frequently asked questions
- What is CVE-2021-38295?
- 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
- How severe is CVE-2021-38295?
- CVE-2021-38295 has a CVSS 3.x base score of 7.3, rated high severity. It is exploitable over local access with low attack complexity, requires low privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2021-38295 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (83rd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-38295?
- CVE-2021-38295 affects Apache Couchdb. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-38295?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2021-38295 published?
- CVE-2021-38295 was published on 2021-10-14 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:apache:couchdb:*:*:*:*:*:*:*:*
More vulnerabilities in Apache Couchdb
- CVE-2022-24706 — Critical (CVSS 9.8): In Apache CouchDB prior to 3.2.2, an attacker can access an improperly secured default installation without…
- CVE-2020-1955 — Critical (CVSS 9.8): CouchDB version 3.0.0 shipped with a new configuration setting that governs access control to the entire database…
- CVE-2017-12635 — Critical (CVSS 9.8): Due to differences in the Erlang-based JSON parser and JavaScript-based JSON parser, it is possible in Apache CouchDB…
- CVE-2018-14889 — High (CVSS 7.8): CouchDB in Vectra Networks Cognito Brain and Sensor before 4.3 contains a local code execution vulnerability.
- CVE-2016-8742 — High (CVSS 7.8): The Windows installer that the Apache CouchDB team provides was vulnerable to local privilege escalation. All files in…
- CVE-2018-17188 — High (CVSS 7.2): Prior to CouchDB version 2.3.0, CouchDB allowed for runtime-configuration of key components of the database. In some…
All CVEs affecting Apache Couchdb →
Other CWE-79 (Cross-site Scripting (XSS)) vulnerabilities
- CVE-2025-49410 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Imran Emu TC…
- CVE-2024-47875 — Critical (CVSS 10.0): DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMpurify was vulnerable to…
- CVE-2024-6886 — Critical (CVSS 10.0): Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in Gitea…
- CVE-2023-45144 — Critical (CVSS 10.0): com.xwiki.identity-oauth:identity-oauth-ui is a package to aid in building identity and service providers based on…
- CVE-2023-45138 — Critical (CVSS 10.0): Change Request is an pplication allowing users to request changes on a wiki without publishing the changes directly.…
- CVE-2022-4361 — Critical (CVSS 10.0): Keycloak, an open-source identity and access management solution, has a cross-site scripting (XSS) vulnerability in the…
Browse all CWE-79 (Cross-site Scripting (XSS)) vulnerabilities →