Skip to content
OpenAdvisories
Medium · 4.0 CVE-2024-10491 EUVD-2024-3174GHSA-cm5g-3pgc-8rg4

Preload arbitrary resources by injecting additional `Link` headers

Published Oct 29, 2024 · Updated Oct 29, 2024 · Assigned by HeroDevs

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
npm express < 4.0.0-rc1 4.0.0-rc1 GHSA-cm5g-3pgc-8rg4

References