CVE-2026-54757: Trestle has Server-Side Template Injection (SSTI) via Recursive Template Re-evaluation of Untrusted Data

Published Aug 25, 2026
·
Updated

Compliance-trestle (Trestle) is a Python SDK and command-line tool for managing OSCAL compliance documents. In versions before 3.12.4 and versions 4.0.0 through 4.0.3, Trestle is vulnerable to server-side template injection that can lead to remote code execution. This occurs because the MDCleanInclude and MDSectionInclude Jinja2 tags re-parse untrusted Markdown content as template source code using a non-sandboxed jinja2.Environment. An attacker who controls content that Trestle renders, such as a crafted workspace Markdown file, a third-party SSP document, or a YAML lookup-table value, can inject a Jinja2 expression that traverses Python object internals to execute arbitrary operating system commands in the context of the Trestle process. This issue is fixed in versions 3.12.4 and 4.1.0.

Affected Software

1 affected component
Compliance-trestle (Trestle) Compliance-trestle (Trestle)<3.12.4, >=4.0.0<=4.0.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.12.4
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.1.0

Event History

Aug 25, 2026
CVE Published
via MITRE·11:02 PM
Data Sourced
via MITRE·11:02 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which Trestle releases require remediation?

Versions before 3.12.4 and versions 4.0.0 through 4.0.3 are affected. Upgrade to 3.12.4 or 4.1.0.

2

What access does an attacker need to exploit this issue?

The attack vector is local and requires no privileges, but it requires user interaction. Exploitation depends on the attacker being able to supply content that Trestle renders, such as a workspace Markdown file, a third-party SSP document, or a YAML lookup-table value.

3

How can I determine whether an environment is exposed?

Check the installed Trestle version and whether the environment renders untrusted or externally supplied Markdown, SSP documents, or YAML lookup-table values. Systems on affected versions that process such content should be treated as exposed.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203