BreachSpiderVerified, not vibes

CVE-2025-6981 in Github Enterprise Server

Medium 4.3

An incorrect authorization vulnerability allowed unauthorized read access to the contents of internal repositories for contractor accounts when the Contractors API feature was enabled. The Contractors API is a rarely-enabled feature in private preview. This vulnerability affected all versions of GitHub Enterprise Se...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.14.3
CVSS v45.3
EPSS0.6%
EPSS percentile45th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Github Enterprise Server < 3.14.5 ≥ 3.14.0, < 3.14.15 ≥ 3.15.0, < 3.15.10 ≥ 3.16.0, < 3.16.6 ≥ 3.17.0, < 3.17.3

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

An incorrect authorization vulnerability allowed unauthorized read access to the contents of internal repositories for contractor accounts when the Contractors API feature was enabled. The Contractors API is a rarely-enabled feature in private preview. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.18 and was fixed in versions 3.14.15, 3.15.10, 3.16.6 and 3.17.3

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2025-6981
BreachSpider IDBS-2025-GLOBAL-037896-M
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Published2025-07-15
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-863: Incorrect Authorization

Software performs an authorization check incorrectly, allowing access beyond intended privileges.

Analysis AI-written, not human-reviewed

An incorrect authorization vulnerability in GitHub Enterprise Server allowed unauthorized read access to internal repositories for contractor accounts when the Contractors API feature was enabled. This issue affects versions prior to 3.18 and has been addressed in specific patch versions.

The vulnerability arises from improper authorization checks in the Contractors API, enabling unauthorized users to access internal repository contents if the API is enabled. The attack vector is primarily through API requests to the affected endpoints.

Questions

What is CVE-2025-6981?

An incorrect authorization vulnerability in GitHub Enterprise Server allowed unauthorized read access to internal repositories for contractor accounts when the Contractors API feature was enabled. This issue affects versions prior to 3.18 and has been addressed in specific patch versions.

What is the CVSS score for CVE-2025-6981?

CVE-2025-6981 has CVSS 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N. EPSS: 0.6%.

Is CVE-2025-6981 actively exploited?

No confirmed active exploitation of CVE-2025-6981 as of 2026-09-25.

How do I remediate CVE-2025-6981?

Priority: MEDIUM. Advisory: https://docs.github.com/en/[email protected]/admin/release-notes#3.14.15

What systems are affected by CVE-2025-6981?

CVE-2025-6981 affects Github Enterprise Server.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Github","product":"Enterprise Server","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.