gettext.js@1.2.0 vulnerabilities

gettext.js is a lightweight (3kB minified!) but complete and accurate GNU gettext port for Node.js and the browser. Manage your i18n translations the right way in your JavaScript projects.

Direct Vulnerabilities

Known vulnerabilities in the gettext.js 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
Cross-site Scripting (XSS)

gettext.js is a gettext.js is a lightweight (3kB minified!) but complete and accurate GNU gettext port for Node.js and the browser. Manage your i18n translations the right way in your JavaScript projects.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) through the handling of .po dictionary definition files. An attacker can inject malicious scripts by corrupting these files.

How to fix Cross-site Scripting (XSS)?

Upgrade gettext.js to version 2.0.3 or higher.

<2.0.3