A plain-language summary of this CVE is being written; the description below is the NVD's own text.
Description
NextChat versions from 2.15.8 through 2.16.1 contain an improper URL validation vulnerability in the proxy endpoint that allows attackers to obtain the server's OpenAI API key. The x-base-url header is validated using substring matching instead of hostname parsing, allowing any URL containing 'api.openai.com' to pass validation and receive the server's credentials in the Authorization header.
Affected products
The NVD has not attached product data to this record yet; the description names what is affected.
Weakness type
References
- github.com /ChatGPTNextWeb/NextChat
- github.com /ChatGPTNextWeb/NextChat/blob/v2.16.1/app/api/proxy.ts
- github.com /ChatGPTNextWeb/NextChat/issues/6814
- www.vulncheck.com /advisories/nextchat-2.15.8-through-2.16.1-openai-api-key-d…
Ingati scans your site every week and tells you when a CVE like this one affects something it found there.
Start scanning