{"id":"CVE-2025-32951","aliases":["CVE-2025-32951","GHSA-x27v-f838-jh93"],"related":["CVE-2025-32960"],"kind":"vulnerability","state":"published","title":"io.jmix.rest:jmix-rest allows XSS in the /files Endpoint of the Generic REST API","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe 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.\n\nThe 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. Additionally, the /files endpoint in Jmix requires specific permissions and is disabled by default. \n\n### Patches\n\nThe problem has been fixed in Jmix 1.6.2+ and 2.4.0+.\n\n### Workarounds\n\nA workaround for those who are unable to upgrade: [Disable Files Endpoint in Jmix Application](https://docs.jmix.io/jmix/files-vulnerabilities.html#disable-files-endpoint-in-jmix-application).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Jmix es un conjunto de librerías y herramientas para acelerar el desarrollo de aplicaciones centradas en datos en Spring Boot. En las versiones 1.0.0 a 1.6.1 y 2.0.0 a 2.3.4, el parámetro de entrada, que consiste en la ruta y el nombre del archivo, se puede manipular para devolver el encabezado Content-Type con text/html si el nombre termina 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 las versiones 1.6.2 y 2.4.0. Se ofrece un workaround en el sitio web de documentación de Jmix.","source":"nvd"}],"published":"2025-04-22T16:55:13.000Z","modified":"2026-06-17T09:12:51.237Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","score":6.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":">= 1.0.0, < 1.6.2","status":"affected"},{"version":">= 2.0.0, < 2.4.0","status":"affected"}],"vendor":"jmix-framework","product":"jmix","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.0.0","status":"affected","fixed":"1.6.2"}],"ecosystem":"Maven","package":"io.jmix.rest:jmix-rest","purl":"pkg:maven/io.jmix.rest/jmix-rest","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.4.0"}],"ecosystem":"Maven","package":"io.jmix.rest:jmix-rest","purl":"pkg:maven/io.jmix.rest/jmix-rest","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"6.2.0","fixed":"7.2.23"}],"vendor":"haulmont","product":"cuba_platform","cpe":"cpe:2.3:a:haulmont:cuba_platform:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"7.1.1","fixed":"7.2.7"}],"vendor":"haulmont","product":"cuba_rest_api","cpe":"cpe:2.3:a:haulmont:cuba_rest_api:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"1.0.0","fixed":"1.6.2"},{"status":"affected","introduced":"2.0.0","fixed":"2.4.0"}],"vendor":"haulmont","product":"jmix_framework","cpe":"cpe:2.3:a:haulmont:jmix_framework:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"1.0.0","fixed":"1.1.1"}],"vendor":"haulmont","product":"jpa_web_api","cpe":"cpe:2.3:a:haulmont:jpa_web_api:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/jmix-framework/jmix/security/advisories/GHSA-x27v-f838-jh93","tags":["patch","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jmix-framework/jmix/issues/3804","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jmix-framework/jmix/issues/3836","tags":["issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jmix-framework/jmix/commit/6a66aa3adb967159a30d703e80403406f4c8f7a2","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jmix-framework/jmix/commit/c589ef4e2b25620770b8036f4ad05f1a6250cb6a","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jmix-framework/jmix/commit/cc97e6ff974b9e7af8160fab39cc5866169daa37","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jmix-framework/jmix/commit/f4e6fb05bd245cf36f3e9319aaa0fcd540d024aa","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://docs.jmix.io/jmix/files-vulnerabilities.html","tags":["vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://docs.jmix.io/jmix/files-vulnerabilities.html#disable-files-endpoint-in-jmix-application","tags":["vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32951","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jmix-framework/jmix","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-24T19:56:29.979Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-32951","url":"https://www.cve.org/CVERecord?id=CVE-2025-32951","licence":"CVE Terms of Use","modified":"2025-05-27T17:18:23.124Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x27v-f838-jh93","url":"https://github.com/advisories/GHSA-x27v-f838-jh93","licence":"CC-BY-4.0","modified":"2026-02-04T03:35:10.832Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-32951","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32951","licence":"Public domain","modified":"2026-06-17T09:12:51.237Z"}],"updatedAt":"2026-11-25T22:58:56.839Z","epss":{"score":0.00368,"percentile":0.32707,"date":"2026-12-01T12:00:22.000Z"}}