gettext-parser@1.1.2 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

    12 years ago

  • latest version published

    1 years ago

  • licenses detected

  • Direct Vulnerabilities

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

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    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