Does file uploads in graphql-yoga has any security threats to the application? #2346
Sooryajagadeesan
started this conversation in
General
Replies: 1 comment 1 reply
-
Apollo Server doesn't handle multipart requests by itself. Node specific graphql-upload parses the multipart request and passes it to Apollo Server, and it is too late for Apollo Server to do the checks for CSRF prevention. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the graphql-yoga documentation, in file uploads page, there is no mentioning about the security threats with file uploads in graphql-yoga, But with apollo/server, they are not suggesting file uploads with apollo/server package. And another point to note is that, graphql-yoga uses a scalar called
File
and apollo/server uses a scalar calledUpload
for the file field in the schema.Does graphql-yoga really has no security issues with file uploads or is it not mentioned in the docs ?
Beta Was this translation helpful? Give feedback.
All reactions