Packages / express / Security

ModerateVulnerabilityGHSA-cm5g-3pgc-8rg4CVE-2024-10491Published 29 Oct 2024

Express ressource injection

Affected releases · express

  • 3.x and older0.14.0 – 3.21.2No fix, no longer updated

3.x has no fix yet; the newest fixed line:

npm install express@4.0.0-rc1
5.x
  1. Not affected

    5.0.0 – 5.3.0

    6 releases, latest

3.x
  1. Affected

    3.0.0 – 3.21.2

    96 releases

2.x
  1. Affected

    2.0.0 – 2.5.11

    39 releases

1.x
  1. Affected

    1.0.0 – 1.0.8

    9 releases

0.x
  1. Affected

    0.14.0 – 0.14.1

    2 releases

247 stable releases of express, oldest to newest, one row per major.

Is your project affected?

Paste your package.json, or type the range you declare for express. It is read in your browser and sent nowhere.

What happens

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.