CVE-2026-7191: CWE-94: Improper Control of Generation of Code ('Code Injection') in AWS QnABot on AWS
Bulletin ID: 2026-020-AWS Scope: AWS Content Type: Important (requires attention) Publication Date: 2026/04/27 13:15 PM PDT Description: QnABot on AWS is an open-source solution that provides a multi-channel, multi-language conversational interface powered by Amazon Lex, Amazon OpenSearch Service, and optionally Amazon Bedrock. We identified CVE-2026-7191, where the improper use of the static-eval npm package may allow an authenticated administrator to execute arbitrary code within the fulfillment Lambda execution context. By injecting a crafted conditional chaining expression via the Content Designer interface, an actor with Admin access could bypass the intended expression sandbox through JavaScript prototype manipulation. Successful exploitation may grant direct access to backend resources, including Lambda environment variables, OpenSearch indices, S3 objects, and DynamoDB tables, that are not exposed through normal administrative interfaces. Impacted versions: <=7.2.4 Please refer to the article below for the most up-to-date and complete information related to this AWS Security Bulletin.
AI Analysis
Technical Summary
CVE-2026-7191 is a code injection vulnerability (CWE-94) in AWS QnABot on AWS (versions 7.2.4 and earlier) caused by unsafe use of the static-eval npm package. An authenticated administrator can inject crafted expressions via the Content Designer interface, enabling arbitrary code execution in the Lambda fulfillment environment. This bypasses sandbox restrictions through JavaScript prototype manipulation, potentially exposing sensitive backend resources including Lambda environment variables, OpenSearch indices, S3 objects, and DynamoDB tables. AWS, as the cloud service provider, manages remediation server-side and advises upgrading to version 7.3.0 or later.
Potential Impact
Successful exploitation allows an authenticated administrator to execute arbitrary code within the Lambda fulfillment environment, bypassing sandbox restrictions. This can lead to unauthorized access and potential compromise of sensitive backend resources such as Lambda environment variables, OpenSearch indices, S3 objects, and DynamoDB tables. The vulnerability has a CVSS v3.1 score of 7.2, reflecting high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
AWS manages remediation for this cloud-hosted service server-side. Customers should upgrade AWS QnABot to version 7.3.0 or later as recommended by AWS. Check the AWS security bulletin at https://aws.amazon.com/security/security-bulletins/2026-020-aws/ for the latest guidance and confirmation of patch status.
CVE-2026-7191: CWE-94: Improper Control of Generation of Code ('Code Injection') in AWS QnABot on AWS
Description
Bulletin ID: 2026-020-AWS Scope: AWS Content Type: Important (requires attention) Publication Date: 2026/04/27 13:15 PM PDT Description: QnABot on AWS is an open-source solution that provides a multi-channel, multi-language conversational interface powered by Amazon Lex, Amazon OpenSearch Service, and optionally Amazon Bedrock. We identified CVE-2026-7191, where the improper use of the static-eval npm package may allow an authenticated administrator to execute arbitrary code within the fulfillment Lambda execution context. By injecting a crafted conditional chaining expression via the Content Designer interface, an actor with Admin access could bypass the intended expression sandbox through JavaScript prototype manipulation. Successful exploitation may grant direct access to backend resources, including Lambda environment variables, OpenSearch indices, S3 objects, and DynamoDB tables, that are not exposed through normal administrative interfaces. Impacted versions: <=7.2.4 Please refer to the article below for the most up-to-date and complete information related to this AWS Security Bulletin.
CVSS v3.1
Score 7.2high
Affected software
AWS
QnABot on AWS
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-7191 is a code injection vulnerability (CWE-94) in AWS QnABot on AWS (versions 7.2.4 and earlier) caused by unsafe use of the static-eval npm package. An authenticated administrator can inject crafted expressions via the Content Designer interface, enabling arbitrary code execution in the Lambda fulfillment environment. This bypasses sandbox restrictions through JavaScript prototype manipulation, potentially exposing sensitive backend resources including Lambda environment variables, OpenSearch indices, S3 objects, and DynamoDB tables. AWS, as the cloud service provider, manages remediation server-side and advises upgrading to version 7.3.0 or later.
Potential Impact
Successful exploitation allows an authenticated administrator to execute arbitrary code within the Lambda fulfillment environment, bypassing sandbox restrictions. This can lead to unauthorized access and potential compromise of sensitive backend resources such as Lambda environment variables, OpenSearch indices, S3 objects, and DynamoDB tables. The vulnerability has a CVSS v3.1 score of 7.2, reflecting high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
AWS manages remediation for this cloud-hosted service server-side. Customers should upgrade AWS QnABot to version 7.3.0 or later as recommended by AWS. Check the AWS security bulletin at https://aws.amazon.com/security/security-bulletins/2026-020-aws/ for the latest guidance and confirmation of patch status.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- AMZN
- Date Reserved
- 2026-04-27T13:37:55.232Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Is Cloud Service
- true
- Vendor Advisory Urls
- [{"url":"https://aws.amazon.com/security/security-bulletins/2026-020-aws/","vendor":"AWS"}]
Threat ID: 69efc789ba26a39fba6016ea
Added to database: 04/27/2026, 20:31:05 UTC
Last enriched: 06/05/2026, 19:28:13 UTC
Last updated: 09/14/2026, 10:01:33 UTC
Views: 206
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.