CVE-2026-57170
Last modified
CVE-2026-57170 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. Compliance-trestle (Trestle) is a Python SDK and command-line tool for managing OSCAL compliance documents. In versions prior to 3.12.4 and 4.0.0 through 4.0.3, the 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 server-side template injection that can lead to arbitrary code execution. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
Description
Compliance-trestle (Trestle) is a Python SDK and command-line tool for managing OSCAL compliance documents. In versions prior to 3.12.4 and 4.0.0 through 4.0.3, the 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 server-side template injection that can lead to arbitrary code execution. The MDSectionInclude and MDCleanInclude tags in Trestle/core/jinja/tags.py pass included file content to Parser(self.environment, ...).parse(), splicing it into the host template's compilation, and the environment is a plain jinja2.Environment rather than a SandboxedEnvironment, so any expressions in the file are evaluated with full access to the usual SSTI gadget chain. Because Trestle's Markdown writers emit OSCAL prose and component-description fields verbatim, applying delimiter neutralization only to parameter tables, attacker-controlled OSCAL data such as a control statement, part prose, or component description containing Jinja2 syntax flows into an included Markdown file and is executed when the include tag re-parses it. This issue is fixed in version 4.1.0.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| oscal-compass | compliance-trestle | < 3.12.4; >= 4.0.0, < 4.1.0 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-57170?
How severe is CVE-2026-57170?
How do I fix CVE-2026-57170?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-57163PJSIP is a free and open source multimedia communication lib…9.1
- CVE-2026-57164PJSIP is a free and open source multimedia communication lib…5.9
- CVE-2026-57165PJSIP is a free and open source multimedia communication lib…5.3
- CVE-2026-57166PJSIP is a free and open source multimedia communication lib…5.3
- CVE-2026-57167PeerTube is an ActivityPub-federated video streaming platfor…5.1
- CVE-2026-5717The VI: Include Post By plugin for WordPress is vulnerable t…6.4
- CVE-2026-57171Compliance-trestle (Trestle) is a Python SDK and command-lin…7.7
- CVE-2026-57172DataEase is an open source data visualization and analysis t…8.3
- CVE-2026-5718The Drag and Drop Multiple File Upload for Contact Form 7 pl…8.1
- CVE-2026-5719A flaw has been found in itsourcecode Construction Managemen…6.3
- CVE-2026-5720miniupnpd contains an integer underflow vulnerability in SOA…9.1
- CVE-2026-57204pypdf is a free and open-source pure-python PDF library. Pri…6.5
Are you affected by CVE-2026-57170?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
