CVE-2025-32960: Restapi rest api Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-88h5-34xw-2q56
CVSS 6.4
CWE-79
Published
Advisory Summary

CVE-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.

CVE-2025-32960 at a Glance

CVE Identifier CVE-2025-32960
GHSA Identifier GHSA-88h5-34xw-2q56
Severity MODERATE
CVSS v3.1 Base Score 6.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Restapi rest api
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

com.haulmont.addon.restapi:restapi-rest-api fixed: 7.2.7
<dependency>
    <groupId>com.haulmont.addon.restapi</groupId>
    <artifactId>restapi-rest-api</artifactId>
    <version>7.2.7</version>
</dependency>
Verify Direct and Transitive Dependencies

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

### 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. ### Patches The problem has been fixed in CUBA REST API add-on 7.2.7. ### Workarounds A 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). ### References [Files Functionality Vulnerabilities :: Jmix Documentation](https://docs.jmix.io/jmix/files-vulnerabilities.html) Similar 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)

CVE-2025-32960 Affected Restapi rest api Versions

1 component(s)
Fixed Versions:
7.2.7
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?
CVE-2025-32960 is a security vulnerability in Restapi rest api involving XSS in the /files Endpoint of the Generic REST API under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Restapi rest api versions are affected?
Affected versions include releases prior to 7.2.7 across affected packages: com.haulmont.addon.restapi:restapi-rest-api.
What version fixes CVE-2025-32960?
Upgrading to 7.2.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is restapi-rest-api affected?
Yes, com.haulmont.addon.restapi:restapi-rest-api is affected in releases prior to 7.2.7. Upgrade your dependency to 7.2.7 or later.
What is the CVSS score of CVE-2025-32960?
CVE-2025-32960 has a CVSS v3.1 base score of 6.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2025-32960?
CVE-2025-32960 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Maven dependencies for CVE-2025-32960?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.haulmont.addon.restapi'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}