Description
Jan through 0.8.4, fixed in commit 3e1c1e7, contains a CORS misconfiguration vulnerability in its local API server that allows network-adjacent attackers to bypass trusted host restrictions by exploiting the server's replacement of user-configured trusted hosts with a wildcard that reflects arbitrary origins with credentials. Attackers on the local network or using DNS rebinding can reach the unauthenticated OpenAI-compatible API to perform inference, enumerate models, invoke MCP tools, and read cross-origin responses.
Published: 2026-07-24
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A CORS misconfiguration in the local API server of Jan reflects user‑specified origins with credentials, enabling the server to replace configured trusted hosts with a wildcard. This flaw allows attackers to access the unauthenticated OpenAI‑compatible API endpoints and to perform inference tasks, enumerate available models, invoke MCP tools, and read cross‑origin responses that would normally be restricted.

Affected Systems

The vulnerability is present in Jan versions up to and including 0.8.4. The official fix is included in commit 3e1c1e7 which restores proper trusted host handling. Users should verify the installed version and apply the update if they are running a vulnerable release.

Risk and Exploitability

The CVSS score is 5.3, indicating a moderate impact level. The EPSS score is listed as less than 1%, suggesting a very low probability of exploitation in the near term. The flaw is not listed in CISA’s KEV catalog. Attackers would need to be on the local network or use DNS rebinding techniques to reach the local API server. Once they succeed, they can perform unauthorized API calls with credential leakage, enabling misuse of the proprietary model service.

Generated by OpenCVE AI on August 3, 2026 at 20:09 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the JAN update containing commit 3e1c1e7 which fixes the CORS configuration flaw
  • Upgrade to the latest Jan release if the patch is unavailable
  • Configure the API server to accept connections only from trusted hosts and disable the OpenAI‑compatible endpoint for local network traffic

Generated by OpenCVE AI on August 3, 2026 at 20:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 25 Jul 2026 11:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 24 Jul 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Janhq
Janhq jan
Vendors & Products Janhq
Janhq jan

Fri, 24 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Description Jan through 0.8.4, fixed in commit 3e1c1e7, contains a CORS misconfiguration vulnerability in its local API server that allows network-adjacent attackers to bypass trusted host restrictions by exploiting the server's replacement of user-configured trusted hosts with a wildcard that reflects arbitrary origins with credentials. Attackers on the local network or using DNS rebinding can reach the unauthenticated OpenAI-compatible API to perform inference, enumerate models, invoke MCP tools, and read cross-origin responses.
Title Jan Local API Server CORS Origin Reflection via 0.0.0.0 Binding
Weaknesses CWE-183
CWE-942
References
Metrics cvssV3_1

{'score': 6.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-25T10:30:04.900Z

Reserved: 2026-07-23T19:22:30.643Z

Link: CVE-2026-66005

cve-icon Vulnrichment

Updated: 2026-07-24T15:32:24.318Z

cve-icon NVD

Status : Deferred

Published: 2026-07-24T15:19:07.203

Modified: 2026-07-30T20:16:05.187

Link: CVE-2026-66005

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T20:15:04Z

Weaknesses
  • CWE-183

    Permissive List of Allowed Inputs

  • CWE-942

    Permissive Cross-domain Security Policy with Untrusted Domains