Medium

compliance-trestle Vulnerable to SSRF in Remote Fetching Subsystem

  • Disclosed: 28.05.2026
  • Updated: 11.10.2026 14:18

A source code audit led to the discovery of three significant security vulnerabilities in the trestle/core/remote/cache.py module.

Finding 1 (Critical): SSRF (CWE-918) The HTTPSFetcher._do_fetch() method passes a user-supplied URL directly to requests.get() without validation. This allows an attacker to perform Server-Side Request Forgery, targeting internal services or cloud metadata endpoints (e.g., 169.254.169.254).

Per rule 4.2.11 of the CVE CNA rules Finding 1 will be addressed in this advisory, while findings 2 & 3 will be addressed in separate advisories:


Multiple Path Traversal Vulnerabilities in Remote Fetching Subsystem

Finding 2 & 3 (High/Medium): Path Traversal (CWE-22) The caching logic for HTTPSFetcher and LocalFetcher fails to sanitize URI paths, allowing for arbitrary file reads via file:// or writing cached files outside the intended directory.

Impact: > These vulnerabilities can be chained to exfiltrate sensitive cloud credentials or compromise CI/CD environments.

Reproduction: > Please see the attached poc_ssrf_and_path_traversal.py and terminal_output.txt. 13 exploit vectors have been verified locally.

compliance-trestle_audit_2026-03-30.pdf poc_ssrf_and_path_traversal.py terminal_output.txt

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) compliance-trestle >= 4.0.0, < 4.0.3, < 3.12.2 4.0.3, 3.12.2

References

CVSS score 6.7/10
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N
Weakness (CWE)
CWE-918
Platform
Python (PyPI)
Package
compliance-trestle
Disclosed
28.05.2026
Updated
11.10.2026 14:18

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-2427 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-w76h-q7c6-jpjp - CC BY 4.0

Vulnerability history: compliance-trestle

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (9) in the archive
Total entries
9
First → latest
05.2026 09.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 7
  • Medium 2

Disclosures per year

  1. 2026: 9
Severity:
  1. High · 7.8 CVE-2026-57170 < 3.12.4, >= 4.0.0, < 4.1.0 3.12.4, 4.1.0
  2. High · 7.8 CVE-2026-54757 < 3.12.4, >= 4.0.0, < 4.1.0 3.12.4, 4.1.0
  3. High · 7.8 CVE-2026-46439 < 3.12.2, >= 4.0.0, < 4.0.3 3.12.2, 4.0.3
  4. compliance-trestle Vulnerable to SSRF in Remote Fetching Subsystem this entry
    Medium · 6.7 CVE-2026-46380 >= 4.0.0, < 4.0.3, < 3.12.2 4.0.3, 3.12.2
  5. High · 8.4 CVE-2026-46345 >= 4.0.0, < 4.0.3, < 3.12.2 4.0.3, 3.12.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.