tmp@0.2.6

Temporary file and directory creator

  • latest version

    0.2.7

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    19 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the tmp package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Directory Traversal

    Affected versions of this package are vulnerable to Directory Traversal due to the improper sanitization of non-string values in the prefix, postfix, or dir parameters during path construction. An attacker can create files outside the intended temporary directory, potentially overwriting or placing files in sensitive locations, by supplying crafted values containing traversal sequences or absolute paths.

    Note:

    This issue is due to an incomplete fix for CVE-2026-44705. Added _assertPath as a guard does not account for non-string values.

    How to fix Directory Traversal?

    Upgrade tmp to version 0.2.7 or higher.

    <0.2.7