CVE-2025-70849: Generic Stored Xss Missing Content Type

Serving file content directly to an HTTP response without explicitly setting a `Content-Type` or `Content-Security-Policy` header can lead to Stored Cross-Site Scripting (XSS). Unauthenticated users who upload malicious HTML or JavaScript content may achieve XSS execution when browsers perform MIME-sniffing and render it as HTML. Explicitly configure headers

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Goβ
greprules fetch cve-2025-70849-generic-stored-xss-missing-content-type --engine opengrep

Description

Serving file content directly to an HTTP response without explicitly setting a `Content-Type` or `Content-Security-Policy` header can lead to Stored Cross-Site Scripting (XSS). Unauthenticated users who upload malicious HTML or JavaScript content may achieve XSS execution when browsers perform MIME-sniffing and render it as HTML. Explicitly configure headers