Skip to main content
Vulnerability Database/CVE-2025-58401

CVE-2025-58401: Obsidian GitHub Copilot Plugin Token Exposure

CVE-2025-58401 is an information disclosure vulnerability in Obsidian GitHub Copilot Plugin that exposes GitHub API tokens in cleartext, enabling unauthorized account access. This article covers technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-58401 Overview

CVE-2025-58401 affects the Obsidian GitHub Copilot Plugin in versions prior to 1.1.7. The plugin stores the GitHub Application Programming Interface (API) token in cleartext on the local filesystem. An attacker with local access to the Obsidian vault configuration can read the token and perform unauthorized operations against the linked GitHub account. The weakness is classified under CWE-312: Cleartext Storage of Sensitive Information.

Critical Impact

Local attackers or malicious processes with read access to the plugin configuration can extract GitHub API tokens and act on the victim's GitHub account, including accessing private repositories.

Affected Products

  • Obsidian GitHub Copilot Plugin versions prior to 1.1.7
  • Obsidian vault configurations containing the plugin settings file
  • GitHub accounts linked through the vulnerable plugin

Discovery Timeline

  • 2025-09-05 - CVE-2025-58401 published to the National Vulnerability Database (NVD)
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-58401

Vulnerability Analysis

The Obsidian GitHub Copilot Plugin integrates GitHub Copilot features into the Obsidian note-taking application. To authenticate against GitHub services, the plugin stores an API token issued during the OAuth or personal access token setup flow.

In versions prior to 1.1.7, this token is written to disk in plaintext within the plugin configuration file located inside the Obsidian vault's .obsidian/plugins/ directory. The plugin does not encrypt the token, use operating system credential storage, or restrict file permissions beyond the vault defaults.

Any process or user that can read the vault directory can retrieve the token. Because GitHub API tokens inherit the scopes granted at issuance, the exposed token can grant repository read and write access, workflow modification, or organization-level permissions depending on scope.

Root Cause

The root cause is improper handling of sensitive credentials, matching [CWE-312]. The plugin relies on the plaintext configuration file format common to Obsidian plugins and does not integrate with a secrets vault, operating system keychain, or encrypted store before persisting the GitHub token.

Attack Vector

Exploitation requires local access to the file system where the Obsidian vault resides. Threat actors can obtain the token through several realistic paths:

  • Malware running under the user's account enumerating .obsidian/plugins/ for configuration files
  • Backup files, synchronization services, or cloud-stored vaults exposing the configuration externally
  • Multi-user systems where filesystem permissions allow other local accounts to read the vault

Once extracted, the attacker uses the token directly against the GitHub REST or GraphQL API without triggering credential-based login alerts.

No verified public proof-of-concept code is available. The vulnerability mechanism involves reading a cleartext JSON configuration file produced by the plugin. See the JVN Vulnerability Report JVN41633999 for the official coordination details.

Detection Methods for CVE-2025-58401

Indicators of Compromise

  • Access to files under .obsidian/plugins/obsidian-github-copilot/ by processes other than Obsidian
  • Unexpected GitHub audit log entries showing API activity from new IP addresses or user agents
  • New or modified GitHub personal access token usage patterns against repositories owned by the user

Detection Strategies

  • Inventory endpoints running Obsidian and verify installed plugin versions against the fixed release 1.1.7
  • Monitor file read operations targeting Obsidian plugin configuration directories by non-Obsidian processes
  • Correlate GitHub audit logs with endpoint telemetry to identify token usage from unexpected hosts

Monitoring Recommendations

  • Enable GitHub audit log streaming and alert on API token activity from unfamiliar source addresses
  • Track endpoint data loss prevention events for sensitive file reads inside user profile directories
  • Review backup and synchronization service logs for exposure of Obsidian vault directories

How to Mitigate CVE-2025-58401

Immediate Actions Required

  • Upgrade the Obsidian GitHub Copilot Plugin to version 1.1.7 or later across all user endpoints
  • Revoke and reissue any GitHub API tokens or OAuth grants previously configured in the plugin
  • Audit GitHub account activity for unauthorized repository access, pushes, or workflow changes

Patch Information

The maintainer released the fix in GitHub Release 1.1.7. Users should upgrade through the Obsidian community plugins interface or manually replace the plugin files with the patched release.

Workarounds

  • Remove the plugin and uninstall any stored tokens if upgrading is not immediately possible
  • Restrict filesystem permissions on the Obsidian vault directory to the owning user only
  • Issue GitHub tokens with the minimum required scopes and short expiration windows to limit impact
bash
# Verify installed plugin version and remove cached token file
cat ~/.obsidian/plugins/obsidian-github-copilot/manifest.json | grep version
rm ~/.obsidian/plugins/obsidian-github-copilot/data.json
# Then upgrade to 1.1.7 via Obsidian > Settings > Community plugins

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.