Vulnerabilities/

methodOverride Middleware Reflected Cross-Site Scripting in connect

Severity:
Low

Description

Connect is a stack of middleware that is executed in order in each request.

The “methodOverride” middleware allows the http post to override the method of the request with the value of the “_method” post key or with the header “x-http-method-override”.

Because the user post input was not checked, req.method could contain any kind of value.

Recommendation

Update the connect package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
connect
Anything's wrong? Let us know Last updated on January 09, 2023

This issue is available in SmartScanner Professional

See Pricing