Vulnerability · Published Aug 14, 2026 · Assigned by GitHub_M

CVE-2026-46439compliance-trestle Vulnerable to Remote Code Execution via Recursive Server-Side Template Injection (SSTI)

High 7.8

In plain English

A high-severity code injection in compliance-trestle from oscal-compass. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 19% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.3%top 81.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

compliance-trestle is a tooling platform for managing compliance as code. Versions prior to 3.12.2 and 4.0.3 have a Server-Side Template Injection (SSTI) vulnerability exists in the `trestle author jinja` command. The command recursively evaluates rendered templates, allowing an attacker to achieve arbitrary command execution with privileges of the running process by injecting malicious payloads into data fields (such as SSP documents or Lookup Tables). The vulnerability does not require attacker control of the template itself. Only attacker-controlled input data rendered into a trusted template is required. This distinction is critical: the template author may only intend to render plain text (e.g., `Title: {{ ssp.metadata.title }}`), but because of the recursive parsing, the data field itself becomes executable. The vulnerability is caused by recursive re-compilation and re-rendering of already-rendered output. Versions 3.12.3 and 4.0.3 patch the issue.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIcompliance-trestle3.12.2GHSA-gg2g-p7xc-qqmm
PyPIcompliance-trestle4.0.3GHSA-gg2g-p7xc-qqmm
PyPIcompliance-trestle3.12.2, 4.0.3PYSEC-2026-2425

Affected products (as reported)

VendorProductVersions
oscal-compass compliance-trestle < 3.12.2>= 4.0.0, < 4.0.3

Weakness: CWE-94, CWE-1336 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References