GitHub Advisoryadvisory · Go

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

MEDIUM Published 2024-07-05 Modified 2025-08-06 Official page ↗
Aliases
CVE-2025-47908
Ecosystem
Go
Packages
github.com/rs/cors
Severity
Moderate
Weaknesses
CWE-770
Reviewed
2024-07-05

Affected packages

• Go github.com/rs/cors: >= 1.9.0, < 1.11.0 → fixed in 1.11.0

Description

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.

Related

Alias · CVE (1)

  • CVE-2025-47908 Middleware causes a prohibitive amount of heap allocations when processing malicious preflight requests that include a… vulnerability

Weakness · CWE (1)

  • CWE-770 Allocation of Resources Without Limits or Throttling weakness

References