{"answers":{"affected":"2 open source packages ship an affected version, including com.haulmont.addon.restapi:restapi-rest-api.","exploited":"There is no known exploitation of CVE-2025-32960 in the wild and no public exploit code.","fix":"Upgrade com.haulmont.addon.restapi:restapi-rest-api to 7.2.7 or later.","what":"CVE-2025-32960 is a medium-severity cross-site scripting vulnerability in cuba-platform restapi, published on 22 Apr 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-32960 and fix it if it is affected.\n\nWhat it is: CVE-2025-32960 is a medium-severity cross-site scripting vulnerability in cuba-platform restapi, published on 22 Apr 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-32960 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- com.haulmont.addon.restapi:restapi-rest-api (Maven): affected all versions; fixed in 7.2.7\n- com.haulmont.addon.restapi:restapi-rest-api (Maven): affected all versions; fixed in 7.2.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-32960/ (Markdown: https://insights.sbomify.com/CVE-2025-32960/index.md)","id":"CVE-2025-32960","markdown":"https://insights.sbomify.com/CVE-2025-32960/index.md","name":"CVE-2025-32960","record":{"aliases":["GHSA-88h5-34xw-2q56"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"CUBA REST API","requires_auth":"low_privilege","summary":"Attackers can execute malicious JavaScript in browsers via the /files endpoint if a malicious file is uploaded, affecting CUBA REST API users.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"CUBA Generic REST API Vulnerable to Cross-Site Scripting (XSS) in the /files Endpoint","id":"CVE-2025-32960","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":2,"n_references":5,"next":{"headline":"CUBA JPA Web API Vulnerable to Cross-Site Scripting (XSS) in the /download Endpoint","id":"CVE-2025-32961"},"packages":[{"ecosystem":"Maven","fixed":["7.2.7"],"introduced":["0"],"last_affected":[],"package":"com.haulmont.addon.restapi:restapi-rest-api","purl":null,"source":"GHSA-88h5-34xw-2q56"},{"ecosystem":"Maven","fixed":["7.2.7"],"introduced":["0"],"last_affected":[],"package":"com.haulmont.addon.restapi:restapi-rest-api","purl":"pkg:maven/com.haulmont.addon.restapi/restapi-rest-api","source":"GHSA-88h5-34xw-2q56"}],"prev":{"headline":"CUBA Vulnerable to Denial of Service (DoS) in the File Storage","id":"CVE-2025-32959"},"products":["restapi"],"published":"2025-04-22","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["cuba-platform"]},"summary":"Attackers can execute malicious JavaScript in browsers via the /files endpoint if a malicious file is uploaded, affecting CUBA REST API users.","url":"https://insights.sbomify.com/CVE-2025-32960/"}