CVE-2025-7066

Jirafeau normally prevents browser preview for text files due to the possibility that for example SVG and HTML documents could be exploited for cross site scripting. This was done by storing the MIME type of a file and allowing only browser preview for MIME types beginning with image (except for image/svg+xml, see CVE-2022-30110 and CVE-2024-12326), video and audio. However, it was possible to bypass this check by sending a manipulated MIME type containing a comma and an other MIME type like text/html (for example image/png,text/html). Browsers see multiple MIME types and text/html would takes precedence, allowing a possible attacker to do a cross-site scripting attack. The check for MIME types was enhanced to prevent a browser preview when the stored MIME type contains a comma.
Configurations

Configuration 1 (hide)

cpe:2.3:a:jirafeau:jirafeau:*:*:*:*:*:*:*:*

History

14 Aug 2025, 14:00

Type Values Removed Values Added
CPE cpe:2.3:a:jirafeau:jirafeau:*:*:*:*:*:*:*:*
First Time Jirafeau jirafeau
Jirafeau
References () https://gitlab.com/jirafeau/Jirafeau/-/commit/79464ec6276e8eb0e0b0ad597db02b85080d2b63 - () https://gitlab.com/jirafeau/Jirafeau/-/commit/79464ec6276e8eb0e0b0ad597db02b85080d2b63 - Patch
References () https://www.cve.org/CVERecord?id=CVE-2022-30110 - () https://www.cve.org/CVERecord?id=CVE-2022-30110 - Third Party Advisory
References () https://www.cve.org/CVERecord?id=CVE-2024-12326 - () https://www.cve.org/CVERecord?id=CVE-2024-12326 - Third Party Advisory

08 Jul 2025, 16:18

Type Values Removed Values Added
Summary
  • (es) Jirafeau normalmente impide la vista previa del navegador para archivos de texto debido a la posibilidad de que, por ejemplo, documentos SVG y HTML pudieran ser explotados para ataques de cross site scripting. Esto se lograba almacenando el tipo MIME de un archivo y permitiendo solo la vista previa del navegador para tipos MIME que empiezan por imagen (excepto para image/svg+xml, véanse CVE-2022-30110 y CVE-2024-12326), vídeo y audio. Sin embargo, era posible omitir esta comprobación enviando un tipo MIME manipulado que contenía una coma y otro tipo MIME como text/html (por ejemplo, image/png,text/html). Los navegadores ven múltiples tipos MIME y text/html tendría prioridad, lo que permitiría a un posible atacante realizar un ataque de cross site scripting. La comprobación de tipos MIME se mejoró para evitar la vista previa del navegador cuando el tipo MIME almacenado contiene una coma.

04 Jul 2025, 12:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-07-04 12:15

Updated : 2025-08-14 14:00


NVD link : CVE-2025-7066

Mitre link : CVE-2025-7066

CVE.ORG link : CVE-2025-7066


JSON object : View

Products Affected

jirafeau

  • jirafeau
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')