{"id":"CVE-2026-53964","aliases":["EUVD-2026-91047","GHSA-w47q-945m-q9pc","PYSEC-2026-3830"],"status":"published","title":"Document Merge Service vulnerable to RCE via SSTI (xlsx tempaltes)","description":"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.","severity":{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00493,"percentile":0.42828,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1336"],"published":"2026-08-19T19:17:19Z","modified":"2026-10-28T02:30:47Z","fixes":[{"ecosystem":"PyPI","package":"document-merge-service","fixed_in":["9.1.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"document-merge-service","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.1.0"}]}]},{"source":"osv","ecosystem":"PyPI","package":"document-merge-service","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.1.0"}]}],"versions":["5.2.0","5.2.1","6.0.0","6.1.0","6.1.1","6.1.2","6.2.0","6.2.1","6.2.2","6.3.0","6.3.1","6.4.0","6.4.1","6.4.2","6.4.3","6.4.4","6.4.5","6.4.6","6.5.0","6.5.1","6.5.2","6.6.0","6.6.1","7.0.0","7.0.1","7.0.2","7.1.0","8.0.0","8.0.2","8.0.3","8.1.0","9.0.0"]},{"source":"osv","ecosystem":"PyPI","package":"document-merge-service","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.1.0"}]}],"versions":["5.2.0","5.2.1","6.0.0","6.1.0","6.1.1","6.1.2","6.2.0","6.2.1","6.2.2","6.3.0","6.3.1","6.4.0","6.4.1","6.4.2","6.4.3","6.4.4","6.4.5","6.4.6","6.5.0","6.5.1","6.5.2","6.6.0","6.6.1","7.0.0","7.0.1","7.0.2","7.1.0","8.0.0","8.0.2","8.0.3","8.1.0","9.0.0"]}],"products":[{"vendor":"adfinis","product":"document-merge-service"}],"references":[{"url":"https://github.com/adfinis/document-merge-service/security/advisories/GHSA-w47q-945m-q9pc","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/adfinis/document-merge-service/releases/tag/v9.1.0","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/advisories/GHSA-w47q-945m-q9pc","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53964.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53964","tags":["advisory"]},{"url":"https://github.com/adfinis/document-merge-service","tags":["package"]},{"url":"https://pypi.org/project/document-merge-service","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-53964","title":"Document Merge Service vulnerable to RCE via SSTI (xlsx tempaltes)","description":"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.","status":"published","published":"2026-10-01T19:55:07.504Z","modified":"2026-10-01T20:13:16.003Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-1336"],"updated_at":"2026-11-02T14:19:59.761005Z"}],"euvd":[{"id":"EUVD-2026-91047","description":"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.","status":"published","published":"2026-10-01T19:55:07Z","modified":"2026-10-01T20:13:16Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T17:27:43.593551Z"}],"ghsa":[{"id":"GHSA-w47q-945m-q9pc","title":"Document Merge Service vulnerable to RCE via SSTI (xlsx tempaltes)","description":"### 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","status":"published","published":"2026-08-19T19:17:19Z","modified":"2026-08-19T19:17:20Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-1336"],"updated_at":"2026-11-02T14:41:03.602876Z"}],"nvd":[{"id":"CVE-2026-53964","description":"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.","status":"published","published":"2026-10-01T20:17:25.44Z","modified":"2026-10-02T18:47:49.947Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"}],"cwes":["CWE-1336"],"updated_at":"2026-11-02T14:12:53.41762Z"}],"osv":[{"id":"CVE-2026-53964","title":"Document Merge Service vulnerable to RCE via SSTI (xlsx tempaltes)","description":"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.","status":"published","published":"2026-10-01T19:55:07.504Z","modified":"2026-10-28T02:30:47.27808774Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-1336"],"updated_at":"2026-11-02T15:45:08.132336Z"},{"id":"GHSA-w47q-945m-q9pc","title":"Document Merge Service vulnerable to RCE via SSTI (xlsx tempaltes)","description":"### 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","status":"published","published":"2026-08-19T19:17:19Z","modified":"2026-09-10T12:25:55.406064842Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-1336"],"updated_at":"2026-11-02T15:46:58.04805Z"},{"id":"PYSEC-2026-3830","title":"Document Merge Service vulnerable to RCE via SSTI (xlsx tempaltes)","description":"### 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","status":"published","published":"2026-09-10T09:44:51.968052Z","modified":"2026-09-10T12:15:05.605719783Z","cvss":[{"version":"3.1","score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:57.255153Z"}]}}
