7.3
CWE
79
Advisory Published
Updated

CVE-2021-38295: XSS

First published: Thu Oct 14 2021(Updated: )

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

Credit: security@apache.org security@apache.org

Affected SoftwareAffected VersionHow to fix
Apache CouchDB<3.1.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2021-38295?

    CVE-2021-38295 is a vulnerability in Apache CouchDB that allows a malicious user to execute JavaScript code by attaching a specially crafted HTML document to a database.

  • What is the severity of CVE-2021-38295?

    The severity of CVE-2021-38295 is high, with a CVSS score of 7.3.

  • Which software is affected by CVE-2021-38295?

    Apache CouchDB versions up to and excluding 3.1.2 are affected by CVE-2021-38295.

  • How does CVE-2021-38295 exploit work?

    A malicious user with permission to create documents in a database can attach an HTML document containing JavaScript code. When a CouchDB admin opens this attachment, the embedded JavaScript code gets executed.

  • How can I fix CVE-2021-38295?

    To fix CVE-2021-38295, update Apache CouchDB to version 3.1.2 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203