Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] Shouldn't the MIME type for SVG be 'image/svg+xml' instead of 'image/svg'? #11

Open
gonubana opened this issue Aug 11, 2022 · 1 comment

Comments

@gonubana
Copy link

It seem like the 0e456c2 commit used 'image/svg' instead of 'image/svg+xml'. I wasn't able to comment on that commit by the way.

@somenonymous
Copy link
Owner

Will look into it, but I left it image/svg assuming there are more similar dangerous subtypes of SVG. If you can confirm image/svg+xml is the only exploitable type and some browsers won't execute JS in other subtypes, we can change it to image/svg+xml. There is not much information or general consensus between browsers on this yet.

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

No branches or pull requests

2 participants