-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Bug] Apollo server v2 restarts when receives invalid multipart-request operation #1509
Comments
This is because Apollo Server uses a fork of |
As I said in #1703, shouldn't these security issues be reported so that people are aware when they install this package? If the apollo team intends to wait for the node 6 LTS period to end, apollo users are stuck with an insecure version of the upload server (unless the fixes are backported) for a long time to come. |
This should be fixed by #2054. As I've requested in that PR, I'd really appreciate anyone who is utilizing file uploads to try upgrading to the Ref: #2054 (comment) |
The |
I was testing my api with postman and found that if incorrect multipart request operation is executed the server just restarts.
Here's the example of request that I send to the server.
Notice that I'm passing file variable of type Upload to a me query (where it should not be), as a result I get an error
SyntaxError: Unexpected token } in JSON...
And the app exits with code 1I don't think that it's a desirable behaviour in such situation
The text was updated successfully, but these errors were encountered: