DB-GPT vulnerable to Cross-Site Request Forgery
High severity
GitHub Reviewed
Published
Mar 20, 2025
to the GitHub Advisory Database
•
Updated Mar 21, 2025
Description
Published by the National Vulnerability Database
Mar 20, 2025
Published to the GitHub Advisory Database
Mar 20, 2025
Last updated
Mar 21, 2025
Reviewed
Mar 21, 2025
In version 0.6.0 of eosphoros-ai/db-gpt, the
uvicorn
app created bydbgpt_server
uses an overly permissive instance ofCORSMiddleware
which sets theAccess-Control-Allow-Origin
to*
for all requests. This configuration makes all endpoints exposed by the server vulnerable to Cross-Site Request Forgery (CSRF). An attacker can exploit this vulnerability to interact with any endpoints of the instance, even if the instance is not publicly exposed to the network.References