tmp@0.0.2

Temporary file and directory creator

  • latest version

    0.2.7

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    1 months 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
    • H
    Directory Traversal

    Affected versions of this package are vulnerable to Directory Traversal via unsanitized input 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:

    The fix for this issue was incomplete and led to a bypass, known as CVE-2026-49982. Users are recommended to upgrade to version 0.2.7 to get a complete fix for this issue.

    How to fix Directory Traversal?

    Upgrade tmp to version 0.2.6 or higher.

    <0.2.6
    • M
    Symlink Attack

    Affected versions of this package are vulnerable to Symlink Attack via the dir parameter. An attacker can cause files or directories to be written to arbitrary locations by supplying a crafted symbolic link that resolves outside the intended temporary directory.

    How to fix Symlink Attack?

    Upgrade tmp to version 0.2.4 or higher.

    <0.2.4