truncate@1.0.5 vulnerabilities

Truncate text and keep urls safe

  • latest version

    3.0.0

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    4 years ago

  • licenses detected

  • Direct Vulnerabilities

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

    truncate is a package to helps truncate text and keeps urls safe.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) attacks. This can cause an impact of about 10 seconds matching time for data 20K characters long.

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

    Upgrade truncate to version 2.0.1 or higher

    <2.0.1