Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-hg25-w3vg-7279

Опубликовано: 22 апр. 2025
Источник: github
Github: Прошло ревью
CVSS3: 6.4

Описание

XSS in the /download Endpoint of the JPA Web API

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

Пакеты

Наименование

com.haulmont.addon.jpawebapi:jpawebapi-jpawebapi

maven
Затронутые версииВерсия исправления

< 1.1.1

1.1.1

EPSS

Процентиль: 23%
0.00075
Низкий

6.4 Medium

CVSS3

Дефекты

CWE-79

Связанные уязвимости

CVSS3: 6.4
nvd
10 месяцев назад

The Cuba JPA web API enables loading and saving any entities defined in the application data model by sending simple HTTP requests. Prior to version 1.1.1, 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 1.1.1. A workaround is provided on the Jmix documentation website.

EPSS

Процентиль: 23%
0.00075
Низкий

6.4 Medium

CVSS3

Дефекты

CWE-79