Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/rs/cors
  4. ›
  5. GHSA-mh55-gqvf-xfwm

GHSA-mh55-gqvf-xfwm: Denial of service via malicious preflight requests in github.com/rs/cors

July 5, 2024

Middleware causes a prohibitive amount of heap allocations when processing malicious preflight requests that include a Access-Control-Request-Headers (ACRH) header whose value contains many commas. This behavior can be abused by attackers to produce undue load on the middleware/server as an attempt to cause a denial of service.

References

  • github.com/advisories/GHSA-mh55-gqvf-xfwm
  • github.com/rs/cors
  • github.com/rs/cors/commit/4c32059b2756926619f6bf70281b91be7b5dddb2
  • github.com/rs/cors/issues/170
  • github.com/rs/cors/pull/171

Code Behaviors & Features

Detect and mitigate GHSA-mh55-gqvf-xfwm 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 starting from 1.9.0 before 1.11.0

Fixed versions

  • 1.11.0

Solution

Upgrade to version 1.11.0 or above.

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

go/github.com/rs/cors/GHSA-mh55-gqvf-xfwm.yml

Spotted a mistake? Edit the file on GitLab.

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

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