Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. tmp
  4. ›
  5. CVE-2025-54798

CVE-2025-54798: tmp allows arbitrary temporary file / directory write via symbolic link `dir` parameter

August 6, 2025 (updated November 3, 2025)

tmp@0.2.3 is vulnerable to an Arbitrary temporary file / directory write via symbolic link dir parameter.

References

  • github.com/advisories/GHSA-52f5-9888-hmc6
  • github.com/raszi/node-tmp
  • github.com/raszi/node-tmp/commit/188b25e529496e37adaf1a1d9dccb40019a08b1b
  • github.com/raszi/node-tmp/issues/207
  • github.com/raszi/node-tmp/security/advisories/GHSA-52f5-9888-hmc6
  • lists.debian.org/debian-lts-announce/2025/08/msg00007.html
  • nvd.nist.gov/vuln/detail/CVE-2025-54798

Code Behaviors & Features

Detect and mitigate CVE-2025-54798 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.2.4

Fixed versions

  • 0.2.4

Solution

Upgrade to version 0.2.4 or above.

Impact 2.5 LOW

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

npm/tmp/CVE-2025-54798.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:42 +0000.