Description
The forwarded module is used by the Express.js framework to handle the X-Forwarded-For header. It is vulnerable to a regular expression denial of service when it's passed specially crafted input to parse. This causes the event loop to be blocked causing a denial of service condition.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| HackerOne | forwarded node module | < 0.1.2 | — |
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.
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | nodejs-nodemon | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | forwarded | < 0.1.2 | 0.1.2 | GHSA-mpcf-4gmh-23w8 |
References
- https://nodesecurity.io/advisories/527
- 104427 vdb-entry