Advisory

PYSEC-2026-3830

Also known as: CVE-2026-53964, GHSA-w47q-945m-q9pc

Summary

Document Merge Service vulnerable to RCE via SSTI (xlsx tempaltes)

Details

Impact
A remote code execution (RCE) via server-side template injection (SSTI) allows for user supplied code to be executed in the server's context where it is executed as the document-merge-server user with the UID 901 thus giving an attacker considerable control over the container. The vulnerability is limited to XLSX templates, were the xltpl library uses a npn-sandboxed Jinja environment for the processing of the template.

Patches
It has been patched in v9.1.0

Workarounds
Disable the upload/usage of XLSX templates.

References
Are there any links users can visit to find out more?

https://book.hacktricks.xyz/pentesting-web/ssti-server-side-template-injection/jinja2-ssti

Severity

High Basis: CVSS v3 score 7.2, vector CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-09-10 09:44 UTC
Modified
2026-09-10 12:15 UTC

Affected packages and fixes

document-merge-service

PyPI · All systems

Affected

  • introduced 0, fixed 9.1.0 (ecosystem)

Fixed versions

9.1.0

Fix

  • Fixed version 9.1.0
    pip install --upgrade document-merge-service==9.1.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences