QID 980373
QID 980373: Nodejs (npm) Security Update for fastify-static (GHSA-p6vg-p826-qp3v)
Security update has been released for fastify-static to fix the vulnerability.
Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.
A redirect vulnerability in the `fastify-static` module allows remote attackers to redirect Mozilla Firefox users to arbitrary websites via a double slash `//` followed by a domain: `http://localhost:3000//google.com/%2e%2e`.
The issue shows up on all the `fastify-static` applications that set `redirect: true` option. By default, it is `false`.
Solution
The issue has been patched in `[email protected]`Workaround:
If updating is not an option, you can sanitize the input URLs using the [`rewriteUrl`](https://www.fastify.io/docs/latest/Server/#rewriteurl) server option.
If updating is not an option, you can sanitize the input URLs using the [`rewriteUrl`](https://www.fastify.io/docs/latest/Server/#rewriteurl) server option.
Vendor References
- GHSA-p6vg-p826-qp3v -
github.com/advisories/GHSA-p6vg-p826-qp3v
CVEs related to QID 980373
Software Advisories
| Advisory ID | Software | Component | Link |
|---|---|---|---|
| GHSA-p6vg-p826-qp3v | fastify-static |
|