ts-deepmerge@1.0.0

A TypeScript deep merge function.

  • latest version

    8.0.0

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    4 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the ts-deepmerge 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
    Uncaught Exception

    ts-deepmerge is an a deep merge function that automatically infers the return type based on your input, without mutating the source objects.

    Affected versions of this package are vulnerable to Uncaught Exception due to the improper handling of built-in Object.prototype methods (such as toString, valueOf). When user-controlled input contains these keys with non-function values, the resulting merged object becomes broken — any string context operation throws a TypeError, crashing the application.

    How to fix Uncaught Exception?

    Upgrade ts-deepmerge to version 8.0.0 or higher.

    <8.0.0
    • H
    Prototype Pollution

    ts-deepmerge is an a deep merge function that automatically infers the return type based on your input, without mutating the source objects.

    Affected versions of this package are vulnerable to Prototype Pollution due to missing sanitization of the merge function.

    How to fix Prototype Pollution?

    Upgrade ts-deepmerge to version 2.0.2 or higher.

    <2.0.2