CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2021 · Fastify

CVE-2021-22964
Fastify-static vulnerability

A redirect vulnerability in the `fastify-static` module version >= 4.2.4 and < 4.4.1 allows remote attackers to redirect Mozilla Firefox users to arbitrary websites via a double slash `//` followed by a domain: `http://localhost:3000//a//youtube.com/%2e%2e%2f%2e%2e`.A DOS vulnerability is possible if the URL contains invalid characters `curl --path-as-is "http://localhost:3000//^/.."`The issue shows up on all the `fastify-static` applications that set `redirect: true` option. By default, it is `false`.

Affected products

Fastify-static. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Fastify-static runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Fastify products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.