translate@0.7.0 vulnerabilities

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

Direct Vulnerabilities

Known vulnerabilities in the translate package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable 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