Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’) in Jirafeau

CVE Details

Basic Information

Title Improper Neutralization of Input During Web Page Generation (‘Cross-site Scripting’) in Jirafeau
Type cve
Published 2025-07-04T12:02:34.287Z
Modified 2025-07-04T12:02:34.287Z

Product Information

Vendor Jirafeau project
Product Jirafeau
Version 0

CVSS Information

Base Score 6.1 (MEDIUM)
Attack Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

AI Analysis

AI Description A cross-site scripting (XSS) vulnerability in Jirafeau allows attackers to bypass browser preview restrictions by manipulating MIME types, potentially enabling malicious scripts to execute.
AI Severity Medium
AI Vendor Jirafeau project
AI Product Jirafeau
AI Version 0

Affected Products

  • Jirafeau project Jirafeau 0

Additional Information

CWE List CWE-79
Source GitLab

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.

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.