@apeleghq/asn1-der@1.0.2

A collection of utility classes to encode ASN.1 data following DER rules

  • latest version

    1.0.6

  • latest non vulnerable version

  • first published

    2 years ago

  • latest version published

    1 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @apeleghq/asn1-der 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
    • M
    Incorrect Bitwise Shift of Integer

    @apeleghq/asn1-der is an A collection of utility classes to encode ASN.1 data following DER rules

    Affected versions of this package are vulnerable to Incorrect Bitwise Shift of Integer via the number DER encoding. An attacker can cause the application to enter an infinite loop by providing values in the specific range of 2**31 -- 2**32 - 1, which are not properly handled by the numBitLen function. This results in a denial of service. Additionally, the encoding issues can lead to incorrect value representation when handling certain number ranges.

    How to fix Incorrect Bitwise Shift of Integer?

    Upgrade @apeleghq/asn1-der to version 1.0.5 or higher.

    <1.0.5