Description
negotiator is an HTTP content negotiator for Node.js and is used by many modules and frameworks including Express and Koa. The header for "Accept-Language", when parsed by negotiator 0.6.0 and earlier is vulnerable to Regular Expression Denial of Service via a specially crafted string.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| HackerOne | negotiator node module | <= 0.6.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-negotiator | 0.6.1-1 | — |
| Debian 13 | node-negotiator | 0.6.1-1 | — |
| Debian 12 | node-negotiator | 0.6.1-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | node-negotiator | 0.6.1-1 | — |
| Ubuntu 18.04 LTS | node-negotiator | 0.6.1-1 | — |
| Ubuntu 16.04 LTS | node-negotiator | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | nodejs-nodemon | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | negotiator | < 0.6.1 | 0.6.1 | GHSA-7mc5-chhp-fmc3 |