Packages / word-wrap / Security

ModerateVulnerabilityGHSA-j8xg-fqg3-53r7CVE-2023-26115Published 22 Jun 2023

word-wrap vulnerable to Regular Expression Denial of Service

Your version

Affected releases · word-wrap

  • 1.x1.0.0 – 1.2.3Fixed in 1.2.4
  • 0.3.x and older0.1.0 – 0.3.1No fix, no longer updated

On 1.x, the newest line:

npm install word-wrap@1.2.4
Every release on a timeline
1.x
  1. Affected

    1.0.0 – 1.2.3

    9 releases

  2. Fixed

    1.2.4 – 1.2.5

    2 releases, latest

0.x
  1. Affected

    0.1.0 – 0.3.1

    6 releases

17 stable releases of word-wrap, oldest to newest, one row per major.

What happens

All versions of the package word-wrap are vulnerable to Regular Expression Denial of Service (ReDoS) due to the usage of an insecure regular expression within the result variable.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.