Vulnerability · Published Oct 29, 2024 · Assigned by HeroDevs

CVE-2024-10491Preload arbitrary resources by injecting additional `Link` headers

Medium 4.0

In plain English

A medium-severity injection in express from express. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 39% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.0Medium
Exploit odds (30 days)0.4%top 61.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-express4.1.1~dfsg-1DEBIAN-CVE-2024-10491
Debian:13node-express4.1.1~dfsg-1DEBIAN-CVE-2024-10491
Debian:14node-express4.1.1~dfsg-1DEBIAN-CVE-2024-10491
npmexpress4.0.0-rc1GHSA-cm5g-3pgc-8rg4

Affected products (as reported)

VendorProductVersions
express express 3.0.0-alpha1 – through 3.21.2

Weakness: CWE-74 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N

References