Vulnerabilities in pkg:npm/@musistudio/claude-code-router

PACKAGE
Advisory Identifier: GHSA-8hmm-4crw-vm2c
Advisory Summary

CVE-2025-57755 is a HIGH (CVSS 0.0) @musistudio/claude-code-router has improper cors configuration vulnerability (CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains) affecting @musistudio/claude code router libraries in the npm ecosystem. The issue involves @musistudio/claude-code-router has improper cors configuration. Remediation is available by upgrading affected packages to version 1.0.34.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@musistudio/claude-code-router

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@musistudio/claude-code-router. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-8hmm-4crw-vm2c CVE-2025-57755 HIGH @musistudio/claude-code-router has improper CORS configuration

CVE-2025-57755 at a Glance

CVE Identifier CVE-2025-57755
GHSA Identifier GHSA-8hmm-4crw-vm2c
Severity HIGH
CVSS v3.1 Base Score 0.0
CWE Classification CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains
Affected Product @musistudio/claude code router
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 0.0

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

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

How to Fix CVE-2025-57755

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

@musistudio/claude-code-router fixed: 1.0.34
npm install @musistudio/claude-code-router@1.0.34
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 @musistudio/claude-code-router

How to Check if You Are Affected

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

npm ls @musistudio/claude-code-router

Analyze the terminal output to locate any version of @musistudio/claude code router in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.34), your application is affected.

Note: The npm ls @musistudio/claude-code-router 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-942: Permissive Cross-domain Security Policy with Untrusted Domains, where the product uses a web-client protection mechanism such as a content security policy (csp) or cross-domain policy file, but the policy includes untrusted domains with which the web client is allowed to communicate. In @musistudio/claude code router, 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

### Impact Due to improper Cross-Origin Resource Sharing (CORS) configuration, there is a risk that user API Keys or equivalent credentials may be exposed to untrusted domains. Attackers could exploit this misconfiguration to steal credentials, abuse accounts, exhaust quotas, or access sensitive data. ### Patches The issue has been patched in v1.0.34.

CVE-2025-57755 Affected @musistudio/claude code router Versions

1 component(s)
Fixed Versions:
1.0.34
Product / Package Ecosystem Affected Versions Fixed Version
@musistudio/claude-code-router
npm
< 1.0.34
1.0.34

References

Frequently Asked Questions

What is CVE-2025-57755?
CVE-2025-57755 is a security vulnerability in @musistudio/claude code router involving @musistudio/claude-code-router has improper CORS configuration under CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains.
Which @musistudio/claude code router versions are affected?
Affected versions include releases prior to 1.0.34 across affected packages: @musistudio/claude-code-router.
What version fixes CVE-2025-57755?
Upgrading to 1.0.34 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @musistudio/claude-code-router affected?
Yes, @musistudio/claude-code-router is affected in releases prior to 1.0.34. Upgrade your dependency to 1.0.34 or later.
What is the CVSS score of CVE-2025-57755?
CVE-2025-57755 has a CVSS v3.1 base score of 0.0 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N.
What CWE is associated with CVE-2025-57755?
CVE-2025-57755 is classified under CWE-942: Permissive Cross-domain Security Policy with Untrusted Domains (The product uses a web-client protection mechanism such as a Content Security Policy (CSP) or cross-domain policy file, but the policy includes untrusted domains with which the web client is allowed to communicate.).
How can I check npm dependencies for CVE-2025-57755?
Run the dependency tree command: 'npm ls @musistudio/claude-code-router'. 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-8hmm-4crw-vm2c",
  "modified" : "2025-08-21T19:17:34Z",
  "published" : "2025-08-21T14:54:24Z",
  "aliases" : [ "CVE-2025-57755" ],
  "summary" : "@musistudio/claude-code-router has improper CORS configuration",
  "details" : "### Impact\nDue to improper Cross-Origin Resource Sharing (CORS) configuration, there is a risk that user API Keys or equivalent credentials may be exposed to untrusted domains. Attackers could exploit this misconfiguration to steal credentials, abuse accounts, exhaust quotas, or access sensitive data.\n\n### Patches\nThe issue has been patched in v1.0.34.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@musistudio/claude-code-router"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.34"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/musistudio/claude-code-router/security/advisories/GHSA-8hmm-4crw-vm2c"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-57755"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/musistudio/claude-code-router/issues/549"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/musistudio/claude-code-router"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-942" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-08-21T14:54:24Z",
    "nvd_published_at" : "2025-08-21T17:15:31Z"
  }
}