CVE-2026-1466
JSON

6.1medium

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

Severity
6.1medium CVSS:3.1 by GitLab
Exploit likelihood
0.32% (higher than 26% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
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, CVE-2024-12326 and CVE-2025-7066), video and audio. However, it was possible to bypass this check by sending a manipulated HTTP request with an invalid MIME type like image. When doing the preview, the browser tries to automatically detect the MIME type resulting in detecting SVG and possibly executing JavaScript code. To prevent this, MIME sniffing is disabled by sending the HTTP header X-Content-Type-Options: nosniff.

Affected

Product or packageVersionsReported by
Jirafeau project Jirafeaubefore 4.7.1CVE List
jirafeau jirafeaubefore 4.7.1NVD

Classification

CWE-79

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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, CVE-2024-12326 and CVE-2025-7066), video and audio. However, it was possible to bypass this check by sending a manipulated HTTP request with an invalid MIME type like image. When doing the preview, the browser tries to automatically detect the MIME type resulting in detecting SVG and possibly executing JavaScript code. To prevent this, MIME sniffing is disabled by sending the HTTP header X-Content-Type-Options: nosniff.

NVD (es)

Jirafeau normalmente impide la previsualización del navegador para archivos de texto debido a la posibilidad de que, por ejemplo, documentos SVG y HTML pudieran ser explotados para cross-site scripting. Esto se hacía almacenando el tipo MIME de un archivo y permitiendo solo la previsualización del navegador para tipos MIME que comienzan con 'image' (excepto para 'image/svg+xml', ver CVE-2022-30110, CVE-2024-12326 y CVE-2025-7066), video y audio. Sin embargo, era posible eludir esta comprobación enviando una solicitud HTTP manipulada con un tipo MIME inválido como 'image'. Al realizar la previsualización, el navegador intenta detectar automáticamente el tipo MIME, lo que resulta en la detección de SVG y posiblemente la ejecución de código JavaScript. Para evitar esto, el MIME sniffing está deshabilitado enviando la cabecera HTTP X-Content-Type-Options: nosniff.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-1466 changed 2026-01-28CVE Terms of Use
NVDCVE-2026-1466 changed 2026-06-17Public domain