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

Medium 4.0 Published Updated

Attackers can inject malicious resources via unsanitized Link headers in Express, potentially leading to code execution or security bypasses.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-10491?

CVE-2024-10491 is a medium-severity vulnerability in express, published on 29 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-74

Which versions are affected by CVE-2024-10491?

2 open source packages ship an affected version, including express. It affects 1 product.

PackageAffectedFixed in
express npmAll versions4.0.0-rc1
express npmAll versions4.0.0-rc1

Products include Openjsf Express.

How do I fix CVE-2024-10491?

Upgrade express to 4.0.0-rc1 or later.

Is CVE-2024-10491 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-10491 exists.

Sources

Also known as DEBIAN-CVE-2024-10491, GHSA-cm5g-3pgc-8rg4.

Is CVE-2024-10491 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free