Description
A vulnerability has been identified in the Express response.links function, allowing for arbitrary resource injection in the Link header when unsanitized data is used.
The issue arises from improper sanitization in `Link` header values, which can allow a combination of characters like `,`, `;`, and `<>` to preload malicious resources.
This vulnerability is especially relevant for dynamic parameters.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| express | express | 3.0.0-alpha1 – ≤ 3.21.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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | node-express | 4.1.1~dfsg-1 | — |
| Debian 13 | node-express | 4.1.1~dfsg-1 | — |
| Debian 12 | node-express | 4.1.1~dfsg-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| npm | express | < 4.0.0-rc1 | 4.0.0-rc1 | GHSA-cm5g-3pgc-8rg4 |