Security mailing lists by PureSourceCode

CVE-2026-39243

MEDIUM 5.5CVSS 3.1

decompress allows arbitrary hardlink creation during archive extraction

decompress before 4.2.2 allows arbitrary hardlink creation during archive extraction, enabling file read disclosure and file corruption. When processing hardlink entries (type === 'link'), the x.linkname field from the archive is passed directly to fs.link() without validation (index.js line 113). An attacker can craft an archive with a hardlink entry whose linkname is an absolute path to any file on the same filesystem. This creates a hardlink inside the extraction directory that shares the same inode as the target file, enabling both reading and overwriting the original file's content. Hardlinks are limited to files on the same filesystem and cannot target directories.

Published
9 Jul 2026
Last modified
13 Aug 2026
Assigned by
cve@mitre.org
NVD status
Analyzed
Weakness
CWE-59
Also known as
GHSA-jwp9-9v96-94mx
Sources
NVDJSONOSV GHSA-jwp9-9v96-94mxJSON

Scores

SourceScored byVersionScoreVector / decision
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD decompress_project decompress
cpe:2.3:a:decompress_project:decompress:*:*:*:*:*:node.js:*:*
<= 4.2.1
OSV npm decompress <= 4.2.1

References

History

  • 25 Nov 2026 21:03 UTC · NVD: first stored (published 9 Jul 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Jul 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.