GitHub Advisoryadvisory · npm

GHSA-cm5g-3pgc-8rg4 Express ressource injection

MEDIUM Published 2024-10-29 Modified 2024-12-19 Official page ↗
Aliases
CVE-2024-10491
Ecosystem
npm
Packages
express
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
Weaknesses
CWE-74
Reviewed
2024-11-25

Affected packages

• npm express: < 4.0.0-rc1 → fixed in 4.0.0-rc1

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.

Related

Alias · CVE (1)

  • CVE-2024-10491 A vulnerability has been identified in the Express response.links function, allowing for arbitrary resource injection in the Link header… vulnerability

Weakness · CWE (1)

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness

References