gettext-parser@1.2.1 vulnerabilities

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

  • latest version

    8.0.0

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    10 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the gettext-parser 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
    • 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