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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-79"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/32xxx/CVE-2025-32960.json"
}[
{
"target": {
"function": "downloadFile",
"file": "modules/rest-api/src/com/haulmont/addon/restapi/api/controllers/FileDownloadController.java"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://github.com/cuba-platform/restapi/commit/b3d599f6657d7e212fdb134a61ab5e0888669eb1",
"digest": {
"function_hash": "54200476744645788036700556673148464282",
"length": 1224.0
},
"id": "CVE-2025-32960-2a796838"
},
{
"target": {
"file": "modules/global/src/com/haulmont/addon/restapi/api/config/RestApiConfig.java"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://github.com/cuba-platform/restapi/commit/b3d599f6657d7e212fdb134a61ab5e0888669eb1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"67182121229851448952844801850171581628",
"254701135178457847314084078399411955844",
"301316498773120368418498872189720552775",
"292111146108943648242344266082789239429",
"43116381516680375384121855875653714972",
"225113231891697709946925762082043570377"
]
},
"id": "CVE-2025-32960-677478c9"
},
{
"target": {
"file": "modules/rest-api/src/com/haulmont/addon/restapi/api/controllers/FileDownloadController.java"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://github.com/cuba-platform/restapi/commit/b3d599f6657d7e212fdb134a61ab5e0888669eb1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"254300683170600550642917213360086627492",
"285892161726166325320276996057450211142",
"332857588120453033035124379745475889410",
"286549100876390447999995882015714377773",
"2265221444674032896482196102923561914",
"101003447775308206494314163185329705853",
"255243430482979581250663692374347555985",
"336034280416598264724881359193451257931",
"172182862985667924364984343603054943426",
"167697077608159051115525551100261317647",
"97700280060694950511671376452218888334",
"222623144284906587510761705433814341520",
"10960967703388405574078425875764088791",
"61355570620212318915422324477359043720",
"156956546100249099853681764417798671101",
"22095937723749975876907027910505307312",
"159058960925332754364072282101566188078"
]
},
"id": "CVE-2025-32960-e7aed99b"
}
]
"2026-08-12T15:13:27Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-32960.json"