CVE-2026-6662 ericc-ch copilot-api Token Endpoint server.ts cors cross-domain policy
An attacker can bypass cross-domain restrictions in the copilot-api token endpoint due to permissive CORS settings, potentially enabling unauthorized cross-origin requests.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-6662?
CVE-2026-6662 is a medium-severity vulnerability in ericc-ch copilot-api, published on 20 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
A vulnerability was found in ericc-ch copilot-api up to 0.7.0. The impacted element is the function cors of the file src/server.ts of the component Token Endpoint. Performing a manipulation results in permissive cross-domain policy with untrusted domains. It is possible to initiate the attack remotely. The exploit has been made public and could be used.
Which versions are affected by CVE-2026-6662?
How do I fix CVE-2026-6662?
No fix has been published for CVE-2026-6662 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-6662 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-6662 exists.
Sources
Also known as GHSA-6j2q-j3c7-4w55.