PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-54757 oscal-compass CVE debrief

CVE-2026-54757 is a server-side template injection vulnerability in Compliance-trestle (Trestle) that can lead to remote code execution. The vulnerability affects versions before 3.12.4 and versions 4.0.0 through 4.0.3. An attacker who controls content that Trestle renders can inject a Jinja2 expression to execute arbitrary operating system commands. This issue is fixed in versions 3.12.4 and 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-25
Original CVE updated
2026-09-09
Advisory published
2026-08-25
Advisory updated
2026-09-09

Who should care

Defenders who use Trestle to render untrusted content should prioritize patching or mitigating this vulnerability. This includes operators who manage Trestle instances, platform administrators who support Trestle deployments, vulnerability management teams who track and remediate vulnerabilities, and security teams who oversee risk mitigation efforts. These stakeholders should assess their exposure to this vulnerability and take appropriate actions to rem

Why it matters

CVE-2026-54757 is a high-severity vulnerability in Compliance-trestle (Trestle) that can lead to remote code execution. Defenders who use Trestle to render untrusted content should prioritize patching or mitigating this vulnerability.

  • Remote code execution can occur when an attacker injects a Jinja2 expression that traverses Python object internals.
  • Defenders should verify the patch level of Trestle instances to ensure they are running a fixed version.
  • Defenders should restrict access to Trestle to trusted users only to reduce the attack surface.
  • Defenders should monitor Trestle logs for suspicious activity to detect potential exploitation attempts.

Technical summary

The vulnerability is caused by the MDCleanInclude and MDSectionInclude Jinja2 tags re-parsing untrusted Markdown content as template source code using a non-sandboxed jinja2.Environment. This allows an attacker to inject a Jinja2 expression that traverses Python object internals to execute arbitrary operating system commands. The issue affects versions before 3.12.4 and versions 4.0.0 through 4.0.3 of Trestle, a Python SDK and command-line tool for managing OSCAL compliance documents. Defenders should verify the patch level of Trestle instances to ensure they are running a fixed version.

Defensive priority

Defenders should prioritize patching or mitigating this vulnerability, especially in environments where Trestle is used to render untrusted content.

Recommended defensive actions

  • Patch Trestle to version 3.12.4 or 4.1.0
  • Restrict access to Trestle to trusted users only
  • Monitor Trestle logs 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 vulnerability is caused by the MDCleanInclude and MDSectionInclude Jinja2 tags re-parsing untrusted Markdown content as template source code using a non-sandboxed jinja2.Environment. This allows an attacker to inject a Jinja2 expression that traverses Python object internals to execute arbitrary operating system commands.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-54757 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-54757

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-54757 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-54757

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

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.