CVE-2025-54798
JavaScript vulnerability analysis and mitigation

Overview

The vulnerability CVE-2025-54798 affects tmp, a temporary file and directory creator for node.js, in versions 0.2.3 and below. The vulnerability was discovered on August 6, 2025, and involves an arbitrary temporary file/directory write vulnerability via symbolic link dir parameter. The issue was fixed in version 0.2.4 (GitHub Advisory).

Technical details

The vulnerability is classified as CWE-59 (Improper Link Resolution Before File Access) with a CVSS v3.1 base score of 2.5 (LOW) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N. The issue occurs because the resolvePath function does not properly handle symbolic links when resolving paths, allowing bypass of the assertIsRelative check used in _assertAndSanitizeOptions (GitHub Advisory, Snyk).

Impact

The vulnerability allows an attacker to cause files or directories to be written to arbitrary locations by supplying a crafted symbolic link that resolves outside the intended temporary directory. This could potentially lead to unexpected behavior and security implications in the affected systems (Snyk, Rapid7).

Mitigation and workarounds

The recommended mitigation is to upgrade tmp to version 0.2.4 or higher, which includes a fix for this vulnerability. The fix involves proper handling of symbolic link resolution in the _resolvePath function (GitHub Advisory, Snyk).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59837HIGH7.2
  • JavaScriptJavaScript
  • astro
NoYesOct 28, 2025
CVE-2025-62713HIGH7.2
  • JavaScriptJavaScript
  • @kottster/server
NoYesOct 23, 2025
GHSA-5jpx-9hw9-2fx4MEDIUM6.9
  • JavaScriptJavaScript
  • next-auth
NoYesOct 29, 2025
GHSA-q7jf-gf43-6x6pMEDIUM6.5
  • JavaScriptJavaScript
  • hono
NoYesOct 24, 2025
CVE-2025-62517MEDIUM5.9
  • JavaScriptJavaScript
  • rollbar
NoYesOct 23, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management