CVE-2026-6662

7.3

ericc-ch · copilot-api

The ericc-ch copilot-api contains a permissive cross-domain policy vulnerability in the Token Endpoint, allowing unauthorized cross-origin requests from untrusted domains.

Executive summary

The ericc-ch copilot-api is vulnerable to a permissive cross-domain policy flaw that allows remote, unauthenticated attackers to bypass origin validation.

Vulnerability

This vulnerability resides in the cors function within src/server.ts, which fails to properly validate the origin of incoming requests. An unauthenticated remote attacker can exploit this to perform unauthorized actions across domains.

Business impact

The exploitation of this vulnerability allows for unauthorized cross-domain interaction with the Token Endpoint. With a CVSS score of 7.3, this represents a significant risk, as it may lead to the exfiltration of sensitive tokens or the execution of unauthorized actions on behalf of users, potentially compromising the integrity of the authentication workflow.

Remediation

Immediate Action: As no official patch is currently identified, restrict access to the affected API endpoint via network-level controls or by implementing strict CORS policies within the application configuration.

Proactive Monitoring: Monitor server access logs for anomalous cross-origin requests or suspicious traffic patterns originating from unauthorized domains directed at the Token Endpoint.

Compensating Controls: Deploy a Web Application Firewall to block requests with malicious or unexpected Origin headers and enforce strict domain whitelisting at the gateway layer.

Exploitation status

Public Exploit Available: Yes, a published proof-of-concept exists as documented in the research write-up at https://github.com/August829/CVEP/issues/31.

Analyst recommendation

Given the availability of a public proof-of-concept and the potential for unauthorized access to the Token Endpoint, organizations should prioritize securing the affected API. Implement strict origin validation immediately to mitigate the risk of cross-domain attacks while awaiting a formal vendor patch.

Sources

Originally found and disclosed by Yu_Bao (VulDB User), per the CVE Program record.