-
Notifications
You must be signed in to change notification settings - Fork 27.4k
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
next/image serves files other than images from public dir #23312
Milestone
Comments
timneutkens
changed the title
next/image - security issue? or bug
next/image serves files other than images from public dir
Mar 23, 2021
shuding
added
kind: bug
and removed
bug
Issue was opened via the bug report template.
labels
Mar 23, 2021
8 tasks
kodiakhq bot
pushed a commit
that referenced
this issue
Mar 24, 2021
…23366) If the upstream MIME type isn't prefixed with `image/`, the endpoint should directly response with a 400 error. ## Bug - [x] Fixes #23312 - [x] Integration tests added ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. ## Documentation / Examples - [ ] Make sure the linting passes
@shuding thanks - that was fast :o |
SokratisVidros
pushed a commit
to SokratisVidros/next.js
that referenced
this issue
Apr 20, 2021
…ercel#23366) If the upstream MIME type isn't prefixed with `image/`, the endpoint should directly response with a 400 error. ## Bug - [x] Fixes vercel#23312 - [x] Integration tests added ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. ## Documentation / Examples - [ ] Make sure the linting passes
flybayer
pushed a commit
to blitz-js/next.js
that referenced
this issue
Apr 29, 2021
…ercel#23366) If the upstream MIME type isn't prefixed with `image/`, the endpoint should directly response with a 400 error. ## Bug - [x] Fixes vercel#23312 - [x] Integration tests added ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. ## Documentation / Examples - [ ] Make sure the linting passes
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Next.js are you using?
10.0.7
What version of Node.js are you using?
14.15.1
What browser are you using?
chrome
What operating system are you using?
linux
How are you deploying your application?
next start
Describe the Bug
next/image
package should not serve other files rather then only images excluding svgExpected Behavior
only image are allowed, excluding svg - it is responsive by it self
To Reproduce
public/locales/en-GB/common.json
with some sample json contentnpm build
npm start
http://localhost:3000/_next/image?url=/locales/en-GB/common.json&w=640&q=75
The text was updated successfully, but these errors were encountered: