@tsed/core/.../core@5.58.1 vulnerabilities

Core module for Ts.ED Framework

  • latest version

    8.3.3

  • latest non vulnerable version

  • first published

    6 years ago

  • latest version published

    6 hours ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @tsed/core 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
    • M
    Prototype Pollution

    @tsed/core is a package of Ts.ED framework.

    Affected versions of this package are vulnerable to Prototype Pollution. This vulnerability relates to the deepExtend function which is used as part of the utils directory. Depending on if user input is provided, an attacker can overwrite and pollute the object prototype of a program.

    PoC

    import {deepExtends} from "../../src";
    
    var payload = JSON.parse('{"__proto__": {"a": "vulnerable"}}');
    let result = deepExtends( { security: [{"1": "o"}]},payload)
    
    console.log(result);
    console.log({}.a);
    

    How to fix Prototype Pollution?

    Upgrade @tsed/core to version 5.65.7 or higher.

    <5.65.7