CVE-2025-7066: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Jirafeau
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Jirafeauto a version that resolves this vulnerability.Fixed in 4.6.3 - Configuration
Apply the enhanced MIME-type checking so that browser preview is prevented when the stored MIME type contains a comma, and only allow preview for MIME types that begin with image (excluding image/svg+xml), video, and audio; ensure the image/svg+xml exception remains per CVE-2022-30110 and CVE-2024-12326.
Jirafeau file preview MIME-type handling MIME type comma handling and allowed preview prefixes = Disable browser preview when stored MIME type contains a comma; allow browser preview only for stored MIME types starting with image (except image/svg+xml), video, and audio (as stated, with exceptions for image/svg+xml related to CVE-2022-30110 and CVE-2024-12326)
Event History
Frequently Asked Questions
What is the severity of CVE-2025-7066?
CVE-2025-7066 has been classified as a moderate severity vulnerability due to its potential for exploitation through cross-site scripting.
How does CVE-2025-7066 affect Jirafeau?
CVE-2025-7066 affects Jirafeau by allowing the possibility of cross-site scripting through browser preview of certain text files.
What types of files are impacted by CVE-2025-7066?
CVE-2025-7066 impacts text files that could include SVG or HTML documents which are prone to cross-site scripting.
How do I mitigate CVE-2025-7066?
To mitigate CVE-2025-7066, ensure that previews are restricted to MIME types that begin with 'image/' and monitor for any unauthorized file access.
Is there a patch available for CVE-2025-7066?
As of now, there may not be a specific patch for CVE-2025-7066, but it is advisable to keep your Jirafeau installation updated to the latest version for security improvements.