---
id: CVE-2026-46439
title: compliance-trestle is a tooling platform for managing compliance as code
summary: >-
  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…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
  - CWE-1336
vendor: compliance-trestle
product: compliance-trestle
affected:
  - compliance-trestle < 3.12.2
  - 'compliance-trestle >= 4.0.0, < 4.0.3'
patched:
  - compliance-trestle 3.12.2
  - compliance-trestle 4.0.3
published: '2026-08-14'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T20:09:01.757'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-46439'
references:
  - url: >-
      https://github.com/oscal-compass/compliance-trestle/commit/247fcce289f60103f3d8e28d8ec51a6986b94fb6
    label: security-advisories@github.com
  - url: >-
      https://github.com/oscal-compass/compliance-trestle/commit/7d107b3ac53caca7bde97a6278b23cd739d94525
    label: security-advisories@github.com
  - url: >-
      https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-gg2g-p7xc-qqmm
    label: security-advisories@github.com
  - url: >-
      https://github.com/pypa/advisory-database/tree/main/vulns/compliance-trestle/PYSEC-2026-2425.yaml
    label: security-advisories@github.com
  - url: >-
      https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-gg2g-p7xc-qqmm
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/oscal-compass/compliance-trestle'
tags:
  - nvd
  - osv
  - pip
epss: 0.00268
epssPercentile: 0.16857
aliases:
  - GHSA-gg2g-p7xc-qqmm
  - PYSEC-2026-2425
ecosystem: pip
ingestedAt: '2026-07-13T18:57:58.402Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-46439)

Affected packages:

- `compliance-trestle < 3.12.2`
- `compliance-trestle >= 4.0.0, < 4.0.3`

Patched in:

- `compliance-trestle 3.12.2`
- `compliance-trestle 4.0.3`

Source: https://osv.dev/vulnerability/GHSA-gg2g-p7xc-qqmm
