pem@1.9.7 vulnerabilities

Create private keys and certificates with node.js and io.js

  • latest version

    1.14.8

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    1 years ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Information Exposure

    pem is a package to create private keys and certificates with node.js.

    Affected versions of this package are vulnerable to Information Exposure. The package exposes sensitive data when the readPkcs12 is used.

    The readPkcs12 function reads the certificate and key data from a pkcs12 file using the encryption password. As part of this process it creates a globally readable file with a filename of 20 random 0-f characters in the temporary directory containing the password which is then read by OpenSSL. The file containing the password is never cleaned up after it is used giving access to the pkcs12 password to any other users with access to read files from the system.

    How to fix Information Exposure?

    Upgrade pem to version 1.13.2 or higher.

    <1.13.2