CVE-2026-53964: High severity pip/document-merge-service vulnerability

Published Aug 19, 2026
·
Updated

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

Affected Software

1 affected componentFixes available
pip/document-merge-service<9.1.0
9.1.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/document-merge-service to a version that resolves this vulnerability.

    Fixed in 9.1.0
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 9.1.0
  3. Configuration

    Disable the upload/usage of XLSX templates (xltpl library templates).

    document-merge-service upload/usage of XLSX templates = disabled

Event History

Aug 19, 2026
Advisory Published
via GitHub·07:17 PM
Data Sourced
via GitHub·07:17 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments that process XLSX templates are affected, because XLSX template processing uses the non-sandboxed Jinja environment in the xltpl library. The issue does not describe exposure for other template types.

2

What does an attacker need to exploit it?

An attacker needs the ability to supply an XLSX template that will be processed by the service. Successful exploitation executes user-supplied code in the document-merge-server context as UID 901.

3

What should be done if upgrading is not immediately possible?

Disable the upload and use of XLSX templates until the service can be updated. The issue is patched in version 9.1.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203