Skip to content

Fix XSS in /store endpoint (CVE-2025-70849)#463

Merged
stefanprodan merged 1 commit intomasterfrom
fix-CVE-2025-70849
Mar 14, 2026
Merged

Fix XSS in /store endpoint (CVE-2025-70849)#463
stefanprodan merged 1 commit intomasterfrom
fix-CVE-2025-70849

Conversation

@stefanprodan
Copy link
Copy Markdown
Owner

@stefanprodan stefanprodan commented Mar 14, 2026

Doing this useless fix so people stop opening issues!

ref: #462

Set Content-Type to application/octet-stream in storeReadHandler
to prevent Go's content sniffing from serving HTML payloads as
text/html. Add X-Content-Type-Options: nosniff to prevent browsers
from overriding Content-Type via MIME sniffing, and
Content-Security-Policy: default-src 'none' to block script
execution as defense-in-depth.

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
@stefanprodan stefanprodan merged commit 83deb7f into master Mar 14, 2026
4 checks passed
@stefanprodan stefanprodan deleted the fix-CVE-2025-70849 branch March 14, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant