NetSight
medium6.4

CVE-2025-32951

io.jmix.rest:jmix-rest allows XSS in the /files Endpoint of the Generic REST API

Impact

### Impact 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. The 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. ### Patches The problem has been fixed in Jmix 1.6.2+ and 2.4.0+. ### Workarounds A 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).

Affected packages

EcosystemPackageAffectedFixed in
mavenio.jmix.rest:jmix-rest>= 1.0.0, < 1.6.21.6.2

Affected products

VendorProductAffected versions
HaulmontCuba Platform
from 6.2.0 before 7.2.23
HaulmontCuba Rest Api
from 7.1.1 before 7.2.7
HaulmontJmix Framework
from 1.0.0 before 1.6.2
from 2.0.0 before 2.4.0
HaulmontJpa Web Api
from 1.0.0 before 1.1.1

Weakness classification

References