CVE-2026-54757
HIGH 7.8CVSS 3.1Trestle 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
| Source | Scored by | Version | Score | Vector / 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
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed 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
- https://github.com/oscal-compass/compliance-trestle/commit/0f82d19bd42f9cc0f1b3acd7fc3f6dafe3b6ae10 · WEB
- https://github.com/oscal-compass/compliance-trestle/commit/5335ff873a2a68eb7de43df029bea09cadff22fd · WEB
- https://github.com/oscal-compass/compliance-trestle/security/advisories/GHSA-jw39-3688-r4rx · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-54757 · ADVISORY
- https://github.com/oscal-compass/compliance-trestle/pull/2257 · WEB
- https://github.com/oscal-compass/compliance-trestle · PACKAGE
- https://github.com/oscal-compass/compliance-trestle/releases/tag/v3.12.4 · WEB
- https://github.com/oscal-compass/compliance-trestle/releases/tag/v4.1.0 · WEB
- https://pypi.org/project/compliance-trestle · PACKAGE
- https://github.com/advisories/GHSA-jw39-3688-r4rx · ADVISORY
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)