Vulnerabilities in pkg:npm/copilot-api

PACKAGE
Advisory Identifier: GHSA-3vr4-cvmg-7fx4
Advisory Summary

CVE-2026-6874 is a LOW (CVSS 4.3) copilot-api has reliance on reverse vulnerability (CWE-350: Reliance on Reverse DNS Resolution for a Security-Critical Action) affecting Copilot api libraries in the npm ecosystem. The issue involves copilot-api has reliance on reverse dns resolution for a security-critical action. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/copilot-api

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/copilot-api. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-3vr4-cvmg-7fx4 CVE-2026-6874 LOW copilot-api has Reliance on Reverse DNS Resolution for a Security-Critical Action

CVE-2026-6874 at a Glance

CVE Identifier CVE-2026-6874
GHSA Identifier GHSA-3vr4-cvmg-7fx4
Severity LOW
CVSS v3.1 Base Score 4.3
CWE Classification CWE-350: Reliance on Reverse DNS Resolution for a Security-Critical Action
Affected Product Copilot api
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-6874

To remediate this vulnerability, upgrade all affected Copilot api dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

copilot-api fixed: Latest secure release
npm install copilot-api@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls copilot-api

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-6874, inspect your project dependencies using npm:

npm ls copilot-api

Analyze the terminal output to locate any version of Copilot api in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls copilot-api command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-350: Reliance on Reverse DNS Resolution for a Security-Critical Action, where the product performs reverse dns resolution on an ip address to obtain the hostname and make a security decision, but it does not properly ensure that the ip address is truly associated with the hostname. In Copilot api, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-6874 Affected Copilot api Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
copilot-api
npm
≤ 0.7.0

References

Frequently Asked Questions

What is CVE-2026-6874?
CVE-2026-6874 is a security vulnerability in Copilot api involving copilot-api has Reliance on Reverse DNS Resolution for a Security-Critical Action under CWE-350: Reliance on Reverse DNS Resolution for a Security-Critical Action.
Which Copilot api versions are affected?
Affected versions include releases prior to current release patches across affected packages: copilot-api.
What version fixes CVE-2026-6874?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is copilot-api affected?
Yes, copilot-api is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-6874?
CVE-2026-6874 has a CVSS v3.1 base score of 4.3 (LOW) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2026-6874?
CVE-2026-6874 is classified under CWE-350: Reliance on Reverse DNS Resolution for a Security-Critical Action (The product performs reverse DNS resolution on an IP address to obtain the hostname and make a security decision, but it does not properly ensure that the IP address is truly associated with the hostname.).
How can I check npm dependencies for CVE-2026-6874?
Run the dependency tree command: 'npm ls copilot-api'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3vr4-cvmg-7fx4",
  "modified" : "2026-04-30T20:53:46Z",
  "published" : "2026-04-23T00:31:20Z",
  "aliases" : [ "CVE-2026-6874" ],
  "summary" : "copilot-api has Reliance on Reverse DNS Resolution for a Security-Critical Action",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "copilot-api"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.7.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-6874"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/August829/CVEP/issues/32"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ericc-ch/copilot-api"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/submit/795212"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/359039"
  }, {
    "type" : "WEB",
    "url" : "https://vuldb.com/vuln/359039/cti"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-350" ],
    "severity" : "LOW",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-30T20:53:46Z",
    "nvd_published_at" : "2026-04-23T00:16:47Z"
  }
}