CVE-2025-59956: Overly Permissive Cors Origins

The server employs an overly permissive CORS configuration by hardcoding `"*"` in `AllowedOrigins`. This exposes the application to unintended cross-origin interactions. If the server lacks Host header validation and runs on localhost, this enables DNS rebinding attacks to access sensitive local data. Use a strictly validated, configurable list of allowed or

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2025-59956-overly-permissive-cors-origins --engine opengrep

Description

The server employs an overly permissive CORS configuration by hardcoding `"*"` in `AllowedOrigins`. This exposes the application to unintended cross-origin interactions. If the server lacks Host header validation and runs on localhost, this enables DNS rebinding attacks to access sensitive local data. Use a strictly validated, configurable list of allowed or