Permissive Cross-domain Policy with Untrusted Domains Affecting copilot-api package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.02% (7th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Permissive Cross-domain Policy with Untrusted Domains vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-COPILOTAPI-16636640
  • published11 May 2026
  • disclosed20 Apr 2026
  • creditUnknown

Introduced: 20 Apr 2026

NewCVE-2026-6662  (opens in a new tab)
CWE-942  (opens in a new tab)

How to fix?

There is no fixed version for copilot-api.

Overview

copilot-api is a Turn GitHub Copilot into OpenAI/Anthropic API compatible server. Usable with Claude Code!

Affected versions of this package are vulnerable to Permissive Cross-domain Policy with Untrusted Domains via the CORS policy combined with the unauthenticated /token endpoint. An attacker can gain unauthorized access to sensitive information and perform actions on behalf of users by exploiting a permissive cross-domain policy that allows requests from untrusted domains.

References

CVSS Base Scores

version 4.0
version 3.1