CVE-2026-6662 Details
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.
A critical vulnerability exists in ericc-ch copilot-api versions through 0.7.0, specifically within the Token Endpoint's CORS configuration. The server's CORS policy is set to wildcard, allowing any domain to make cross-origin requests. This, combined with an open token endpoint that requires no authentication, creates a zero-click attack vector for stealing GitHub Copilot bearer tokens. The vulnerability can be exploited remotely, with the stolen tokens usable against the GitHub Copilot API.
To address this vulnerability, remove the unauthenticated token endpoint or require authentication. Additionally, restrict CORS to specific trusted origins and add bearer token authentication on all routes.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 20, 2026CISA-ADP
Assessed Apr 20, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/August829/CVEP/issues/31 | [email protected] | ExploitIssue TrackingRemedy |
| https://vuldb.com/submit/794601 | [email protected] | Technical Description |
| https://vuldb.com/vuln/358300 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/358300/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-346 | Origin Validation Error | [email protected] |
| CWE-942 | Permissive Cross-domain Policy with Untrusted Domains | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ericc-ch copilot-api | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Apr 20, 2026 | New CVE Received | [email protected] |
Volerion