{"answers":{"affected":"4 open source packages ship an affected version, including io.jmix.rest:jmix-rest. It affects 4 products.","exploited":"There is no known exploitation of CVE-2025-32951 in the wild and no public exploit code.","fix":"Upgrade io.jmix.rest:jmix-rest to a fixed version for your release line: 1.6.2 or 2.4.0.","what":"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."},"fix_prompt":"Check this codebase for CVE-2025-32951 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2025-32951 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- io.jmix.rest:jmix-rest (Maven): affected from 1.0.0; fixed in 1.6.2\n- io.jmix.rest:jmix-rest (Maven): affected from 1.0.0; fixed in 1.6.2\n- io.jmix.rest:jmix-rest (Maven): affected from 2.0.0; fixed in 2.4.0\n- io.jmix.rest:jmix-rest (Maven): affected from 2.0.0; fixed in 2.4.0\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-32951/ (Markdown: https://insights.sbomify.com/CVE-2025-32951/index.md)","id":"CVE-2025-32951","markdown":"https://insights.sbomify.com/CVE-2025-32951/index.md","name":"CVE-2025-32951","record":{"aliases":["GHSA-x27v-f838-jh93"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Java application framework","requires_auth":"low_privilege","summary":"Attackers can execute malicious JavaScript in browsers via the /files endpoint if a malicious file is uploaded, affecting Jmix REST API users.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cuba_platform","vendor":"haulmont"},{"product":"cuba_rest_api","vendor":"haulmont"},{"product":"jmix_framework","vendor":"haulmont"},{"product":"jpa_web_api","vendor":"haulmont"}],"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":"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.","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":"io.jmix.rest:jmix-rest allows XSS in the /files Endpoint of the Generic REST API","id":"CVE-2025-32951","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":4,"n_references":9,"next":{"headline":"io.jmix.localfs:jmix-localfs affected by DoS in the Local File Storage","id":"CVE-2025-32952"},"packages":[{"ecosystem":"Maven","fixed":["1.6.2"],"introduced":["1.0.0"],"last_affected":[],"package":"io.jmix.rest:jmix-rest","purl":null,"source":"GHSA-x27v-f838-jh93"},{"ecosystem":"Maven","fixed":["1.6.2"],"introduced":["1.0.0"],"last_affected":[],"package":"io.jmix.rest:jmix-rest","purl":"pkg:maven/io.jmix.rest/jmix-rest","source":"GHSA-x27v-f838-jh93"},{"ecosystem":"Maven","fixed":["2.4.0"],"introduced":["2.0.0"],"last_affected":[],"package":"io.jmix.rest:jmix-rest","purl":null,"source":"GHSA-x27v-f838-jh93"},{"ecosystem":"Maven","fixed":["2.4.0"],"introduced":["2.0.0"],"last_affected":[],"package":"io.jmix.rest:jmix-rest","purl":"pkg:maven/io.jmix.rest/jmix-rest","source":"GHSA-x27v-f838-jh93"}],"prev":{"headline":"io.jmix.localfs:jmix-localfs has a Path Traversal in Local File Storage","id":"CVE-2025-32950"},"products":["jmix"],"published":"2025-04-22","related":[{"cvss_score":6.5,"headline":"io.jmix.localfs:jmix-localfs affected by DoS in the Local File Storage","id":"CVE-2025-32952","kev_date_added":null,"published":"2025-04-22"},{"cvss_score":5.4,"headline":"The Reporting Addon for CUBA Platform has Persistent XSS","id":"CVE-2018-20663","kev_date_added":null,"published":"2019-01-03"}],"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":"US public information, NVD API terms","name":"NVD"},{"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-05-27","vendors":["jmix-framework"]},"summary":"Attackers can execute malicious JavaScript in browsers via the /files endpoint if a malicious file is uploaded, affecting Jmix REST API users.","url":"https://insights.sbomify.com/CVE-2025-32951/"}