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

Medium 6.4 Published Updated

Attackers can execute malicious JavaScript in browsers via the /files endpoint if a malicious file is uploaded, affecting Jmix REST API users.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-32951?

CVE-2025-32951 is a medium-severity cross-site scripting vulnerability in jmix-framework jmix, published on 22 Apr 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Jmix is a set of libraries and tools to speed up Spring Boot data-centric application development. In versions 1.0.0 to 1.6.1 and 2.0.0 to 2.3.4, 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 versions 1.6.2 and 2.4.0. A workaround is provided on the Jmix documentation website.

Weakness: CWE-79

Which versions are affected by CVE-2025-32951?

4 open source packages ship an affected version, including io.jmix.rest:jmix-rest. It affects 4 products.

PackageAffectedFixed in
io.jmix.rest:jmix-rest MavenFrom 1.0.01.6.2
io.jmix.rest:jmix-rest MavenFrom 1.0.01.6.2
io.jmix.rest:jmix-rest MavenFrom 2.0.02.4.0
io.jmix.rest:jmix-rest MavenFrom 2.0.02.4.0

Products include Haulmont Cuba Platform, Haulmont Cuba Rest Api, Haulmont Jmix Framework, Haulmont Jpa Web Api.

How do I fix CVE-2025-32951?

Upgrade io.jmix.rest:jmix-rest to a fixed version for your release line: 1.6.2 or 2.4.0.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-32951 being exploited?

There is no known exploitation of CVE-2025-32951 in the wild and no public exploit code.

Sources

Also known as GHSA-x27v-f838-jh93.

Is CVE-2025-32951 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free