CVE Database›CVE-2018-8014

CVE-2018-8014

tomcat: Insecure defaults in CORS filter enable 'supportsCredentials' for all origins

Loading…

Severity

Moderate

Red Hat Product Security

5.7

CVSS 3.0

Review impact separately from score.

Published · May 17, 2018

Updated · November 4, 2026

Description

The defaults settings for the CORS filter provided in Apache Tomcat 9.0.0.M1 to 9.0.8, 8.5.0 to 8.5.31, 8.0.0.RC1 to 8.0.52, 7.0.41 to 7.0.88 are insecure and enable 'supportsCredentials' for all origins. It is expected that users of the CORS filter will have configured it appropriately for their environment rather than using it in the default configuration. Therefore, it is expected that most users will not be impacted by this issue.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

When using the CORS filter, it is recommended to configure it explicitly for your environment. In particular, the combination of cors.allowed.origins = * and cors.support.credentials = True should be avoided as this can leave your application vulnerable to cross-site scripting (XSS). For details on configuring CORS filter, please refer to https://tomcat.apache.org/tomcat-7.0-doc/config/filter.html#CORS_Filter

CVSS / CWE

CVSS 3.0 · 5.7
CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N

CWE-284 · Improper Access Control