Security mailing lists by PureSourceCode

CVE-2026-54757

HIGH 7.8CVSS 3.1

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

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.

Published
25 Aug 2026
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-94
Also known as
GHSA-jw39-3688-r4rxPYSEC-2026-3817
Sources
NVDJSONOSV GHSA-jw39-3688-r4rxJSONOSV PYSEC-2026-3817JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
OSV PyPA CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV PyPI compliance-trestle < 3.12.4 3.12.4
OSV PyPI compliance-trestle >= 4.0.0, < 4.1.0 4.1.0
OSV PyPI compliance-trestle < 3.12.4; >= 4.0.0, < 4.1.0 3.12.4, 4.1.0

References

History

  • 25 Nov 2026 21:05 UTC · NVD: first stored (published 25 Aug 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Sep 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 28 Aug 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.