Express ressource injection
Published 29 Oct 2024 · Updated 19 Dec 2024
Is your project on an affected express?
Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <4.0.0-rc1
- Fixed in
- 4.0.0-rc1
npm install express@4.0.0-rc1Details
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.
Is GHSA-cm5g-3pgc-8rg4 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected express, and gives you the command that fixes it.
More advisories for express
- LowCVE-2024-9266Express Open Redirect vulnerability · 3 Oct 2024
- LowCVE-2024-43796express vulnerable to XSS via response.redirect() · 10 Sept 2024
- MediumCVE-2024-29041Express.js Open Redirect in malformed URLs · 25 Mar 2024
- MediumCVE-2014-6393No Charset in Content-Type Header in express · 23 Oct 2018
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.