Vulnerability in Github.com/rs/cors

CVE-2025-47908

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.

EPSS: 0.006 (44.8th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Affected products

References

Frequently asked questions

What is CVE-2025-47908?
CVE-2025-47908 is a high-severity vulnerability in Github.com/rs/cors, classified under CWE-1325: IMPROPERLY CONTROLLED SEQUENTIAL MEMORY ALLOCATION. CVSS score: 7.5/10. Published 2025-08-06.
How severe is CVE-2025-47908?
High severity. CVSS v3 base score is 7.5 out of 10.