{"id":"CVE-2025-32961","aliases":["CVE-2025-32961","GHSA-hg25-w3vg-7279"],"related":[],"kind":"vulnerability","state":"published","title":"CUBA JPA Web API Vulnerable to Cross-Site Scripting (XSS) in the /download Endpoint","summary":"The Cuba JPA web API enables loading and saving any entities defined in the application data model by sending simple HTTP requests. Prior to version 1.1.1, 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 1.1.1. A workaround is provided on the Jmix documentation website.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The Cuba JPA web API enables loading and saving any entities defined in the application data model by sending simple HTTP requests. Prior to version 1.1.1, 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 1.1.1. 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 JPA Web API are typically accessible only to authenticated users.\n\n### Patches\n\nThe problem has been fixed in CUBA JPA Web API add-on 1.1.1.\n\n### Workarounds\n\nA workaround for those who are unable to upgrade: [Disable Files Endpoint in CUBA Application](https://docs.jmix.io/jmix/files-vulnerabilities.html#disable-files-endpoint-in-cuba-application).\n\n### References\n\n[Files Functionality Vulnerabilities :: Jmix Documentation](https://docs.jmix.io/jmix/files-vulnerabilities.html)\n\nSimilar vulnerability in Jmix: [XSS in the /files Endpoint of the Generic REST API · Advisory · jmix-framework/jmix](https://github.com/jmix-framework/jmix/security/advisories/GHSA-x27v-f838-jh93)","format":"markdown","source":"ghsa"},{"lang":"es","text":"La API web de Cuba JPA permite cargar y guardar cualquier entidad definida en el modelo de datos de la aplicación mediante el envío de solicitudes HTTP simples. Antes de la versión 1.1.1, 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 1.1.1. Se ofrece un workaround en el sitio web de documentación de Jmix.","source":"nvd"}],"published":"2025-04-22T17:00:27.000Z","modified":"2026-06-17T09:12:52.187Z","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"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 1.1.1","status":"affected"}],"vendor":"cuba-platform","product":"jpawebapi","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.1.1"}],"ecosystem":"Maven","package":"com.haulmont.addon.jpawebapi:jpawebapi-jpawebapi","purl":"pkg:maven/com.haulmont.addon.jpawebapi/jpawebapi-jpawebapi","source":"ghsa"}],"references":[{"url":"https://github.com/cuba-platform/jpawebapi/security/advisories/GHSA-hg25-w3vg-7279","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cuba-platform/jpawebapi/commit/78b837d7e2b12d0df69cef1bc6042ebf3bdaf22c","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://docs.jmix.io/jmix/files-vulnerabilities.html","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://docs.jmix.io/jmix/files-vulnerabilities.html#disable-files-endpoint-in-cuba-application","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jmix-framework/jmix/security/advisories/GHSA-x27v-f838-jh93","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32961","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cuba-platform/jpawebapi","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-22T18:53:35.584Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-32961","url":"https://www.cve.org/CVERecord?id=CVE-2025-32961","licence":"CVE Terms of Use","modified":"2025-04-23T15:59:02.433Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hg25-w3vg-7279","url":"https://github.com/advisories/GHSA-hg25-w3vg-7279","licence":"CC-BY-4.0","modified":"2025-04-23T15:21:43.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-32961","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32961","licence":"Public domain","modified":"2026-06-17T09:12:52.187Z"}],"updatedAt":"2026-11-25T22:58:56.841Z","epss":{"score":0.00332,"percentile":0.28408,"date":"2026-12-01T12:00:22.000Z"}}