CVE-2026-44972: CWE-116: Improper Encoding or Escaping of Output in DataDog guarddog
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.
AI Analysis
Technical Summary
GuardDog versions 2.6.0 to 2.9.0 include attacker-controlled filenames, file locations, messages, and code snippets in their default human-readable output without escaping terminal control characters. This improper encoding or escaping (CWE-116) allows malicious PyPI packages to inject ANSI or OSC escape sequences into terminals or CI logs, potentially causing unintended terminal behavior or log manipulation. The vulnerability has a CVSS 3.1 base score of 5.0, reflecting medium severity with local attack vector, low complexity, no privileges required, but user interaction necessary and scope changed. No official patch or remediation guidance is currently provided by DataDog.
Potential Impact
The vulnerability allows a malicious PyPI package to inject terminal control sequences into the output of the GuardDog CLI tool, which could manipulate terminal display or CI logs. This may lead to confusion or misinterpretation of logs by analysts but does not directly result in code execution or system compromise. The impact is limited to confidentiality and integrity of terminal output and logs, with no reported availability impact. No known exploits are currently observed in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when analyzing untrusted PyPI packages with affected GuardDog versions. Consider running GuardDog in isolated environments or with output redirection to mitigate potential terminal manipulation. Monitor DataDog communications for updates on patches or official mitigations.
CVE-2026-44972: CWE-116: Improper Encoding or Escaping of Output in DataDog guarddog
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.
CVSS v3.1
Score 5.0medium
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
GuardDog versions 2.6.0 to 2.9.0 include attacker-controlled filenames, file locations, messages, and code snippets in their default human-readable output without escaping terminal control characters. This improper encoding or escaping (CWE-116) allows malicious PyPI packages to inject ANSI or OSC escape sequences into terminals or CI logs, potentially causing unintended terminal behavior or log manipulation. The vulnerability has a CVSS 3.1 base score of 5.0, reflecting medium severity with local attack vector, low complexity, no privileges required, but user interaction necessary and scope changed. No official patch or remediation guidance is currently provided by DataDog.
Potential Impact
The vulnerability allows a malicious PyPI package to inject terminal control sequences into the output of the GuardDog CLI tool, which could manipulate terminal display or CI logs. This may lead to confusion or misinterpretation of logs by analysts but does not directly result in code execution or system compromise. The impact is limited to confidentiality and integrity of terminal output and logs, with no reported availability impact. No known exploits are currently observed in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when analyzing untrusted PyPI packages with affected GuardDog versions. Consider running GuardDog in isolated environments or with output redirection to mitigate potential terminal manipulation. Monitor DataDog communications for updates on patches or official mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-08T16:23:33.263Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a170b58e29bf47b50c9070d
Added to database: 5/27/2026, 3:18:48 PM
Last enriched: 5/27/2026, 4:14:07 PM
Last updated: 5/29/2026, 3:31:40 PM
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.