CVE-2018-20663: Cuba web toolkit Cross-Site Scripting Vulnerability
MODERATECVE-2018-20663 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Cuba web toolkit libraries in the Maven ecosystem. The issue involves the reporting addon for cuba platform has persistent xss. Remediation is available by upgrading affected packages to version 6.10.7, 6.9.8, 6.8.15.
CVE-2018-20663 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2018-20663
To remediate this vulnerability, upgrade all affected Cuba web toolkit dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.haulmont.cuba</groupId>
<artifactId>cuba-web-toolkit</artifactId>
<version>6.10.7</version>
</dependency>
<dependency>
<groupId>com.haulmont.cuba</groupId>
<artifactId>cuba-web-toolkit</artifactId>
<version>6.9.8</version>
</dependency>
<dependency>
<groupId>com.haulmont.cuba</groupId>
<artifactId>cuba-web-toolkit</artifactId>
<version>6.8.15</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.haulmont.cuba
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2018-20663, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.haulmont.cuba
Analyze the terminal output to locate any version of Cuba web toolkit in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.10.7), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.haulmont.cuba command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Cuba web toolkit, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-20663 Affected Cuba web toolkit Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.haulmont.cuba:cuba-web-toolkit
|
Maven |
≥ 6.10.0
< 6.10.7
|
6.10.7
|
|
com.haulmont.cuba:cuba-web-toolkit
|
Maven |
≥ 6.9.0
< 6.9.8
|
6.9.8
|
|
com.haulmont.cuba:cuba-web-toolkit
|
Maven |
< 6.8.15
|
6.8.15
|
References
Frequently Asked Questions
What is CVE-2018-20663?
Which Cuba web toolkit versions are affected?
What version fixes CVE-2018-20663?
Is cuba-web-toolkit affected?
What is the CVSS score of CVE-2018-20663?
What CWE is associated with CVE-2018-20663?
How can I check Maven dependencies for CVE-2018-20663?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rff7-964g-pppx",
"modified" : "2025-04-22T16:42:28Z",
"published" : "2022-05-14T01:40:50Z",
"aliases" : [ "CVE-2018-20663" ],
"summary" : "The Reporting Addon for CUBA Platform has Persistent XSS",
"details" : "The Reporting Addon (aka Reports Addon) through 2019-01-02 for CUBA Platform through 6.10.x has Persistent XSS via the \"Reports > Reports\" name field.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.haulmont.cuba:cuba-web-toolkit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.10.0"
}, {
"fixed" : "6.10.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.haulmont.cuba:cuba-web-toolkit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.9.0"
}, {
"fixed" : "6.9.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "com.haulmont.cuba:cuba-web-toolkit"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.8.15"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-20663"
}, {
"type" : "WEB",
"url" : "https://github.com/cuba-platform/cuba/issues/1741"
}, {
"type" : "WEB",
"url" : "https://github.com/cuba-platform/reports/issues/140"
}, {
"type" : "WEB",
"url" : "https://github.com/cuba-platform/cuba/commit/be6aa41ff36a365e2a995d37861e5acfcd32c2c5"
}, {
"type" : "WEB",
"url" : "https://github.com/cuba-platform/cuba/commit/e9f972beeae42dc6dbc3aaa6b6ecc9814c0eedb4"
}, {
"type" : "WEB",
"url" : "https://github.com/cuba-platform/cuba/commit/ec8784d8f596aa570604f4e5d5d4a7c3ae264c62"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cuba-platform/reports"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-22T16:42:28Z",
"nvd_published_at" : "2019-01-03T19:29:00Z"
}
}