# CVE-2025-32960: CUBA Generic REST API Vulnerable to Cross-Site Scripting (XSS) in the /files Endpoint

- Severity: Medium 6.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2025-04-22T16:59:27.000Z
- Modified: 2026-06-17T09:12:52.090Z
- Also known as: GHSA-88h5-34xw-2q56
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- cuba-platform restapi: < 7.2.7
- com.haulmont.addon.restapi:restapi-rest-api (Maven): before 7.2.7

## Every score

- GitHub_M: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N`

## References

- <https://github.com/cuba-platform/restapi/security/advisories/GHSA-88h5-34xw-2q56> (web)
- <https://github.com/jmix-framework/jmix/security/advisories/GHSA-x27v-f838-jh93> (web)
- <https://github.com/cuba-platform/restapi/commit/b3d599f6657d7e212fdb134a61ab5e0888669eb1> (web)
- <https://docs.jmix.io/jmix/files-vulnerabilities.html> (web)
- <https://docs.jmix.io/jmix/files-vulnerabilities.html#disable-files-endpoint-in-cuba-application> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-32960> (advisory)
- <https://github.com/cuba-platform/restapi> (package)

## Sources

- CVE List: [CVE-2025-32960](https://www.cve.org/CVERecord?id=CVE-2025-32960), CVE Terms of Use, modified 2025-04-23
- GitHub Advisory Database: [GHSA-88h5-34xw-2q56](https://github.com/advisories/GHSA-88h5-34xw-2q56), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-32960](https://nvd.nist.gov/vuln/detail/CVE-2025-32960), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-32960 · Whole record: https://cve.day/CVE-2025-32960.json · Rebuilt by cve.day 2026-11-25T22:58:56.840Z
