CVE-2026-75529: Flask Send File Missing Mimetype Or Attachment

Serving files using `send_file` without specifying `mimetype` or `as_attachment=True` can allow files with active extensions or polyglots to be served inline with attacker-controlled MIME types, leading to Cross-Site Scripting (XSS).

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-75529-flask-send-file-missing-mimetype-or-attachment --engine opengrep

Description

Serving files using `send_file` without specifying `mimetype` or `as_attachment=True` can allow files with active extensions or polyglots to be served inline with attacker-controlled MIME types, leading to Cross-Site Scripting (XSS).