9.1
CRITICAL CVSS 3.1
CVE-2026-18248
@fastify/aws-lambda vulnerable to Lambda event spoofing via client-controlled x-apigateway-event header
Description

@fastify/aws-lambda version 6.4.0 decorates each Fastify request with request.awsLambda.event and request.awsLambda.context, values that applications are documented to use for authorization decisions such as reading API Gateway authorizer claims. In the default configuration, the getter that populates this decoration reads the client-controlled x-apigateway-event and x-apigateway-context HTTP headers before falling back to the trusted internal request token, and those reserved headers are not stripped from the incoming event. An unauthenticated attacker who can set a single HTTP header can therefore forge the entire Lambda proxy event, including the authorizer context, and override the genuine one. This results in a full authentication and authorization bypass and privilege escalation for any application that trusts request.awsLambda.event for identity or access control. Only version 6.4.0 is affected. Patches: upgrade to @fastify/aws-lambda 6.4.1, which resolves the decoration only through the internal per-invocation token and strips the reserved headers before the request is processed.

INFO

Published Date :

Aug. 3, 2026, 4:16 p.m.

Last Modified :

Aug. 3, 2026, 4:16 p.m.

Remotely Exploit :

No

Source :

ce714d77-add3-4f53-aff5-83d477b104bb
Affected Products

The following products are affected by CVE-2026-18248 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 CRITICAL ce714d77-add3-4f53-aff5-83d477b104bb
Solution
Upgrade @fastify/aws-lambda to version 6.4.1 to fix authentication bypass.
  • Upgrade @fastify/aws-lambda to version 6.4.1.
  • Verify that headers are stripped before processing.
  • Remove reliance on HTTP headers for authorization.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-18248.

URL Resource
https://cna.openjsf.org/security-advisories.html
https://github.com/fastify/aws-lambda-fastify/security/advisories/GHSA-m93c-jj3f-68ph
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-18248 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-18248 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-18248 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by ce714d77-add3-4f53-aff5-83d477b104bb

    Aug. 03, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': '@fastify/aws-lambda', 'product': '@fastify/aws-lambda', 'versions': [{'status': 'affected', 'version': '6.4.0', 'lessThan': '6.4.1', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '6.4.1', 'versionType': 'semver'}], 'packageURL': 'pkg:npm/@fastify/aws-lambda', 'defaultStatus': 'unaffected'}]
    Added Description @fastify/aws-lambda version 6.4.0 decorates each Fastify request with request.awsLambda.event and request.awsLambda.context, values that applications are documented to use for authorization decisions such as reading API Gateway authorizer claims. In the default configuration, the getter that populates this decoration reads the client-controlled x-apigateway-event and x-apigateway-context HTTP headers before falling back to the trusted internal request token, and those reserved headers are not stripped from the incoming event. An unauthenticated attacker who can set a single HTTP header can therefore forge the entire Lambda proxy event, including the authorizer context, and override the genuine one. This results in a full authentication and authorization bypass and privilege escalation for any application that trusts request.awsLambda.event for identity or access control. Only version 6.4.0 is affected. Patches: upgrade to @fastify/aws-lambda 6.4.1, which resolves the decoration only through the internal per-invocation token and strips the reserved headers before the request is processed.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
    Added CWE CWE-345
    Added Reference https://cna.openjsf.org/security-advisories.html
    Added Reference https://github.com/fastify/aws-lambda-fastify/security/advisories/GHSA-m93c-jj3f-68ph
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.