{"id":"CVE-2026-53964","aliases":["CVE-2026-53964","GHSA-w47q-945m-q9pc","PYSEC-2026-3830"],"related":[],"kind":"vulnerability","state":"published","title":"Document Merge Service vulnerable to RCE via SSTI (xlsx tempaltes)","summary":"Document Merge Service is a document template merge service providing an API to manage templates and merge them with given data. Prior to version 9.1.0, 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. This issue has been patched in version 9.1.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Document Merge Service is a document template merge service providing an API to manage templates and merge them with given data. Prior to version 9.1.0, 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. This issue has been patched in version 9.1.0.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"}],"published":"2026-08-19T19:17:19.000Z","modified":"2026-10-02T18:47:49.947Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"}],"cwes":["CWE-1336"],"affected":[{"ranges":[{"version":"< 9.1.0","status":"affected"}],"vendor":"adfinis","product":"document-merge-service","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.1.0"}],"ecosystem":"PyPI","package":"document-merge-service","purl":"pkg:pypi/document-merge-service","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"9.1.0"}],"ecosystem":"PyPI","package":"document-merge-service","purl":"pkg:pypi/document-merge-service","source":"pysec"}],"references":[{"url":"https://github.com/adfinis/document-merge-service/security/advisories/GHSA-w47q-945m-q9pc","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/adfinis/document-merge-service/releases/tag/v9.1.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/adfinis/document-merge-service","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/document-merge-service","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-w47q-945m-q9pc","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53964","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-01T20:12:41.561Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-53964","url":"https://www.cve.org/CVERecord?id=CVE-2026-53964","licence":"CVE Terms of Use","modified":"2026-10-01T20:13:16.003Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w47q-945m-q9pc","url":"https://github.com/advisories/GHSA-w47q-945m-q9pc","licence":"CC-BY-4.0","modified":"2026-09-10T12:25:55.406Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-53964","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53964","licence":"Public domain","modified":"2026-10-02T18:47:49.947Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3830","url":"https://osv.dev/vulnerability/PYSEC-2026-3830","licence":"CC-BY-4.0","modified":"2026-09-10T12:15:05.605Z"}],"updatedAt":"2026-11-25T22:59:41.875Z","epss":{"score":0.00493,"percentile":0.43908,"date":"2026-12-01T12:00:22.000Z"}}