PT-2026-81902 · Unknown · Compliance-Trestle

·

CVE-2026-57170

·

Published

2026-08-25

·

Updated

2026-08-26

CVSS v3.1

7.8

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Compliance-trestle versions prior to 3.12.4 Compliance-trestle versions 4.0.0 through 4.0.3
Description Custom Jinja2 include tags mdsection include and md clean include re-parse the content of included Markdown files as template code within a non-sandboxed environment. This allows server-side template injection (SSTI), a vulnerability where an attacker injects malicious template directives that are executed by the server, potentially leading to arbitrary code execution. The MDSectionInclude and MDCleanInclude tags in Trestle/core/jinja/tags.py pass file content to the Parser(self.environment, ...).parse() function using a standard jinja2.Environment instead of a SandboxedEnvironment. Consequently, attacker-controlled OSCAL data—such as control statements, part prose, or component descriptions—containing Jinja2 syntax is executed when the include tag re-parses the file.
Recommendations Update versions prior to 3.12.4 to version 4.1.0. Update versions 4.0.0 through 4.0.3 to version 4.1.0.

Exploit

Fix

Code Injection

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-57170
GHSA-MR95-65J8-9MXP

Affected Products

Compliance-Trestle