CVE-2026-54732: Libreoffice convert Path Traversal Vulnerability
MODERATECVE-2026-54732 is a MODERATE (CVSS 6.5) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Libreoffice convert libraries in the npm ecosystem. The issue involves libreoffice-convert vulnerable to path traversal / arbitrary file write. Remediation is available by upgrading affected packages to version 1.8.2.
CVE-2026-54732 at a Glance
Security Impact
CVSS: 6.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2026-54732
To remediate this vulnerability, upgrade all affected Libreoffice convert dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install libreoffice-convert@1.8.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls libreoffice-convert
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-54732, inspect your project dependencies using npm:
npm ls libreoffice-convert
Analyze the terminal output to locate any version of Libreoffice convert in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.2), your application is affected.
Note: The npm ls libreoffice-convert command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Libreoffice convert, 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-54732 Affected Libreoffice convert Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
libreoffice-convert
|
npm |
< 1.8.2
|
1.8.2
|
References
Frequently Asked Questions
What is CVE-2026-54732?
Which Libreoffice convert versions are affected?
What version fixes CVE-2026-54732?
Is libreoffice-convert affected?
What is the CVSS score of CVE-2026-54732?
What CWE is associated with CVE-2026-54732?
How can I check npm dependencies for CVE-2026-54732?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gmxc-r82q-347r",
"modified" : "2026-08-27T17:23:16Z",
"published" : "2026-08-27T17:23:16Z",
"aliases" : [ "CVE-2026-54732" ],
"summary" : "libreoffice-convert vulnerable to path traversal / arbitrary file write",
"details" : "### Impact\noptions.fileName is used to build a filesystem path\n(path.join(tempDir.name, fileName)) and the caller-supplied document buffer is\nwritten there, but fileName is never reduced to a base name. A fileName containing\n\"../\" escapes the temporary directory, so a caller can write arbitrary content to an\narbitrary path the process can write to (e.g. ~/.ssh/authorized_keys, an /etc/cron.d\nentry, or a web root).\n\n### Patches\nVersion 1.8.2 uses `path.basename` on `filename` to make sure the temp directory can not be escaped.\n\n### Workarounds\nMake 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`.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "libreoffice-convert"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/elwerene/libreoffice-convert/security/advisories/GHSA-gmxc-r82q-347r"
}, {
"type" : "WEB",
"url" : "https://github.com/elwerene/libreoffice-convert/commit/b78f17df9b9183bd503fc4635fc8b3df6705047b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/elwerene/libreoffice-convert"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-27T17:23:16Z",
"nvd_published_at" : null
}
}