Arbitrary Code Injection Affecting compliance-trestle package, versions [,3.12.4)[4.0.0,4.1.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.36% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-COMPLIANCETRESTLE-20158975
  • published27 Sept 2026
  • disclosed28 Aug 2026
  • creditUnknown

Introduced: 28 Aug 2026

CVE-2026-54757  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade compliance-trestle to version 3.12.4, 4.1.0 or higher.

Overview

compliance-trestle is a Tools to manage & autogenerate python objects representing the OSCAL layers/models

Affected versions of this package are vulnerable to Arbitrary Code Injection in the parse process. An attacker can execute arbitrary commands on the system by injecting malicious Jinja2 template code into Markdown files or data fields that are subsequently re-parsed and executed without proper sandboxing or validation.

Workaround

This vulnerability can be mitigated by removing MDCleanInclude and MDSectionInclude from the Jinja2 extensions list if markdown includes are not required, auditing included Markdown files for Jinja2 syntax, scanning data sources for template patterns, restricting workspace write access to trusted users, adding a pre-commit hook to block suspicious Jinja2 syntax, and running the application in an isolated container or sandbox in CI/CD pipelines.

CVSS Base Scores

version 4.0
version 3.1