CVE-2025-32960
JSON

6.4medium

CUBA Generic REST API Vulnerable to Cross-Site Scripting (XSS) in the /files Endpoint

Severity
6.4medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.33% (higher than 28% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-88h5-34xw-2q56

Description

The CUBA REST API add-on performs operations on data and entities. Prior to version 7.2.7, the input parameter, which consists of a file path and name, can be manipulated to return the Content-Type header with text/html if the name part ends with .html. This could allow malicious JavaScript code to be executed in the browser. For a successful attack, a malicious file needs to be uploaded beforehand. This issue has been patched in version 7.2.7. A workaround is provided on the Jmix documentation website.

Affected

Product or packageVersionsReported by
cuba-platform restapi< 7.2.7CVE List
com.haulmont.addon.restapi:restapi-rest-api (Maven)before 7.2.7GitHub Advisory Database

All scores

GitHub_M6.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
GitHub6.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

The CUBA REST API add-on performs operations on data and entities. Prior to version 7.2.7, the input parameter, which consists of a file path and name, can be manipulated to return the Content-Type header with text/html if the name part ends with .html. This could allow malicious JavaScript code to be executed in the browser. For a successful attack, a malicious file needs to be uploaded beforehand. This issue has been patched in version 7.2.7. A workaround is provided on the Jmix documentation website.

GitHub Advisory Database
Impact

The input parameter, which consists of a file path and name, can be manipulated to return the Content-Type header with text/html if the name part ends with .html. This could allow malicious JavaScript code to be executed in the browser. For a successful attack, a malicious file needs to be uploaded beforehand.

The severity of the vulnerability is mitigated by the fact that the application UI and the generic REST API are typically accessible only to authenticated users.

Patches

The problem has been fixed in CUBA REST API add-on 7.2.7.

Workarounds

A workaround for those who are unable to upgrade: Disable Files Endpoint in CUBA Application.

References

Files Functionality Vulnerabilities :: Jmix Documentation

Similar vulnerability in Jmix: XSS in the /files Endpoint of the Generic REST API · Advisory · jmix-framework/jmix

NVD (es)

El complemento de la API REST de CUBA realiza operaciones con datos y entidades. Antes de la versión 7.2.7, el parámetro de entrada, que consiste en la ruta y el nombre del archivo, podía manipularse para devolver el encabezado Content-Type con text/html si el nombre terminaba en .html. Esto podría permitir la ejecución de código JavaScript malicioso en el navegador. Para que un ataque tenga éxito, es necesario cargar previamente un archivo malicioso. Este problema se ha corregido en la versión 7.2.7. Se ofrece un workaround en el sitio web de documentación de Jmix.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-32960 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-88h5-34xw-2q56 changed 2026-02-04CC-BY-4.0
NVDCVE-2025-32960 changed 2026-06-17Public domain