CVE-2026-6874 Details
Description
A vulnerability was determined in ericc-ch copilot-api up to 0.7.0. This impacts an unknown function of the file /token of the component Header Handler. Executing a manipulation of the argument Host can lead to reliance on reverse dns resolution. The attack may be performed from remote. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure but did not respond in any way.
A DNS rebinding vulnerability has been identified in ericc-ch copilot-api versions through 0.7.0. The issue arises in the Header Handler component, specifically within the /token file. The vulnerability allows remote attackers to manipulate the Host header of incoming requests, bypassing the browser's same-origin policy. This manipulation can be exploited to access the copilot-api running on localhost:4141, stealing the Copilot Bearer token, which is then exfiltrated to an attacker-controlled server.
To address this vulnerability, add middleware to validate the Host header of incoming requests, rejecting those with unexpected values. Replace the wildcard CORS policy with a restrictive origin policy that only allows known local origins. Bind the server to 127.0.0.1 to reduce network exposure, and add authentication to all routes to ensure that sensitive endpoints cannot be accessed without a valid API key.
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 23, 2026CISA-ADP
Assessed Apr 23, 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/32 | [email protected] | ExploitIssue TrackingRemedy |
| https://vuldb.com/submit/795212 | [email protected] | Technical Description |
| https://vuldb.com/vuln/359039 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/359039/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-350 | Reliance on Reverse DNS Resolution for a Security-Critical Action | [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 23, 2026 | New CVE Received | [email protected] |
Volerion