CVE-2025-7066 Details
Description
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.
A cross-site scripting vulnerability has been identified in Jirafeau versions 4.5.0 prior to 4.6.1. The issue arises because Jirafeau allows browser previews for certain MIME types, including text/html, which can be exploited to execute harmful scripts. Although Jirafeau typically restricts previews for text files to prevent such attacks, it was possible to bypass this safeguard by uploading files with manipulated MIME types that included a comma and an additional type, such as text/html. This exploitation takes advantage of how browsers prioritize MIME types, potentially leading to the execution of malicious JavaScript.
Users can update to Jirafeau version 4.6.1 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gitlab.com/jirafeau/Jirafeau/-/commit/79464ec6276e8eb0e0b0ad597db02b85080d2b63 | [email protected] | Patch |
| https://www.cve.org/CVERecord?id=CVE-2022-30110 | [email protected] | Third Party Advisory |
| https://www.cve.org/CVERecord?id=CVE-2024-12326 | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| jirafeau jirafeau | < 4.6.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 14, 2025 | Initial Analysis | [email protected] |
| Jul 4, 2025 | New CVE Received | [email protected] |