node-forge@1.3.1 vulnerabilities

JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.

  • latest version

    1.3.3

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    1 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the node-forge 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
    Uncontrolled Recursion

    node-forge is a JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.

    Affected versions of this package are vulnerable to Uncontrolled Recursion via the fromDer function in asn1.js, which lacks recursion depth. An attacker can cause stack exhaustion and disrupt service availability by submitting specially crafted, deeply nested DER-encoded ASN.1 data.

    How to fix Uncontrolled Recursion?

    Upgrade node-forge to version 1.3.2 or higher.

    <1.3.2
    • M
    Integer Overflow or Wraparound

    node-forge is a JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.

    Affected versions of this package are vulnerable to Integer Overflow or Wraparound via the derToOid function in the asn1.js file, which decodes ASN.1 structures containing OIDs with oversized arcs. An attacker can bypass security decisions based on OID validation by crafting malicious ASN.1 data that exploits 32-bit bitwise truncation.

    How to fix Integer Overflow or Wraparound?

    Upgrade node-forge to version 1.3.2 or higher.

    <1.3.2
    • C
    Interpretation Conflict

    node-forge is a JavaScript implementations of network transports, cryptography, ciphers, PKI, message digests, and various utilities.

    Affected versions of this package are vulnerable to Interpretation Conflict via the asn1.validate() function. An attacker can cause schema validation to become desynchronized, resulting in semantic divergence that may allow bypassing cryptographic verifications and security decisions, by passing in ASN.1 data with optional parameters that may be interpreted as object boundaries.

    How to fix Interpretation Conflict?

    Upgrade node-forge to version 1.3.2 or higher.

    <1.3.2