PatchSiren cyber security CVE debrief
CVE-2026-57170 oscal-compass CVE debrief
CVE-2026-57170 is a high-severity vulnerability in the Compliance-trestle (Trestle) Python SDK and command-line tool, which allows server-side template injection that can lead to arbitrary code execution. The vulnerability affects versions prior to 3.12.4 and 4.0.0 through 4.0.3. Trestle's custom Jinja2 include tags mdsection_include and md_clean_include re-parse the content of an included Markdown file as Jinja2 template code in a non-sandboxed environment, allowing attacker-controlled OSCAL data to be executed when the include tag re-parses it. This issue is fixed in version 4.1.0.
- Vendor
- oscal-compass
- Product
- compliance-trestle
- CVSS
- HIGH 7.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-08-26
- Original CVE updated
- 2026-09-09
- Advisory published
- 2026-08-26
- Advisory updated
- 2026-09-09
Who should care
Defenders managing OSCAL compliance documents with Trestle, especially in environments where Trestle is used to manage sensitive data, should assess exposure and prioritize patching or mitigating this vulnerability.
Why it matters
CVE-2026-57170 is a high-severity vulnerability in Compliance-trestle (Trestle) that allows server-side template injection, potentially leading to arbitrary code execution. Defenders managing OSCAL compliance documents with Trestle should assess exposure and prioritize patching or mitigating this vulnerability.
- Potential arbitrary code execution
- Server-side template injection
- OSCAL data tampering or unauthorized access
Technical summary
The custom Jinja2 include tags mdsection_include and md_clean_include in Trestle re-parse the content of an included Markdown file as Jinja2 template code in a non-sandboxed environment, allowing server-side template injection that can lead to arbitrary code execution. This issue affects versions prior to 3.12.4 and 4.0.0 through 4.0.3, and is fixed in version 4.1.0. Defenders managing OSCAL compliance documents with Trestle should assess exposure and prioritize patching or mitigating this vulnerability, especially in environments where Trestle is used to manage sensitive data.
Defensive priority
Defenders should prioritize patching or mitigating this vulnerability, especially in environments where Trestle is used to manage OSCAL compliance documents.
Recommended defensive actions
- Patch Trestle to version 4.1.0 or later
- Review and mitigate OSCAL data for potential Jinja2 syntax
- Monitor Trestle usage for suspicious activity
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE record and NVD vulnerability detail page provide information on the vulnerability, its impact, and the affected versions. The source references provide additional information on the fix and the vulnerability.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-57170 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-57170
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-57170 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-57170
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/oscal-compass/compliance-trestle/commit/0f82d19bd42f9cc0f1b3acd7fc3f6dafe3b6ae10
-
Source reference
Unverified legacy reference
URL: https://github.com/oscal-compass/compliance-trestle/commit/5335ff873a2a68eb7de43df029bea09cadff22fd
-
Source reference
Unverified legacy reference
URL: https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-mr95-65j8-9mxp
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.