---
title: "GHSA-j8xg-fqg3-53r7: word-wrap vulnerable to Regular Expression Denial of Service"
description: "Moderate severity. word-wrap vulnerable to Regular Expression Denial of Service. Affects word-wrap; fixed in 1.2.4."
url: https://inlinr.com/advisories/GHSA-j8xg-fqg3-53r7
lang: en
---

[Packages](https://inlinr.com/packages) / [word-wrap](https://inlinr.com/packages/word-wrap) / [Security](https://inlinr.com/packages/word-wrap/security)

Moderate Vulnerability GHSA-j8xg-fqg3-53r7 CVE-2023-26115 Published 22 Jun 2023

# word-wrap vulnerable to Regular Expression Denial of Service

Your version 

Affected releases · [word-wrap](https://inlinr.com/packages/word-wrap)

- 1.x 1.0.0 – 1.2.3 Fixed in 1.2.4
- 0.3.x and older 0.1.0 – 0.3.1 No 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.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: none
- **Integrity**: none
- **Availability**: low

CVSS:3.1/​AV:N/​AC:L/​PR:N/​UI:N/​S:U/​C:N/​I:N/​A:L

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2023-26115 "https://nvd.nist.gov/vuln/detail/CVE-2023-26115")  
nvd.nist.gov/vuln/detail/CVE-2023-26115
- [Fix commit](https://github.com/jonschlinkert/word-wrap/commit/420dce9a2412b21881202b73a3c34f0edc53cb2e "https://github.com/jonschlinkert/word-wrap/commit/420dce9a2412b21881202b73a3c34f0edc53cb2e")  
420dce9
- [Package](https://github.com/jonschlinkert/word-wrap "https://github.com/jonschlinkert/word-wrap")  
github.com/jonschlinkert/word-wrap
- [Reference](https://github.com/jonschlinkert/word-wrap/blob/master/index.js#L39 "https://github.com/jonschlinkert/word-wrap/blob/master/index.js#L39")  
github.com/jonschlinkert/word-wrap/blob/master/…
- [Reference](https://github.com/jonschlinkert/word-wrap/blob/master/index.js%23L39 "https://github.com/jonschlinkert/word-wrap/blob/master/index.js%23L39")  
github.com/jonschlinkert/word-wrap/blob/master/…
- [Reference](https://github.com/jonschlinkert/word-wrap/releases/tag/1.2.4 "https://github.com/jonschlinkert/word-wrap/releases/tag/1.2.4")  
github.com/jonschlinkert/word-wrap/releases/tag…
- [Reference](https://security.netapp.com/advisory/ntap-20240621-0006 "https://security.netapp.com/advisory/ntap-20240621-0006")  
security.netapp.com/advisory/ntap-20240621-0006
- [Reference](https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-4058657 "https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-4058657")  
security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-4…
- [Reference](https://security.snyk.io/vuln/SNYK-JS-WORDWRAP-3149973 "https://security.snyk.io/vuln/SNYK-JS-WORDWRAP-3149973")  
security.snyk.io/vuln/SNYK-JS-WORDWRAP-3149973

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
