Skip to main content

@fastify/aws-lambda EUVDEUVD-2026-52329

| CVE-2026-18248 CRITICAL
Insufficient Verification of Data Authenticity (CWE-345)
2026-08-03 openjs
9.1
CVSS 3.1 · Vendor: openjs
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach Lambda-hosted Fastify app
  2. Delivery
    Add crafted x-apigateway-event header
  3. Exploit
    Adapter prefers forged event over token
  4. Execution
    request.awsLambda.event returns attacker claims
  5. Persist
    App authorizes forged identity
  6. Impact
    Auth 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

@fastify/aws-lambda 6.4.0 <6.4.1

Affected Packages

euvd fastify_aws_lambda fix: 6.4.1

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

Vendor (openjs) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 9.1 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (openjs).

CVSS VectorVendor: openjs

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Aug 03, 2026 - 16:01 EUVD
CVE Published
Aug 03, 2026 - 15:20 cve.org
CRITICAL 9.1

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Medium
popular Fastify-on-Lambda adapter, but only one release affected
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment CIRCL GitHub VulDB

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy