Intel

AIKIDO-2025-10117

@fastify/cors is vulnerable to Insecure Default Variable Initialization

Insecure Default Variable Initialization Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Feb 27, 2025

15

Low Risk

This Affects:

js@fastify/cors
7.0.0 - 10.1.0
Fixed in 11.0.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package do not enforce the most secure default CORS safelist methods, potentially allowing unintended HTTP methods in cross-origin requests.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

@fastify/cors is vulnerable to Insecure Default Variable Initialization in versions 7.0.0 - 10.1.0.

How to fix this

Upgrade the @fastify/cors library to the latest patched version or ensure that the methods parameter in fastify.register(...) is configured securely. Note that this patch may introduce breaking changes.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform