Vulnerabilities in pkg:maven/com.haulmont.cuba/cuba-web-toolkit

PACKAGE
Advisory Identifier: GHSA-rff7-964g-pppx
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/com.haulmont.cuba/cuba-web-toolkit

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/com.haulmont.cuba/cuba-web-toolkit. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-rff7-964g-pppx CVE-2018-20663 MODERATE The Reporting Addon for CUBA Platform has Persistent XSS

CVE-2018-20663 at a Glance

CVE Identifier CVE-2018-20663
GHSA Identifier GHSA-rff7-964g-pppx
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Cuba web toolkit
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

com.haulmont.cuba:cuba-web-toolkit fixed: 6.10.7
<dependency>
    <groupId>com.haulmont.cuba</groupId>
    <artifactId>cuba-web-toolkit</artifactId>
    <version>6.10.7</version>
</dependency>
com.haulmont.cuba:cuba-web-toolkit fixed: 6.9.8
<dependency>
    <groupId>com.haulmont.cuba</groupId>
    <artifactId>cuba-web-toolkit</artifactId>
    <version>6.9.8</version>
</dependency>
com.haulmont.cuba:cuba-web-toolkit fixed: 6.8.15
<dependency>
    <groupId>com.haulmont.cuba</groupId>
    <artifactId>cuba-web-toolkit</artifactId>
    <version>6.8.15</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2018-20663 Affected Cuba web toolkit Versions

3 component(s)
Fixed Versions:
6.10.76.9.86.8.15
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?
CVE-2018-20663 is a security vulnerability in Cuba web toolkit involving The Reporting Addon for CUBA Platform has Persistent XSS under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Cuba web toolkit versions are affected?
Affected versions include releases prior to 6.10.7, 6.9.8, 6.8.15 across affected packages: com.haulmont.cuba:cuba-web-toolkit.
What version fixes CVE-2018-20663?
Upgrading to 6.10.7, 6.9.8, 6.8.15 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cuba-web-toolkit affected?
Yes, com.haulmont.cuba:cuba-web-toolkit is affected in releases prior to 6.10.7, 6.9.8, 6.8.15. Upgrade your dependency to 6.10.7, 6.9.8, 6.8.15 or later.
What is the CVSS score of CVE-2018-20663?
CVE-2018-20663 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2018-20663?
CVE-2018-20663 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Maven dependencies for CVE-2018-20663?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.haulmont.cuba'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}