Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. connect
  4. ›
  5. GMS-2013-13

GMS-2013-13: Cross-Site Scripting with connect.methodOverride()

June 27, 2013

The middleware overwrites req.method with the req.body[’_method’] value. When you don’t catch the error it responds with a default error msg: “Cannot [METHOD] [URL]” . Because this is not enough sanitized, you can force a Cross-Site Scripting in the response.

References

  • github.com/senchalabs/connect/issues/831

Code Behaviors & Features

Detect and mitigate GMS-2013-13 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.8.0

Fixed versions

  • 2.8.1

Solution

Upgrade to version 2.8.1 or above.

Source file

npm/connect/GMS-2013-13.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:08 +0000.