Vulnerabilities in pkg:maven/com.haulmont.addon.restapi/restapi-rest-api
PACKAGECVE-2025-32960 is a MODERATE (CVSS 6.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Restapi rest api libraries in the Maven ecosystem. The issue involves xss in the /files endpoint of the generic rest api. Remediation is available by upgrading affected packages to version 7.2.7.
pkg:maven/com.haulmont.addon.restapi/restapi-rest-api
Vulnerability advisories affecting package pkg:maven/com.haulmont.addon.restapi/restapi-rest-api. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-88h5-34xw-2q56 | CVE-2025-32960 | MODERATE | XSS in the /files Endpoint of the Generic REST API |
CVE-2025-32960 at a Glance
Security Impact
CVSS: 6.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N).
How to Fix CVE-2025-32960
To remediate this vulnerability, upgrade all affected Restapi rest api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>com.haulmont.addon.restapi</groupId>
<artifactId>restapi-rest-api</artifactId>
<version>7.2.7</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=com.haulmont.addon.restapi
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-32960, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=com.haulmont.addon.restapi
Analyze the terminal output to locate any version of Restapi rest api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.2.7), your application is affected.
Note: The mvn dependency:tree -Dincludes=com.haulmont.addon.restapi command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Restapi rest api, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-32960 Affected Restapi rest api Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
com.haulmont.addon.restapi:restapi-rest-api
|
Maven |
< 7.2.7
|
7.2.7
|
References
Frequently Asked Questions
What is CVE-2025-32960?
Which Restapi rest api versions are affected?
What version fixes CVE-2025-32960?
Is restapi-rest-api affected?
What is the CVSS score of CVE-2025-32960?
What CWE is associated with CVE-2025-32960?
How can I check Maven dependencies for CVE-2025-32960?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-88h5-34xw-2q56",
"modified" : "2025-04-23T15:21:31Z",
"published" : "2025-04-22T16:59:27Z",
"aliases" : [ "CVE-2025-32960" ],
"summary" : "XSS in the /files Endpoint of the Generic REST API",
"details" : "### 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)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "com.haulmont.addon.restapi:restapi-rest-api"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "7.2.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cuba-platform/restapi/security/advisories/GHSA-88h5-34xw-2q56"
}, {
"type" : "WEB",
"url" : "https://github.com/jmix-framework/jmix/security/advisories/GHSA-x27v-f838-jh93"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-32960"
}, {
"type" : "WEB",
"url" : "https://github.com/cuba-platform/restapi/commit/b3d599f6657d7e212fdb134a61ab5e0888669eb1"
}, {
"type" : "WEB",
"url" : "https://docs.jmix.io/jmix/files-vulnerabilities.html"
}, {
"type" : "WEB",
"url" : "https://docs.jmix.io/jmix/files-vulnerabilities.html#disable-files-endpoint-in-cuba-application"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cuba-platform/restapi"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-22T16:59:27Z",
"nvd_published_at" : "2025-04-22T18:16:00Z"
}
}