XSS in the /download Endpoint of the JPA Web APIGHSA-hg25-w3vg-7279
MEDIUMFix: cuba-platform/jpawebapi@78b837dGHSA-hg25-w3vg-7279 is a medium-severity (CVSS 6.4) Cross-site Scripting (XSS) vulnerability in com.haulmont.addon.jpawebapi:jpawebapi-jpawebapi. A fix is available for com.haulmont.addon.jpawebapi:jpawebapi-jpawebapi — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-hg25-w3vg-7279.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
com.haulmont.addon.jpawebapi:jpawebapi-jpawebapiReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
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 JPA Web API are typically accessible only to authenticated users.
Patches
The problem has been fixed in CUBA JPA Web API add-on 1.1.1.
Workarounds
A workaround for those who are unable to upgrade: Disable Files Endpoint in CUBA Application.
References
Files Functionality Vulnerabilities :: Jmix Documentation
Similar vulnerability in Jmix: XSS in the /files Endpoint of the Generic REST API · Advisory · jmix-framework/jmix
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | com.haulmont.addon.jpawebapi:jpawebapi-jpawebapi | all versions | 1.1.1com.haulmont.addon.jpawebapi:jpawebapi-jpawebapi:1.1.1 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.haulmont.addon.jpawebapi:jpawebapi-jpawebapi, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update com.haulmont.addon.jpawebapi:jpawebapi-jpawebapi to 1.1.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-hg25-w3vg-7279 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is GHSA-hg25-w3vg-7279 in your dependencies?
Find it across Maven, including transitive dependencies.