You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: fixes response.attachment behavior leads to Content-Type Sniffing (#1904)
## Checklist
Added security-focused tests to verify:
1. Content-Type is preserved when already set
2. Content-Type is still set when not previously defined (backwards
compatibility)
3. The fix prevents XSS vulnerabilities with HTML and SVG files
credit "Luca Carettoni of Doyensec LLC" as [requested in the
advisory](https://github.com/koajs/koa/security/advisories/GHSA-c5vw-j4hf-j526).
0 commit comments