CVE-2024-8183: Fastapi Cors Wildcard Origins

A permissive CORS configuration was detected. Setting `allow_origins` to include `"*"` allows requests from any origin. If this server runs on localhost or inside a private network, this exposes the API to Cross-Site Read (CORS) attacks, potentially leaking sensitive information to attacker-controlled websites. Use specific origins driven by configuration in

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2024-8183-fastapi-cors-wildcard-origins --engine opengrep

Description

A permissive CORS configuration was detected. Setting `allow_origins` to include `"*"` allows requests from any origin. If this server runs on localhost or inside a private network, this exposes the API to Cross-Site Read (CORS) attacks, potentially leaking sensitive information to attacker-controlled websites. Use specific origins driven by configuration in