CVE-2026-44972 GuardDog: Unsanitized human-readable scan output allows terminal escape injection from malicious package content

Medium 5.0 Published Updated

Attackers can inject terminal escape sequences via malicious package content, potentially executing code or manipulating logs in analyst terminals.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-44972?

CVE-2026-44972 is a medium-severity vulnerability in DataDog guarddog, published on 27 May 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

GuardDog is a CLI tool to identify malicious PyPI packages. From 2.6.0 to 2.9.0, GuardDog includes attacker-controlled filenames, file locations, messages, and code snippets in its default human-readable output without escaping terminal control characters. A malicious package can therefore inject ANSI or OSC escape sequences into analyst terminals or CI logs.

Weakness: CWE-116

Which versions are affected by CVE-2026-44972?

3 open source packages ship an affected version, including guarddog.

PackageAffectedFixed in
guarddog PyPIFrom 2.6.0 to 2.9.0None
guarddog PyPIFrom 2.6.0 to 2.9.0None
guarddog PyPIFrom 2.6.0 to 2.9.0None

How do I fix CVE-2026-44972?

No fix has been published for CVE-2026-44972 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-44972 being exploited?

There is no known exploitation of CVE-2026-44972 in the wild and no public exploit code.

Sources

Also known as GHSA-m5p4-gvpx-4mvr, PYSEC-2026-2506.

Is CVE-2026-44972 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free