Skip to content

← Public intelligence

PyPI package

document-merge-service

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

2 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 7.2PyPIPublished

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

    CVE-2026-53964 · GHSA-w47q-945m-q9pc

    Affected
    • PyPI document-merge-service < 9.1.0
    Fixed in
    9.1.0· Vendor fix available
    Issue
    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

    Recommended action: Upgrade to 9.1.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:github.comSource checked Evidence →
  2. High, CVSS 7.2PyPIAmendedPublished

    document-merge-service vulnerable to Remote Code Execution via Server-Side Template Injection

    CVE-2024-37301 · GHSA-v5gf-r78h-55q6

    Affected
    • PyPI document-merge-service < 6.5.2
    Fixed in
    6.5.2· Vendor fix available
    Issue
    Impact What kind of vulnerability is it? Who is impacted? 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. Patches Has the problem been patched? What versions should users upgrade to? It has been patched in v6.5.2 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 POC Add the following to a document, upload and render it: The index might be different, so to debug this first render a template with {{ PLACEHOLDER.class.mro[1].subclasses() }} and then get the index of subprocess.Popen and replace 202 with that.

    Recommended action: Upgrade to 6.5.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →