CUBA Generic REST API Vulnerable to Cross-Site Scripting (XSS) in the /files Endpoint
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| cuba-platform | restapi | before 7.2.7 | 7.2.7 | Patch available | CNA |
| — | com.haulmont.addon.restapi:restapi-rest-api (Maven) | before 7.2.7 | 7.2.7 | Patch available | GHSA-88h5-34xw-2q56 |
- restapi Vendorcuba-platform Affected before 7.2.7 Fixed in 7.2.7 Patch available CNA
- com.haulmont.addon.restapi:restapi-rest-api (Maven) Vendor— Affected before 7.2.7 Fixed in 7.2.7 Patch available GHSA-88h5-34xw-2q56
Remediation
- Fix · CNA restapi (cuba-platform) Fixed in 7.2.7
- Fix · GHSA-88h5-34xw-2q56 com.haulmont.addon.restapi:restapi-rest-api (Maven) Fixed in 7.2.7 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-32960
- 2026-10-03 Alias added: GHSA-88h5-34xw-2q56
References
Other 6
- https://github.com/cuba-platform/restapi/security/advisories/GHSA-88h5-34xw-2q56
- https://github.com/jmix-framework/jmix/security/advisories/GHSA-x27v-f838-jh93
- https://github.com/cuba-platform/restapi/commit/b3d599f6657d7e212fdb134a61ab5e0888669eb1
- https://docs.jmix.io/jmix/files-vulnerabilities.html
- https://docs.jmix.io/jmix/files-vulnerabilities.html#disable-files-endpoint-in-cuba-application
- https://github.com/cuba-platform/restapi
More cuba-platform vulnerabilities
- TI-2025-23969 CUBA Vulnerable to Denial of Service (DoS) in the File Storage CVSS 3.1MEDIUM 6.5
- TI-2025-23971 CUBA JPA Web API Vulnerable to Cross-Site Scripting (XSS) in the /download Endpoint CVSS 3.1MEDIUM 6.4
Sources
- CVE-2025-32960 · CVE Program
- CVE-2025-32960 · NVD
- FIRST EPSS
- GHSA-88h5-34xw-2q56 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences