GHSA-gmxc-r82q-347r: Path Traversal

Published Aug 27, 2026
·
Updated

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/authorizedkeys, 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.

Affected Software

1 affected componentFixes available
npm/libreoffice-convert<1.8.2
1.8.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/libreoffice-convert to a version that resolves this vulnerability.

    Fixed in 1.8.2
  2. Upgrade

    Upgrade libreoffice-convert to a version that resolves this vulnerability.

    Fixed in 1.8.2
  3. Configuration

    Ensure the filename passed to libreoffice-convert is not user-supplied; if you must derive it, reduce it to a basename (e.g., use path.basename) before using it to build the path (options.fileName).

    libreoffice-convert options.fileName/fileName handling = Use path.basename(filename) before using it in libreoffice-convert

Event History

Aug 27, 2026
Advisory Published
via GitHub·05:23 PM
Data Sourced
via GitHub·05:23 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using npm/libreoffice-convert are exposed when an attacker can influence the filename passed through options.fileName. The issue can let that caller write content outside the intended temporary directory, subject to the filesystem permissions of the process.

2

What does an attacker need to exploit it?

The attacker needs the ability to supply or control a filename containing path-traversal sequences such as "../", along with document content to be written. No user interaction is required after the vulnerable application processes those inputs.

3

What should be done if upgrading is not immediately possible?

Ensure filenames are assigned by the application rather than accepted from users. If user-provided names must be used, apply path.basename to the filename before passing it to libreoffice-convert.

4

Which version addresses the problem?

Version 1.8.2 uses path.basename on the filename, preventing the temporary-directory escape described in the advisory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203