gettext-parser@1.1.1 vulnerabilities

Parse and compile gettext po and mo files to/from json, nothing more, nothing less

Direct Vulnerabilities

Known vulnerabilities in the gettext-parser 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
  • L
Regular Expression Denial of Service (ReDoS)

gettext-parser is a package to parse and compile gettext po and mo files with node.js.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) attacks. It used a regular expression (/([\x21-\x40\x5b-\x60\x7b-\x7e]+)[^\x21-\x40\x5b-\x60\x7b-\x7e]*$/) in order to split strings. This can cause an impact of about 10 seconds matching time for data 33K characters long.

How to fix Regular Expression Denial of Service (ReDoS)?

Upgrade gettext-parser to versions 1.3.1 or higher.

<1.3.1