CVE-2026-18248 Details
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.
A vulnerability in @fastify/aws-lambda version 6.4.0 allows unauthenticated attackers to spoof Lambda proxy events by manipulating client-controlled HTTP headers. The affected version decorates Fastify requests with AWS Lambda event and context data, which are used for authorization decisions. The vulnerability arises because the decoration process reads the x-apigateway-event and x-apigateway-context headers without stripping them, enabling attackers to forge event data, including authorizer context, and bypass authentication and authorization checks.
Users can upgrade to @fastify/aws-lambda version 6.4.1 or later to address this vulnerability. If an upgrade is not possible, it is recommended to remove the reserved headers from the incoming event before processing the request and to avoid using request.awsLambda.event for security-related decisions.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 3, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cna.openjsf.org/security-advisories.html | openjs | Third Party Advisory |
| https://github.com/fastify/aws-lambda-fastify/security/advisories/GHSA-m93c-jj3f-68ph | openjs | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-345 | Insufficient Verification of Data Authenticity | openjs |
Affected Products
| Product | Versions |
|---|---|
| fastify fastify/aws-lambda | 6.4.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 4, 2026 | Initial Analysis | [email protected] |
| Aug 3, 2026 | CVE Modified | CISA-ADP |
| Aug 3, 2026 | New CVE Received | openjs |