Vulnerabilities in pkg:pypi/document-merge-service
PACKAGECVE-2026-53964 is a HIGH (CVSS 7.2) remote code execution vulnerability (CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine) affecting Document merge service libraries in the PyPI ecosystem. The issue involves document merge service vulnerable to rce via ssti (xlsx tempaltes). Remediation is available by upgrading affected packages to version 9.1.0.
pkg:pypi/document-merge-service
Vulnerability advisories affecting package pkg:pypi/document-merge-service. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-w47q-945m-q9pc | CVE-2026-53964 | HIGH | Document Merge Service vulnerable to RCE via SSTI (xlsx tempaltes) |
| GHSA-v5gf-r78h-55q6 | CVE-2024-37301 | HIGH | document-merge-service vulnerable to Remote Code Execution via Server-Side Template Injection |
CVE-2026-53964 at a Glance
Security Impact
CVSS: 7.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2026-53964
To remediate this vulnerability, upgrade all affected Document merge service dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install document-merge-service>=9.1.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show document-merge-service
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-53964, inspect your installed packages using pip:
pip show document-merge-service
Analyze the terminal output to locate any version of Document merge service in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 9.1.0), your application is affected.
Note: The pip show document-merge-service command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine, where the product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine. In Document merge service, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-53964 Affected Document merge service Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
document-merge-service
|
PyPI |
< 9.1.0
|
9.1.0
|
References
Frequently Asked Questions
What is CVE-2026-53964?
Which Document merge service versions are affected?
What version fixes CVE-2026-53964?
Is document-merge-service affected?
What is the CVSS score of CVE-2026-53964?
What CWE is associated with CVE-2026-53964?
How can I check PyPI dependencies for CVE-2026-53964?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w47q-945m-q9pc",
"modified" : "2026-08-19T19:17:19Z",
"published" : "2026-08-19T19:17:19Z",
"aliases" : [ "CVE-2026-53964" ],
"summary" : "Document Merge Service vulnerable to RCE via SSTI (xlsx tempaltes)",
"details" : "### Impact\nA 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. \n\n### Patches\nIt has been patched in [v9.1.0](https://github.com/adfinis/document-merge-service/releases/tag/v9.1.0)\n\n### Workarounds\nDisable the upload/usage of XLSX templates.\n\n### References\nAre there any links users can visit to find out more?\n\nhttps://book.hacktricks.xyz/pentesting-web/ssti-server-side-template-injection/jinja2-ssti",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "document-merge-service"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/adfinis/document-merge-service/security/advisories/GHSA-w47q-945m-q9pc"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/adfinis/document-merge-service"
}, {
"type" : "WEB",
"url" : "https://github.com/adfinis/document-merge-service/releases/tag/v9.1.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1336" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-19T19:17:19Z",
"nvd_published_at" : null
}
}