Vulnerability advisory

CVE-2024-10491

Preload arbitrary resources by injecting additional `Link` headers

Published Updated OSV record ↗

Also known as GHSA-cm5g-3pgc-8rg4

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/expressjs/express ↗
d1d3f310e9553fefbaa0e00baac4256af8c3fe27 through cb59086305367d9fcd7d63b53cfca1a3e4ef77d7No fix listed
Also listed as affected (108)
  • 3.21.2
  • 3.21.1
  • 3.21.0
  • 3.20.3
  • 3.20.2
  • 3.20.1
  • 3.20.0
  • 3.19.2
  • 3.19.1
  • 3.19.0
  • 3.18.6
  • 3.18.5
  • 3.18.4
  • 3.18.3
  • 3.18.2
  • 3.18.1
  • 3.18.0
  • 3.17.8
  • 3.17.7
  • 3.17.6
  • 3.17.5
  • 3.17.4
  • 3.17.3
  • 3.17.2
  • 3.17.1
  • 3.17.0
  • 3.16.10
  • 3.16.9
  • 3.16.8
  • 3.16.7
  • 3.16.6
  • 3.16.5
  • 3.16.4
  • 3.16.3
  • 3.16.2
  • 3.16.1
  • 3.16.0
  • 3.15.3
  • 3.15.2
  • 3.15.1
  • 3.15.0
  • 3.14.0
  • 3.13.0
  • 3.12.1
  • 3.12.0
  • 3.11.0
  • 3.10.5
  • 3.10.4
  • 3.10.3
  • 3.10.2
  • 3.10.1
  • 3.10.0
  • 3.9.0
  • 3.8.1
  • 3.8.0
  • 3.7.0
  • 3.6.0
  • 3.5.2
  • 3.5.1
  • 3.5.0
  • 3.4.8
  • 3.4.7
  • 3.4.6
  • 3.4.5
  • 3.4.4
  • 3.4.3
  • 3.4.2
  • 3.4.0
  • 3.3.8
  • 3.3.7
  • 3.3.6
  • 3.3.5
  • 3.3.4
  • 3.3.3
  • 3.3.2
  • 3.3.1
  • 3.3.0
  • 3.2.6
  • 3.2.5
  • 3.2.4
  • 3.2.3
  • 3.2.2
  • 3.2.1
  • 3.2.0
  • 3.1.2
  • 3.1.1
  • 3.1.0
  • 3.0.6
  • 3.0.5
  • 3.0.4
  • 3.0.3
  • 3.0.2
  • 3.0.1
  • 3.0.0rc3
  • 3.0.0rc2
  • 3.0.0rc1
  • 3.0.0beta7
  • 3.0.0beta6
  • 3.0.0beta5
  • 3.0.0beta4
  • 3.0.0beta3
  • 3.0.0beta2
  • 3.0.0beta1
  • 3.0.0alpha5
  • 3.0.0alpha4
  • 3.0.0alpha3
  • 3.0.0alpha2
  • 3.0.0alpha1

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.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools