{"id":"CVE-2025-32960","aliases":["CVE-2025-32960","GHSA-88h5-34xw-2q56"],"related":[],"kind":"vulnerability","state":"published","title":"CUBA Generic REST API Vulnerable to Cross-Site Scripting (XSS) in the /files Endpoint","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","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.\n\n### Patches\n\nThe problem has been fixed in CUBA REST API add-on 7.2.7.\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":"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.","source":"nvd"}],"published":"2025-04-22T16:59:27.000Z","modified":"2026-06-17T09:12:52.090Z","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":"< 7.2.7","status":"affected"}],"vendor":"cuba-platform","product":"restapi","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"7.2.7"}],"ecosystem":"Maven","package":"com.haulmont.addon.restapi:restapi-rest-api","purl":"pkg:maven/com.haulmont.addon.restapi/restapi-rest-api","source":"ghsa"}],"references":[{"url":"https://github.com/cuba-platform/restapi/security/advisories/GHSA-88h5-34xw-2q56","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/jmix-framework/jmix/security/advisories/GHSA-x27v-f838-jh93","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cuba-platform/restapi/commit/b3d599f6657d7e212fdb134a61ab5e0888669eb1","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://nvd.nist.gov/vuln/detail/CVE-2025-32960","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cuba-platform/restapi","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-22T18:54:41.280Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-32960","url":"https://www.cve.org/CVERecord?id=CVE-2025-32960","licence":"CVE Terms of Use","modified":"2025-04-23T15:59:07.985Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-88h5-34xw-2q56","url":"https://github.com/advisories/GHSA-88h5-34xw-2q56","licence":"CC-BY-4.0","modified":"2026-02-04T03:45:50.677Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-32960","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32960","licence":"Public domain","modified":"2026-06-17T09:12:52.090Z"}],"updatedAt":"2026-11-25T22:58:56.840Z","epss":{"score":0.00332,"percentile":0.28409,"date":"2026-12-01T12:00:22.000Z"}}