# CVE-2025-32951: io.jmix.rest:jmix-rest allows XSS in the /files Endpoint of the Generic REST API

- 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.37%, higher than 32% of CVEs (2026-12-01)
- Published: 2025-04-22T16:55:13.000Z
- Modified: 2026-06-17T09:12:51.237Z
- Also known as: GHSA-x27v-f838-jh93
- Related: CVE-2025-32960
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Jmix is a set of libraries and tools to speed up Spring Boot data-centric application development. In versions 1.0.0 to 1.6.1 and 2.0.0 to 2.3.4, 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 versions 1.6.2 and 2.4.0. A workaround is provided on the Jmix documentation website.

(As written by CVE List.)

## Affected

- jmix-framework jmix: >= 1.0.0, < 1.6.2; >= 2.0.0, < 2.4.0
- io.jmix.rest:jmix-rest (Maven): from 1.0.0 before 1.6.2; from 2.0.0 before 2.4.0
- haulmont cuba_platform: from 6.2.0 before 7.2.23
- haulmont cuba_rest_api: from 7.1.1 before 7.2.7
- haulmont jmix_framework: from 1.0.0 before 1.6.2; from 2.0.0 before 2.4.0
- haulmont jpa_web_api: from 1.0.0 before 1.1.1

## 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`
- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/jmix-framework/jmix/security/advisories/GHSA-x27v-f838-jh93> (patch, vendor-advisory, web)
- <https://github.com/jmix-framework/jmix/issues/3804> (issue-tracking, web)
- <https://github.com/jmix-framework/jmix/issues/3836> (issue-tracking, web)
- <https://github.com/jmix-framework/jmix/commit/6a66aa3adb967159a30d703e80403406f4c8f7a2> (patch, web)
- <https://github.com/jmix-framework/jmix/commit/c589ef4e2b25620770b8036f4ad05f1a6250cb6a> (patch, web)
- <https://github.com/jmix-framework/jmix/commit/cc97e6ff974b9e7af8160fab39cc5866169daa37> (patch, web)
- <https://github.com/jmix-framework/jmix/commit/f4e6fb05bd245cf36f3e9319aaa0fcd540d024aa> (patch, web)
- <https://docs.jmix.io/jmix/files-vulnerabilities.html> (vendor-advisory, web)
- <https://docs.jmix.io/jmix/files-vulnerabilities.html#disable-files-endpoint-in-jmix-application> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-32951> (advisory)
- <https://github.com/jmix-framework/jmix> (package)

## Sources

- CVE List: [CVE-2025-32951](https://www.cve.org/CVERecord?id=CVE-2025-32951), CVE Terms of Use, modified 2025-05-27
- GitHub Advisory Database: [GHSA-x27v-f838-jh93](https://github.com/advisories/GHSA-x27v-f838-jh93), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-32951](https://nvd.nist.gov/vuln/detail/CVE-2025-32951), Public domain, modified 2026-06-17

---

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