Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach Lambda-hosted Fastify app
-
DeliveryAdd crafted x-apigateway-event header
-
ExploitAdapter prefers forged event over token
-
Executionrequest.awsLambda.event returns attacker claims
-
PersistApp authorizes forged identity
-
ImpactAuth bypass and privilege escalation
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Data authenticity verification
|
| Exploitation Conditions | Exploitation requires that the target application runs @fastify/aws-lambda 6.4.0 in its default configuration AND reads request.awsLambda.event (or request.awsLambda.context) - typically event.requestContext.authorizer claims - to make identity or authorization decisions; against such an app an unauthenticated remote attacker needs only to set the x-apigateway-event (and optionally x-apigateway-context) HTTP header to forge the entire proxy event and override the genuine one. Limiting factors: applications that never consult the awsLambda decoration for access control are not meaningfully exploitable; the flaw exists only in version 6.4.0, since 6.4.1 strips and ignores these headers; and success depends on the app trusting the header-derived event rather than an independently verified identity source. |
| Impact | The CVSS 3.1 vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (9.1) is internally consistent with the description: network-reachable, low complexity, no privileges, no user interaction, with high confidentiality and integrity impact and no availability impact - a clean fit for a header-forgeable auth bypass. This is not a high-CVSS-but-low-real-risk case: the precondition (setting one HTTP header) is minimal and the payoff (impersonating any identity or authorizer context) is severe wherever the decoration is trusted. No EPSS score, KEV listing, or POC was provided, so exploitation probability cannot be quantified and active exploitation is not confirmed; the absence of these signals reflects missing data, not low risk. Because the flaw is CWE-345 with a network vector and no authentication, practical risk is gated almost entirely by whether the deployed application actually reads request.awsLambda.event for access-control decisions - critical for those apps, negligible for apps that ignore the decoration. |
| Exploit ScenarioDerived | An attacker sends a normal HTTPS request to a Lambda-hosted Fastify app running 6.4.0 but adds an x-apigateway-event header containing a crafted proxy event whose requestContext.authorizer claims name an administrator. The adapter prefers this header over the genuine internal token, so request.awsLambda.event now reflects the forged identity and the application authorizes the request as admin. No public exploit was identified at time of analysis, but the technique needs only one header and no authentication. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 03, 2026
Authentication and authorization bypass in @fastify/aws-lambda 6.4.0 lets an unauthenticated remote attacker forge the entire AWS Lambda proxy event by setting a single client-controlled HTTP header. Because the request.awsLambda.event/context decoration reads the untrusted x-apigateway-event and x-apigateway-context headers before falling back to the trusted internal invocation token, any application that consults these values for identity or API Gateway authorizer claims can be tricked into granting attacker-chosen access, enabling full privilege escalation. Rated CVSS 9.1; no public exploit identified at time of analysis, but the attack is trivial and documented in the vendor advisory.
RemediationAI
Vendor-released patch: upgrade @fastify/aws-lambda from 6.4.0 to 6.4.1, which resolves the decoration exclusively through the internal per-invocation token and strips the reserved x-apigateway-event and x-apigateway-context headers before the request is processed; this is the primary and complete fix. As an interim compensating control if you cannot upgrade immediately, strip or reject the x-apigateway-event and x-apigateway-context request headers at the edge (API Gateway mapping, ALB rules, WAF, or a Fastify onRequest hook) so client-supplied values never reach the getter - the trade-off is that any legitimate use of those exact reserved header names would also be blocked, which is acceptable. Additionally, avoid trusting request.awsLambda.event for authorization until patched, preferring a verified identity source. See https://github.com/fastify/aws-lambda-fastify/security/advisories/GHSA-m93c-jj3f-68ph and https://cna.openjsf.org/security-advisories.html.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
@fastify/aws-lambda (aws-lambda-fastify) is an adapter that lets a Fastify HTTP application run inside an AWS Lambda function behind API Gateway/ALB by translating the Lambda proxy integration event into a synthetic Fastify request. It decorates each request with request.awsLambda.event and request.awsLambda.context so handlers can read Lambda-specific context - notably event.requestContext.authorizer, which carries claims produced by an API Gateway authorizer and is commonly trusted for authorization. The root cause maps to CWE-345 (Insufficient Verification of Data Authenticity): the getter populating this decoration prefers the inbound x-apigateway-event and x-apigateway-context HTTP headers over the adapter's internal per-invocation token, and these reserved headers are not stripped from the incoming event, so client-supplied data is treated as trusted platform-supplied data. The single affected package is identified by cpe:2.3:a:@fastify/aws-lambda:@fastify/aws-lambda:*:*:*:*:*:*:*:* and only release 6.4.0 exhibits the flaw.
Know when Fastify Aws Lambda gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
One forgeable header gives unauthenticated remote impersonation, so AV:N/AC:L/PR:N/UI:N with high confidentiality and integrity impact and no availability effect.
Primary rating from Vendor (openjs).
CVSS VectorVendor: openjs
Lifecycle Timeline
2DescriptionCVE.org
@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.
Executive ViewAI
A critical authentication bypass in @fastify/aws-lambda 6.4.0 allows unauthenticated remote attackers to forge AWS Lambda authorization claims by manipulating a single HTTP header, enabling complete privilege escalation in affected serverless applications. No public exploit identified at time of analysis, but the attack is trivial and well-documented. Organizations running this library version face immediate risk of unauthorized access to Lambda functions and downstream AWS resources.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement strict header filtering at API Gateway to reject x-apigateway-event and x-apigateway-context headers from untrusted sources; (2) switch authorization logic to AWS IAM authentication instead of relying on event-derived claims; (3) implement application-level JWT or token validation independent of Lambda proxy event data; (4) restrict Lambda function invocation via resource policies to trusted AWS services only; (5) downgrade @fastify/aws-lambda to versions prior to 6.4.0 if operationally feasible pending patch release.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
EUVD-2026-52329
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB