translate@1.2.2 vulnerabilities

Translate text to different languages on node.js and the browser

  • latest version

    3.0.1

  • latest non vulnerable version

  • first published

    13 years ago

  • latest version published

    2 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the translate 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
    Improper Input Validation

    translate is a Translate text to different languages on node.js and the browser

    Affected versions of this package are vulnerable to Improper Input Validation due to the manipulation of the second variable of the translate function. An attacker can change the outcome of translation requests made by subsequent users by controlling this variable. The opt.id parameter allows for the overwriting of the cache key, enabling an attacker to set the id variable to a cache key that would be generated by another user, thereby choosing the response that user gets served.

    How to fix Improper Input Validation?

    Upgrade translate to version 3.0.0 or higher.

    <3.0.0