GitHub Advisoryadvisory · npm

GHSA-gmxc-r82q-347r libreoffice-convert vulnerable to path traversal / arbitrary file write

MEDIUM Published 2026-08-27 Modified 2026-08-27 Official page ↗
Aliases
CVE-2026-54732
Ecosystem
npm
Packages
libreoffice-convert
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-22
Reviewed
2026-08-27

Affected packages

• npm libreoffice-convert: < 1.8.2 → fixed in 1.8.2

Description

Impact options.fileName is used to build a filesystem path (path.join(tempDir.name, fileName)) and the caller-supplied document buffer is written there, but fileName is never reduced to a base name. A fileName containing "../" escapes the temporary directory, so a caller can write arbitrary content to an arbitrary path the process can write to (e.g. ~/.ssh/authorized_keys, an /etc/cron.d entry, or a web root). Patches Version 1.8.2 uses `path.basename` on `filename` to make sure the temp directory can not be escaped. Workarounds Make sure you supply the filename yourself and don't have it user supplied or use `path.basename` on `filename` before using it in `libreoffice-convert`.

Related

Alias · CVE (1)

  • CVE-2026-54732 libreoffice-convert is a Node.js module for converting office documents to different formats. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References